-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pmd-java-ruleset.xml
More file actions
20 lines (15 loc) · 982 Bytes
/
Copy path.pmd-java-ruleset.xml
File metadata and controls
20 lines (15 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0"?>
<ruleset name="Minimal Java PMD ruleset">
<!-- To suppress PMD checks for a particular line, append it with the comment: // NOPMD -->
<!-- You can suppress warnings by using @SuppressWarnings({"PMD.ProperLogger"}) as a wrapper on top of the class-->
<description>Minimal Java PMD ruleset</description>
<!-- Browse rules here: https://pmd.github.io/latest/pmd_rules_java.html -->
<!-- Style rules. Keep sorted -->
<rule ref="category/java/codestyle.xml/ControlStatementBraces" />
<!-- Prevents using == comparison for Strings. -->
<!-- https://pmd.github.io/latest/pmd_rules_java_errorprone.html#compareobjectswithequals -->
<rule ref="category/java/errorprone.xml/CompareObjectsWithEquals" />
<!-- Catches System.out.println left behind in code -->
<!-- https://pmd.github.io/latest/pmd_rules_java_bestpractices.html#systemprintln -->
<rule ref="category/java/bestpractices.xml/SystemPrintln" />
</ruleset>