codeql-cli-binaries icon indicating copy to clipboard operation
codeql-cli-binaries copied to clipboard

he query depends on a external predicate selectedSourceFile which has not been defined.

Open cqrlhz opened this issue 3 years ago • 1 comments

891/891 eval 1372m18s] Evaluation done; writing results to codeql/python-tests/library-tests/PointsTo/customise/test.bqrs. Shutting down query evaluator. 3 of 891 queries failed to evaluate: codeql/python-queries/analysis/LocalDefinitions.ql, codeql/python-queries/analysis/LocalReferences.ql, codeql/python-queries/printAst.ql: The query depends on a external predicate selectedSourceFile which has not been defined.

cqrlhz avatar Mar 10 '22 02:03 cqrlhz

The full set of queries includes some queries that are not analysis queries. This includes debugging queries and queries used to support features in vscode. To run them they need special configuration and shouldn't be run via the command line.

In addition even among the queries that work there are some which are not useful to run on most codebases.

Instead of running all queries within a directory which only works if all queries should be run you should run a suite. For example codeql/python/ql/src/codeql-suites/python-code-scanning.qls if you want the queries that run by default on code scanning or python/ql/src/codeql-suites/python-security-and-quality.qls if you want a much larger selection.

alexet avatar Mar 10 '22 15:03 alexet