Files
codeql/ql/src/Debug/SyntaxError.ql
Rasmus Wriedt Larsen 4820626f29 Add SyntaxError query
This can be used by autofix, but might also be nice to help find YAML syntax errors 🤷
2024-09-06 14:04:46 +02:00

18 lines
393 B
Plaintext

/**
* @name Syntax error
* @description A piece of code could not be parsed due to syntax errors.
* @kind problem
* @problem.severity recommendation
* @id actions/syntax-error
* @tags reliability
* correctness
* language-features
* debug
* @precision very-high
*/
private import codeql.actions.ast.internal.Yaml
from YamlParseError pe
select pe, pe.getMessage()