mirror of
https://github.com/github/codeql.git
synced 2025-12-25 21:26:37 +01:00
This is basically just a port of the C++/JS queries added in: - https://github.com/github/codeql/pull/5414 (C++) - https://github.com/github/codeql/pull/5656 (JS) SyntaxError should capture all errors we have information about. At least in `python/ql/src/semmlecode.python.dbscheme` the only match for `error` is `py_syntax_error_versioned` (which `SyntaxError` is based on).
16 lines
387 B
Plaintext
16 lines
387 B
Plaintext
/**
|
|
* @name Successfully extracted Python files
|
|
* @description Lists all Python files in the source code directory that were extracted
|
|
* without encountering an error.
|
|
* @kind diagnostic
|
|
* @id py/diagnostics/successfully-extracted-files
|
|
*/
|
|
|
|
import python
|
|
|
|
from File file
|
|
where
|
|
not exists(SyntaxError e | e.getFile() = file) and
|
|
exists(file.getRelativePath())
|
|
select file, ""
|