Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.6
-
Fix Version/s: 2.7
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
In DefaultCheckstyleExecutor.getOverridingProperties() there is the following:
if ( request.getSuppressionsFileExpression() != null ) { String suppresionFile = request.getSuppressionsFileExpression(); if ( suppresionFile != null ) { p.setProperty( request.getSuppressionsFileExpression(), suppresionFile ); } }
Note how supressionFile is being set to the expression, not the file. This one line should read:
String suppresionFile = request.getSuppressionsLocation();
This bug is blocking the m2e-checkstyle plugin from supporting Maven-driven suppression files.
Issue Links
- is duplicated by
-
MCHECKSTYLE-134
suppressionsFileExpression does not work - cannot initialize module SuppressionFilter
-
- is related to
-
MCHECKSTYLE-169
Suppressions property is incorrectly set if suppressions file is on classpath
-
Patch applied in r1092500.
Thanks!
New 2.7-SNAPSHOT deployed. Please test it.