RED-8085 pmd checkup/cleanup
This commit is contained in:
parent
75bd2142ec
commit
fdb3f3476b
@ -12,6 +12,10 @@ group = "com.knecon.fforesight.service"
|
|||||||
java.sourceCompatibility = JavaVersion.VERSION_17
|
java.sourceCompatibility = JavaVersion.VERSION_17
|
||||||
java.targetCompatibility = JavaVersion.VERSION_17
|
java.targetCompatibility = JavaVersion.VERSION_17
|
||||||
|
|
||||||
|
pmd {
|
||||||
|
isConsoleOutput = true
|
||||||
|
}
|
||||||
|
|
||||||
tasks.pmdMain {
|
tasks.pmdMain {
|
||||||
pmd.ruleSetFiles = files("${rootDir}/config/pmd/pmd.xml")
|
pmd.ruleSetFiles = files("${rootDir}/config/pmd/pmd.xml")
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,12 +9,11 @@
|
|||||||
</description>
|
</description>
|
||||||
|
|
||||||
<rule ref="category/java/errorprone.xml">
|
<rule ref="category/java/errorprone.xml">
|
||||||
<exclude name="DataflowAnomalyAnalysis"/>
|
|
||||||
<exclude name="MissingSerialVersionUID"/>
|
<exclude name="MissingSerialVersionUID"/>
|
||||||
<exclude name="NullAssignment"/>
|
|
||||||
<exclude name="AvoidLiteralsInIfCondition"/>
|
<exclude name="AvoidLiteralsInIfCondition"/>
|
||||||
<exclude name="AvoidDuplicateLiterals"/>
|
<exclude name="AvoidDuplicateLiterals"/>
|
||||||
<exclude name="AvoidFieldNameMatchingMethodName"/>
|
<exclude name="NullAssignment"/>
|
||||||
|
<exclude name="AssignmentInOperand"/>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
</ruleset>
|
</ruleset>
|
||||||
@ -10,14 +10,13 @@
|
|||||||
|
|
||||||
|
|
||||||
<rule ref="category/java/errorprone.xml">
|
<rule ref="category/java/errorprone.xml">
|
||||||
<exclude name="DataflowAnomalyAnalysis"/>
|
|
||||||
<exclude name="MissingSerialVersionUID"/>
|
<exclude name="MissingSerialVersionUID"/>
|
||||||
<exclude name="NullAssignment"/>
|
|
||||||
<exclude name="AvoidLiteralsInIfCondition"/>
|
<exclude name="AvoidLiteralsInIfCondition"/>
|
||||||
<exclude name="AvoidDuplicateLiterals"/>
|
<exclude name="AvoidDuplicateLiterals"/>
|
||||||
<exclude name="AvoidFieldNameMatchingMethodName"/>
|
<exclude name="NullAssignment"/>
|
||||||
<exclude name="AvoidFieldNameMatchingTypeName"/>
|
<exclude name="AssignmentInOperand"/>
|
||||||
<exclude name="TestClassWithoutTestCases"/>
|
<exclude name="TestClassWithoutTestCases"/>
|
||||||
|
<exclude name="BeanMembersShouldSerialize"/>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
</ruleset>
|
</ruleset>
|
||||||
Loading…
x
Reference in New Issue
Block a user