Skip to content

Commit

Permalink
update pmd config
Browse files Browse the repository at this point in the history
  • Loading branch information
xvik committed Feb 18, 2023
1 parent 7ac6cd7 commit b5bbcec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
* Gradle 8 support (#77)
* Update checkstyle 10.3.1 -> 10.6.0
* Update pmd 6.47 -> 6.54 (java 19 support)
* Update pmd config:
- Disable [TestClassWithoutTestCases](https://pmd.sourceforge.io/pmd-6.54.0/pmd_rules_java_errorprone.html#testclasswithouttestcases)
- Rename excluded rule [BeanMembersShouldSerialize](https://pmd.sourceforge.io/pmd-6.54.0/pmd_rules_java_errorprone.html#beanmembersshouldserialize) to NonSerializableClass
* Update spotbugs 4.7.1 -> 4.7.3
* Update codenarc 3.1.0 -> 3.2.0
* Fix codenarc for groovy4 support: change to x.x-groovy-4.0 version instead of codenarc-groovy4 artifact
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/ru/vyarus/quality/config/pmd/pmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@
<exclude name="AssignmentInOperand"/>
<exclude name="AvoidAccessibilityAlteration"/>
<exclude name="AvoidCatchingThrowable"/>
<exclude name="BeanMembersShouldSerialize"/>
<exclude name="DataflowAnomalyAnalysis"/>
<exclude name="DoNotTerminateVM"/> <!-- earlier j2ee group; before 6.29 DoNotCallSystemExit-->
<exclude name="EmptyFinalizer"/>
Expand All @@ -129,9 +128,11 @@
<exclude name="InvalidLogMessageFormat"/>
<exclude name="LoggerIsNotStaticFinal"/>
<exclude name="MissingSerialVersionUID"/>
<exclude name="NonSerializableClass"/>
<exclude name="NullAssignment"/> <!-- disabled due to false positive for initialization with ternary operator -->
<exclude name="ReturnEmptyArrayRatherThanNull"/>
<exclude name="StaticEJBFieldShouldBeFinal"/> <!-- earlier j2ee group-->
<exclude name="TestClassWithoutTestCases"/>
<exclude name="UseCorrectExceptionLogging"/>
<exclude name="UseLocaleWithCaseConversions"/>
<exclude name="UseProperClassLoader"/> <!-- earlier j2ee group-->
Expand Down

0 comments on commit b5bbcec

Please sign in to comment.