update {cpp/java}/unused-local to match python

This commit is contained in:
erik-krogh
2022-08-11 14:59:17 +02:00
parent 5a312cd0da
commit 698ccd8850
2 changed files with 2 additions and 4 deletions

View File

@@ -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."