New UnusedLocalVariableAssignment rule
def myMethod() { def x = 123 println x x = 99 // Violation }
def myMethod() { doStuff() def x = 123 // Violation }
See UnusedVariable Rule
Log in to post a comment.