mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
update {cpp/java}/unused-local to match python
This commit is contained in:
@@ -29,6 +29,4 @@ where
|
||||
// Rules about catch clauses belong in an exception handling query
|
||||
not exceptionVariable(ve) and
|
||||
not enhancedForVariable(ve)
|
||||
select v,
|
||||
"Unused local variable " + v.getName() +
|
||||
". The variable is never read or written to and should be removed."
|
||||
select v, "The value assigned to local variable '" + v.getName() + "' is never used."
|
||||
|
||||
Reference in New Issue
Block a user