mirror of
https://github.com/github/codeql.git
synced 2026-08-03 08:52:55 +02:00
19 lines
517 B
Plaintext
19 lines
517 B
Plaintext
/**
|
|
* @name Extraction errors
|
|
* @description List all extraction errors for files in the source code directory.
|
|
* @kind diagnostic
|
|
* @id rb/diagnostics/extraction-errors
|
|
*/
|
|
|
|
import ruby
|
|
import codeql.ruby.Diagnostics
|
|
|
|
/** Gets the SARIF severity to associate an error. */
|
|
int getSeverity() { result = 2 }
|
|
|
|
from ExtractionError error, File f
|
|
where
|
|
f = error.getLocation().getFile() and
|
|
exists(f.getRelativePath())
|
|
select error, "Extraction failed in " + f + " with error " + error.getMessage(), getSeverity()
|