Skip to content

Commit 37d6e4b

Browse files
authored
Add rule MissingEncoding (XML) (#90)
Refs pmd/pmd#5954
1 parent 36a954d commit 37d6e4b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@
5656
<version>${pmd.version}</version>
5757
<scope>test</scope>
5858
</dependency>
59+
<dependency>
60+
<groupId>net.sourceforge.pmd</groupId>
61+
<artifactId>pmd-xml</artifactId>
62+
<version>${pmd.version}</version>
63+
<scope>test</scope>
64+
</dependency>
5965
<dependency>
6066
<groupId>net.sourceforge.pmd</groupId>
6167
<artifactId>pmd-test</artifactId>
@@ -102,6 +108,11 @@
102108
<artifactId>pmd-java</artifactId>
103109
<scope>test</scope>
104110
</dependency>
111+
<dependency>
112+
<groupId>net.sourceforge.pmd</groupId>
113+
<artifactId>pmd-xml</artifactId>
114+
<scope>test</scope>
115+
</dependency>
105116
<dependency>
106117
<groupId>net.sourceforge.pmd</groupId>
107118
<artifactId>pmd-test</artifactId>

src/main/resources/net/sourceforge/pmd/pmd-dogfood-config.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,9 @@
511511

512512
<!-- <rule ref="category/java/security.xml/InsecureCryptoIv" /> -->
513513

514+
<rule ref="category/xml/bestpractices.xml/MissingEncoding">
515+
<priority>1</priority>
516+
</rule>
514517

515518
<!-- Note: These are the custom rule ported to PMD 7 -->
516519

0 commit comments

Comments
 (0)