Issue discovered with src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java
Problem
Error: src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java:[494] (sizes) LineLength: Line is longer than 120 characters (found 124).
Error: src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java:[494,84] (whitespace) ParenPad: '(' is not followed by whitespace.
Error: src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java:[494,122] (whitespace) ParenPad: ')' is not preceded with whitespace.
Expected behavior
Method Parameter Padding and Line Lenght style violations should not fail
Example diff
{
try
{
- if ( sourceDirectoryToCheck.getCanonicalPath().startsWith( excludeDir.getCanonicalPath() ) )
+ if ( sourceDirectoryToCheck.getCanonicalFile().toPath().startsWith(excludeDir.getCanonicalFile().toPath()) )
{
getLog().debug( "Directory " + sourceDirectoryToCheck.getAbsolutePath()
+ " has been excluded as it matches excludeRoot "
Issue discovered with
src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java
Problem
Expected behavior
Example diff
https://github.com/apache/maven-build-cache-extension/blob/master/src/main/java/org/apache/maven/buildcache/CacheUtils.java
Recipes in example diff:
References:
undefined