Skip to content

Commit

Permalink
Fixed new PMD rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Mar 6, 2018
1 parent 41c9b8a commit 2f4a5af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions CONTRIBUTING.md
Expand Up @@ -26,14 +26,16 @@ For [IntelliJ IDEA](https://www.jetbrains.com/idea/) users: the coding style is
`.idea` folder. If you import this project into IntelliJ this style will used automatically.

Moreover (since this project is about static code analysis :wink:) a configuration for the following static code
analysis tools is defined in the `etc` folder:
analysis tools is defined in the POM and the `etc` and `.idea` folders:
- [Checkstyle](http://checkstyle.sourceforge.net/)
- [PMD](http://https://pmd.github.io/)
- [PMD](https://pmd.github.io/)
- [FindBugs](http://findbugs.sourceforge.net/) and [SpotBugs](https://spotbugs.github.io)
- [Error Prone](http://errorprone.info)
- [IntelliJ](https://www.jetbrains.com/help/idea/code-inspection.html)

This configuration will be picked up automatically if you build the project using maven. If you install the CheckStyle
plugin of IntelliJ then the correct set of CheckStyle rules will used automatically.
plugin of IntelliJ then the correct set of CheckStyle rules will used automatically. Moreover, the code formatter and
the inspection rules will be automatically picked up bey IntelliJ.

## Proposing Changes

Expand Down
3 changes: 1 addition & 2 deletions etc/pmd-configuration.xml
Expand Up @@ -169,7 +169,6 @@
<rule ref="rulesets/java/javabeans.xml/MissingSerialVersionUID"/>
<rule ref="rulesets/java/junit.xml/JUnitStaticSuite"/>
<rule ref="rulesets/java/junit.xml/JUnitSpelling"/>
<rule ref="rulesets/java/junit.xml/JUnitAssertionsShouldIncludeMessage"/>
<rule ref="rulesets/java/junit.xml/UnnecessaryBooleanAssertion"/>
<rule ref="rulesets/java/junit.xml/UseAssertEqualsInsteadOfAssertTrue"/>
<rule ref="rulesets/java/junit.xml/UseAssertSameInsteadOfAssertTrue"/>
Expand Down Expand Up @@ -228,7 +227,7 @@
<rule ref="rulesets/java/naming.xml/AvoidFieldNameMatchingTypeName"/>
<rule ref="rulesets/java/naming.xml/NoPackage"/>
<rule ref="rulesets/java/naming.xml/PackageCase"/>
<rule ref="rulesets/java/naming.xml/MisleadingVariableName"/>
<rule ref="rulesets/java/naming.xml/MIsLeadingVariableName"/>
<rule ref="rulesets/java/naming.xml/GenericsNaming"/>
<rule ref="rulesets/java/codesize.xml/NPathComplexity"/>
<rule ref="rulesets/java/codesize.xml/ExcessiveClassLength"/>
Expand Down

0 comments on commit 2f4a5af

Please sign in to comment.