summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2021-11-30 23:40:28 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2021-12-02 17:22:49 +0100
commit38f36b9f3443b4d2085799c772e901a402b84af3 (patch)
tree8b6c21ec459442ba422286ba43e71573f9348366
parentc7d70210fa45c3210b8b1eda51bc0f6d68bd8392 (diff)
downloadsystemd-38f36b9f3443b4d2085799c772e901a402b84af3.tar.gz
lgtm: enable more (and potentially useful) queries
Not all available queries on LGTM are enabled by default, but some of the excluded ones might come in handy, hence let's enable them explicitly.
-rw-r--r--.lgtm.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.lgtm.yml b/.lgtm.yml
index 83ec5ecf11..6d52e8e1c1 100644
--- a/.lgtm.yml
+++ b/.lgtm.yml
@@ -1,6 +1,27 @@
---
# vi: ts=2 sw=2 et:
+# Explicitly enable certain checks which are hidden by default
+queries:
+ - include: cpp/bad-strncpy-size
+ - include: cpp/declaration-hides-variable
+ - include: cpp/inconsistent-null-check
+ - include: cpp/mistyped-function-arguments
+ - include: cpp/nested-loops-with-same-variable
+ - include: cpp/sizeof-side-effect
+ - include: cpp/suspicious-pointer-scaling
+ - include: cpp/suspicious-pointer-scaling-void
+ - include: cpp/suspicious-sizeof
+ - include: cpp/unsafe-strcat
+ - include: cpp/unsafe-strncat
+ - include: cpp/unsigned-difference-expression-compared-zero
+ - include: cpp/unused-local-variable
+ - include:
+ tags:
+ - "security"
+ - "correctness"
+ severity: "error"
+
extraction:
cpp:
prepare: