mirror of
https://github.com/github/codeql.git
synced 2025-12-29 15:16:34 +01:00
18 lines
425 B
Plaintext
18 lines
425 B
Plaintext
/**
|
|
* @name Syntax error
|
|
* @description Syntax errors cause failures at runtime and prevent analysis of the code.
|
|
* @kind problem
|
|
* @tags reliability
|
|
* correctness
|
|
* @problem.severity error
|
|
* @sub-severity high
|
|
* @precision high
|
|
* @id py/syntax-error
|
|
*/
|
|
|
|
import python
|
|
|
|
from SyntaxError error
|
|
where not error instanceof EncodingError
|
|
select error, error.getMessage() + " (in Python " + major_version() + ")."
|