We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b68c1c commit 4b78606Copy full SHA for 4b78606
cpp/ql/src/Best Practices/SloppyGlobal.ql
@@ -14,6 +14,9 @@ import semmle.code.cpp.ConfigurationTestFile
14
from GlobalVariable gv
15
where
16
gv.getName().length() <= 3 and
17
+ // We will give an alert for the TemplateVariable, so we don't
18
+ // need to also give one for each instantiation
19
+ not gv instanceof VariableTemplateInstantiation and
20
not gv.isStatic() and
21
not gv.getFile() instanceof ConfigurationTestFile // variables in files generated during configuration are likely false positives
22
select gv,
0 commit comments