explnations for exclusions for PMD controversial rules. Issue #744

This commit is contained in:
Roman Ivanov 2015-04-22 16:35:49 -04:00
parent 935863bd12
commit 138c2ccc4c
1 changed files with 2 additions and 0 deletions

View File

@ -60,7 +60,9 @@
<rule ref="rulesets/java/controversial.xml">
<!-- calling super() is completely pointless, no matter if class inherits anything or not; it is meaningful only if you do not call implicit constructor of base class -->
<exclude name="CallSuperInConstructor"/>
<!-- We reuse Check instances between java files, we need to clear state of class in beginTree() methods -->
<exclude name="NullAssignment"/>
<!-- it is possible only in functional languages and fanatically-pristine code, withot aditional option that are done at ReturnCountExtendedCheck it is not good rule -->
<exclude name="OnlyOneReturn"/>
<exclude name="AssignmentInOperand"/>
<exclude name="AtLeastOneConstructor"/>