summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2022-09-14 21:32:33 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2022-09-14 22:09:19 +0200
commit5e781e07db1b657488a3c52a072bb72e5ed4f051 (patch)
tree611b6cc6e1d882c349cc02ca18f01834c5f12d4b
parentd97733908b2d438b6d095452ce123e44e5486e6b (diff)
downloadsystemd-5e781e07db1b657488a3c52a072bb72e5ed4f051.tar.gz
ci: enable a couple more possibly useful CodeQL queries
-rw-r--r--.github/codeql-custom.qls8
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/codeql-custom.qls b/.github/codeql-custom.qls
index 28a22d3aab..d35fbe3114 100644
--- a/.github/codeql-custom.qls
+++ b/.github/codeql-custom.qls
@@ -10,12 +10,20 @@
# - https://github.com/github/codeql-action/issues/430#issuecomment-806092120
# - https://codeql.github.com/docs/codeql-cli/creating-codeql-query-suites/
+# Note: the codeql/<lang>-queries pack name can be found in the CodeQL repo[0]
+# in <lang>/ql/src/qlpack.yml. The respective codeql-suites are then
+# under <lang>/ql/src/codeql-suites/.
+#
+# [0] https://github.com/github/codeql
- import: codeql-suites/cpp-lgtm.qls
from: codeql/cpp-queries
+- import: codeql-suites/python-lgtm.qls
+ from: codeql/python-queries
- include:
id:
- cpp/bad-strncpy-size
- cpp/declaration-hides-variable
+ - cpp/include-non-header
- cpp/inconsistent-null-check
- cpp/mistyped-function-arguments
- cpp/nested-loops-with-same-variable