-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
- Loading branch information
1 parent
d7b8d5b
commit 0c85eaa
Showing
1 changed file
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!-- | ||
This file is uploaded to https://nexus.cicd.portit.io/#browse/upload:portit-webapps (`/pmd-ruleset/` dir) | ||
and then referenced by URL https://nexus.cicd.portit.io/repository/portit-webapps/pmd-ruleset/pmd-ruleset.xml | ||
--> | ||
<ruleset name="Custom Rules" | ||
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 https://pmd.sourceforge.io/ruleset_2_0_0.xsd"> | ||
<description>Remove rules</description> | ||
<rule ref="category/java/bestpractices.xml"> | ||
<exclude name="GuardLogStatement" /> | ||
<exclude name="AbstractClassWithoutAbstractMethod" /> | ||
<exclude name="JUnitTestsShouldIncludeAssert" /> | ||
<exclude name="UseVarargs" /> | ||
<exclude name="MethodReturnsInternalArray" /> | ||
</rule> | ||
<rule ref="category/java/codestyle.xml"> | ||
<exclude name="LongVariable" /> | ||
<exclude name="MethodArgumentCouldBeFinal" /> | ||
<exclude name="ShortMethodName" /> | ||
<exclude name="ShortVariable" /> | ||
<exclude name="AtLeastOneConstructor" /> | ||
<exclude name="LocalVariableCouldBeFinal" /> | ||
<exclude name="UseExplicitTypes" /> | ||
<exclude name="OnlyOneReturn" /> | ||
<exclude name="CommentDefaultAccessModifier" /> | ||
<exclude name="UnnecessaryBoxing" /> | ||
<exclude name="UnnecessaryCast" /> | ||
<exclude name="TooManyStaticImports" /> | ||
<exclude name="CallSuperInConstructor" /> | ||
<exclude name="LinguisticNaming" /> | ||
<exclude name="EmptyMethodInAbstractClassShouldBeAbstract" /> | ||
<exclude name="LambdaCanBeMethodReference" /> | ||
</rule> | ||
<rule ref="category/java/security.xml" /> | ||
<rule ref="category/java/performance.xml" /> | ||
|
||
</ruleset> |