File tree Expand file tree Collapse file tree
cpp/ql/src/Best Practices/Unused Entities
java/ql/src/Violations of Best Practice/Dead Code Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 not exists ( AsmStmt s | f = s .getEnclosingFunction ( ) ) and
5959 not v .getAnAttribute ( ) .getName ( ) = "unused" and
6060 not any ( ErrorExpr e ) .getEnclosingFunction ( ) = f // unextracted expr may use `v`
61- select v , "Variable " + v .getName ( ) + " is not used"
61+ select v , "The value assigned to local variable ' " + v .getName ( ) + "' is never used. "
Original file line number Diff line number Diff line change 2929 // Rules about catch clauses belong in an exception handling query
3030 not exceptionVariable ( ve ) and
3131 not enhancedForVariable ( ve )
32- select v ,
33- "Unused local variable " + v .getName ( ) +
34- ". The variable is never read or written to and should be removed."
32+ select v , "The value assigned to local variable '" + v .getName ( ) + "' is never used."
You can’t perform that action at this time.
0 commit comments