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 0304aa8 commit ccaf2ddCopy full SHA for ccaf2dd
rust/ql/src/queries/unusedentities/UnusedVariable.ql
@@ -14,5 +14,6 @@ from Variable v
14
where
15
not exists(v.getAnAccess()) and
16
not exists(v.getInitializer()) and
17
- not v.getName().charAt(0) = "_"
+ not v.getName().charAt(0) = "_" and
18
+ exists(File f | f.getBaseName() = "main.rs" | v.getLocation().getFile() = f) // temporarily severely limit results
19
select v, "Variable is not used."
0 commit comments