tmpThese are new rules that are still in progress IdempotentOperationsRuleAvoid idempotent operations - they are silly. Here's an example of code that would trigger this rule: public class Foo { public void bar() { int x = 2; x = x; } } UnnecessaryParenthesesUnnecessary parameters are a bit noisy This rule is defined by the following XPath expression: //ReturnStatement [count(//Expression) >1] [count(//PrimarySuffix)<2] Here's an example of code that would trigger this rule: public class Foo { public int bar() { return (42); } } |