Enable PMD check in the default Maven goal.
MODIFY
pom.xml
pom.xml
@@ -357,7 +357,7 @@ file comparators, endian transformation classes, and much more.
<build>
<!-- japicmp:cmp needs package to work from a jar -->
- <defaultGoal>clean verify apache-rat:check japicmp:cmp checkstyle:check javadoc:javadoc</defaultGoal>
+ <defaultGoal>clean verify apache-rat:check japicmp:cmp checkstyle:check pmd:check javadoc:javadoc</defaultGoal>
<pluginManagement>
<plugins>
<plugin>

MODIFY
src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java
src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java
@@ -124,7 +124,7 @@ private int getNewLineMatchByteCount(final byte[] data, final int i) {
*
* @return the line or null
*/
- private String readLine() {
+ private String readLine() { //NOPMD Bug in PMD
String line = null;
int newLineMatchByteCount;

Enable PMD check in the default Maven goal.