File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1818 <exclude name =" UnitTestAssertionsShouldIncludeMessage" />
1919 <exclude name =" UnitTestContainsTooManyAsserts" />
2020 <exclude name =" PreserveStackTrace" />
21+ <exclude name =" ImplicitFunctionalInterface" />
2122 </rule >
2223 <rule ref =" category/java/codestyle.xml" >
2324 <exclude name =" AtLeastOneConstructor" />
Original file line number Diff line number Diff line change 2323 with :
2424 rulesets : ' .github/pmd-ruleset.xml'
2525 sourcePath : ' src/main/java'
26+ analyzeModifiedFilesOnly : false
2627
2728 - name : Fail build if there are violations
28- if : steps.pmd.outputs.violations != 0
29- run : exit 1
29+ if : always()
30+ run : |
31+ VIOLATIONS="${{ steps.pmd.outputs.violations }}"
32+ if [ -n "$VIOLATIONS" ] && [ "$VIOLATIONS" != "0" ]; then
33+ echo "PMD found $VIOLATIONS violations"
34+ exit 1
35+ fi
You can’t perform that action at this time.
0 commit comments