-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from ankitmashu/pmdandcheckstyle
added setup part for pmd and checkstyle
- Loading branch information
Showing
8 changed files
with
703 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<ruleset name="IUDX PMD RULESET" | ||
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd"> | ||
|
||
<description> | ||
The default ruleset used by the Maven PMD Plugin, when no other ruleset is specified. | ||
</description> | ||
|
||
<rule ref="category/java/bestpractices.xml/AvoidUsingHardCodedIP" /> | ||
<rule ref="category/java/bestpractices.xml/CheckResultSet" /> | ||
<rule ref="category/java/bestpractices.xml/PrimitiveWrapperInstantiation" /> | ||
<rule ref="category/java/bestpractices.xml/UnusedFormalParameter" /> | ||
<rule ref="category/java/bestpractices.xml/UnusedLocalVariable" /> | ||
<rule ref="category/java/bestpractices.xml/UnusedPrivateField" /> | ||
<rule ref="category/java/bestpractices.xml/UnusedPrivateMethod" /> | ||
|
||
<rule ref="category/java/codestyle.xml/EmptyControlStatement" /> | ||
<rule ref="category/java/codestyle.xml/ExtendsObject" /> | ||
<rule ref="category/java/codestyle.xml/ForLoopShouldBeWhileLoop" /> | ||
<rule ref="category/java/codestyle.xml/UnnecessaryFullyQualifiedName" /> | ||
<!--<rule ref="category/java/codestyle.xml/UnnecessaryImport" />--> | ||
<rule ref="category/java/codestyle.xml/UnnecessaryModifier" /> | ||
<rule ref="category/java/codestyle.xml/UnnecessaryReturn" /> | ||
<rule ref="category/java/codestyle.xml/UnnecessarySemicolon" /> | ||
<rule ref="category/java/codestyle.xml/UselessParentheses" /> | ||
<rule ref="category/java/codestyle.xml/UselessQualifiedThis" /> | ||
|
||
<rule ref="category/java/design.xml/CollapsibleIfStatements" /> | ||
<rule ref="category/java/design.xml/SimplifiedTernary" /> | ||
<rule ref="category/java/design.xml/UselessOverridingMethod" /> | ||
<rule ref="category/java/codestyle.xml/TooManyStaticImports"> | ||
<properties> | ||
<property name="maximumStaticImports" value="100" /> | ||
</properties> | ||
</rule> | ||
|
||
<rule ref="category/java/errorprone.xml/AvoidBranchingStatementAsLastInLoop" /> | ||
<rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor" /> | ||
<rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators" /> | ||
<rule ref="category/java/errorprone.xml/AvoidUsingOctalValues" /> | ||
<rule ref="category/java/errorprone.xml/BrokenNullCheck" /> | ||
<rule ref="category/java/errorprone.xml/CheckSkipResult" /> | ||
<rule ref="category/java/errorprone.xml/ClassCastExceptionWithToArray" /> | ||
<rule ref="category/java/errorprone.xml/DontUseFloatTypeForLoopIndices" /> | ||
<rule ref="category/java/errorprone.xml/EmptyCatchBlock" /> | ||
<rule ref="category/java/errorprone.xml/JumbledIncrementer" /> | ||
<rule ref="category/java/errorprone.xml/MisplacedNullCheck" /> | ||
<rule ref="category/java/errorprone.xml/OverrideBothEqualsAndHashcode" /> | ||
<rule ref="category/java/errorprone.xml/ReturnFromFinallyBlock" /> | ||
<rule ref="category/java/errorprone.xml/UnconditionalIfStatement" /> | ||
<rule ref="category/java/errorprone.xml/UnnecessaryConversionTemporary" /> | ||
<rule ref="category/java/errorprone.xml/UnusedNullCheckInEquals" /> | ||
<rule ref="category/java/errorprone.xml/UselessOperationOnImmutable" /> | ||
|
||
<rule ref="category/java/multithreading.xml/AvoidThreadGroup" /> | ||
<rule ref="category/java/multithreading.xml/DontCallThreadRun" /> | ||
<rule ref="category/java/multithreading.xml/DoubleCheckedLocking" /> | ||
|
||
<rule ref="category/java/performance.xml/BigIntegerInstantiation" /> | ||
|
||
</ruleset> |
Oops, something went wrong.