Skip to content

Commit b5bbcec

Browse files
committed
update pmd config
1 parent 7ac6cd7 commit b5bbcec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
* Gradle 8 support (#77)
22
* Update checkstyle 10.3.1 -> 10.6.0
33
* Update pmd 6.47 -> 6.54 (java 19 support)
4+
* Update pmd config:
5+
- Disable [TestClassWithoutTestCases](https://pmd.sourceforge.io/pmd-6.54.0/pmd_rules_java_errorprone.html#testclasswithouttestcases)
6+
- Rename excluded rule [BeanMembersShouldSerialize](https://pmd.sourceforge.io/pmd-6.54.0/pmd_rules_java_errorprone.html#beanmembersshouldserialize) to NonSerializableClass
47
* Update spotbugs 4.7.1 -> 4.7.3
58
* Update codenarc 3.1.0 -> 3.2.0
69
* Fix codenarc for groovy4 support: change to x.x-groovy-4.0 version instead of codenarc-groovy4 artifact

src/main/resources/ru/vyarus/quality/config/pmd/pmd.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@
117117
<exclude name="AssignmentInOperand"/>
118118
<exclude name="AvoidAccessibilityAlteration"/>
119119
<exclude name="AvoidCatchingThrowable"/>
120-
<exclude name="BeanMembersShouldSerialize"/>
121120
<exclude name="DataflowAnomalyAnalysis"/>
122121
<exclude name="DoNotTerminateVM"/> <!-- earlier j2ee group; before 6.29 DoNotCallSystemExit-->
123122
<exclude name="EmptyFinalizer"/>
@@ -129,9 +128,11 @@
129128
<exclude name="InvalidLogMessageFormat"/>
130129
<exclude name="LoggerIsNotStaticFinal"/>
131130
<exclude name="MissingSerialVersionUID"/>
131+
<exclude name="NonSerializableClass"/>
132132
<exclude name="NullAssignment"/> <!-- disabled due to false positive for initialization with ternary operator -->
133133
<exclude name="ReturnEmptyArrayRatherThanNull"/>
134134
<exclude name="StaticEJBFieldShouldBeFinal"/> <!-- earlier j2ee group-->
135+
<exclude name="TestClassWithoutTestCases"/>
135136
<exclude name="UseCorrectExceptionLogging"/>
136137
<exclude name="UseLocaleWithCaseConversions"/>
137138
<exclude name="UseProperClassLoader"/> <!-- earlier j2ee group-->

0 commit comments

Comments
 (0)