update pmd/cpd to 6.44.0

This commit is contained in:
Carsten Otto
2022-03-28 19:30:44 +02:00
parent fdd727cce6
commit 249b833a6d
3 changed files with 8 additions and 3 deletions

View File

@@ -4,5 +4,5 @@ plugins {
check.dependsOn cpdCheck
cpd {
toolVersion = '6.43.0'
toolVersion = '6.44.0'
}

View File

@@ -6,7 +6,7 @@ pmd {
ruleSetFiles = files("${rootDir}/config/pmd-ruleset.xml")
ruleSets = []
consoleOutput = true
toolVersion = '6.43.0'
toolVersion = '6.44.0'
}
tasks.withType(Test).forEach { testTask ->
tasks.withType(Pmd).forEach { pmdTask ->

View File

@@ -112,6 +112,11 @@
value="//ClassOrInterfaceDeclaration[ends-with(@SimpleName, 'Dto') or ends-with(@SimpleName, 'DTO')]"/>
</properties>
</rule>
<rule ref="category/java/design.xml/ImmutableField">
<properties>
<property name="ignoredAnnotations" value="org.springframework.beans.factory.annotation.Autowired|org.springframework.boot.test.mock.mockito.MockBean|org.mockito.Mock|org.mockito.InjectMocks|javax.persistence.Id" />
</properties>
</rule>
<rule ref="category/java/documentation.xml">
<exclude name="CommentRequired"/>
@@ -138,4 +143,4 @@
</rule>
<rule ref="category/java/security.xml"/>
</ruleset>
</ruleset>