Skip to content

Commit

Permalink
Rust: Temporarily limit results (hopefully enough for the DCA job to …
Browse files Browse the repository at this point in the history
…cope).
  • Loading branch information
geoffw0 committed Oct 3, 2024
1 parent 0304aa8 commit ccaf2dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/ql/src/queries/unusedentities/UnusedVariable.ql
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ from Variable v
where
not exists(v.getAnAccess()) and
not exists(v.getInitializer()) and
not v.getName().charAt(0) = "_"
not v.getName().charAt(0) = "_" and
exists(File f | f.getBaseName() = "main.rs" | v.getLocation().getFile() = f) // temporarily severely limit results
select v, "Variable is not used."

0 comments on commit ccaf2dd

Please sign in to comment.