Skip to content
Permalink
Browse files
Update the eclipse settngs to make sure we use the same pmd rules in …
…eclipse
  • Loading branch information
dkulp committed May 22, 2014
1 parent 0d2b37f commit c340f2a5ebe9f9060550cb680650132c796168f6
Showing 2 changed files with 2 additions and 186 deletions.
@@ -18,113 +18,12 @@
under the License.
-->
<pmd>
<useProjectRuleSet>false</useProjectRuleSet>
<useProjectRuleSet>true</useProjectRuleSet>
<includeDerivedFiles>false</includeDerivedFiles>
<violationsAsErrors>true</violationsAsErrors>
<fullBuildEnabled>true</fullBuildEnabled>
<ruleSetFile>.ruleset</ruleSetFile>
<includePatterns>
<includePattern>*.java</includePattern>
</includePatterns>
<rules>
<rule>
<name>BooleanInstantiation</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>CollapsibleIfStatements</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>DoubleCheckedLocking</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>EmptyStatementNotInLoop</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>ForLoopShouldBeWhileLoop</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>JumbledIncrementer</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>ReturnFromFinallyBlock</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>UnconditionalIfStatement</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>UnnecessaryConversionTemporary</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>UnnecessaryFinalModifier</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>UnnecessaryReturn</name>
<ruleset>Basic</ruleset>
</rule>

<rule>
<name>AvoidProtectedFieldInFinalClass</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>ConstructorCallsOverridableMethod</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>IdempotentOperations</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>OptimizableToArrayCall</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>PositionLiteralsFirstInComparisons</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>SimplifyBooleanExpressions</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>SimplifyBooleanReturns</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>SimplifyConditional</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>UnnecessaryLocalBeforeReturn</name>
<ruleset>Design</ruleset>
</rule>

<rule>
<name>LoggerIsNotStaticFinal</name>
<ruleset>Java Logging</ruleset>
</rule>

<rule>
<name>UnusedLocalVariable</name>
<ruleset>Unused Code</ruleset>
</rule>
<rule>
<name>UnusedPrivateField</name>
<ruleset>Unused Code</ruleset>
</rule>
<rule>
<name>UnusedPrivateMethod</name>
<ruleset>Unused Code</ruleset>
</rule>
</rules>
</pmd>
@@ -18,95 +18,12 @@
under the License.
-->
<pmd>
<useProjectRuleSet>false</useProjectRuleSet>
<useProjectRuleSet>true</useProjectRuleSet>
<includeDerivedFiles>false</includeDerivedFiles>
<violationsAsErrors>true</violationsAsErrors>
<fullBuildEnabled>true</fullBuildEnabled>
<ruleSetFile>.ruleset</ruleSetFile>
<includePatterns>
<includePattern>*.java</includePattern>
</includePatterns>
<rules>
<rule>
<name>BooleanInstantiation</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>CollapsibleIfStatements</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>DoubleCheckedLocking</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>EmptyStatementNotInLoop</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>ForLoopShouldBeWhileLoop</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>JumbledIncrementer</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>ReturnFromFinallyBlock</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>UnconditionalIfStatement</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>UnnecessaryConversionTemporary</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>UnnecessaryFinalModifier</name>
<ruleset>Basic</ruleset>
</rule>
<rule>
<name>UnnecessaryReturn</name>
<ruleset>Basic</ruleset>
</rule>

<rule>
<name>AvoidProtectedFieldInFinalClass</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>ConstructorCallsOverridableMethod</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>IdempotentOperations</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>OptimizableToArrayCall</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>PositionLiteralsFirstInComparisons</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>SimplifyBooleanExpressions</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>SimplifyBooleanReturns</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>SimplifyConditional</name>
<ruleset>Design</ruleset>
</rule>
<rule>
<name>LoggerIsNotStaticFinal</name>
<ruleset>Java Logging</ruleset>
</rule>
</rules>
</pmd>

0 comments on commit c340f2a

Please sign in to comment.