generated from hmcts/service-hmcts-crime-springboot-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpmd-ruleset.xml
More file actions
35 lines (33 loc) · 1.45 KB
/
pmd-ruleset.xml
File metadata and controls
35 lines (33 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Custom Ruleset"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0
https://pmd.github.io/pmd-7.17.0/pmd-7.17.0.xsd">
<description>Custom ruleset including exclusions</description>
<rule ref="category/java/codestyle.xml/MethodNamingConventions">
<properties>
<!-- This regex allows underscores in JUnit 5 test method names -->
<property name="junit5TestPattern" value="^[a-z][a-zA-Z0-9_]*$"/>
</properties>
</rule>
<rule ref="category/java/bestpractices.xml">
<exclude name="GuardLogStatement"/>
<exclude name="UnitTestAssertionsShouldIncludeMessage"/>
<exclude name="UnitTestContainsTooManyAsserts"/>
<exclude name="PreserveStackTrace"/>
<exclude name="ImplicitFunctionalInterface"/>
</rule>
<rule ref="category/java/codestyle.xml">
<exclude name="AtLeastOneConstructor"/>
<exclude name="CallSuperInConstructor"/>
<exclude name="LongVariable"/>
<exclude name="ShortVariable"/>
<exclude name="TooManyStaticImports"/>
</rule>
<rule ref="category/java/errorprone.xml">
<exclude name="InvalidLogMessageFormat"/>
</rule>
<rule ref="category/java/performance.xml"/>
<rule ref="category/java/security.xml"/>
</ruleset>