1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

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.
This commit is contained in:
Frantisek Sumsal 2021-11-30 23:40:28 +01:00
parent c7d70210fa
commit 38f36b9f34

View File

@ -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: