CheckStyle had this option in the early versions: http://api.dpml.net/checkstyle/3.5/com/puppycrawl/tools/checkstyle/checks/usage/UnusedParameterCheck.html
Looking for a similar checker. Can anyone recommend me something?
Testing for this use case:
... main method ..
test("hello");
return Longs.tryParse(request.getCategoryId());
}
@Nullable
Long test(String unused) {
System.out.println("Hello World");
return null;
}
I want the build to fail
Current CheckStyle version in use is 3.7. Not looking to downgrade.