Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Summary
Allow to define a configLocation and checkstyleRules resulting in inline checkstyle rules overriding configLocation checks. This would allow a dynamic checkstyle rule configuration.
Current behaviour
Currently when running the plugin with the following configuration
<configuration> <configLocation>google_checks.xml</configLocation> <checkstyleRules> <module name="LineLength"> <property name="max" value="120"/> </module> </checkstyleRules> </configuration>
it fails and returns
Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (default) on project comlab-pom: If you use inline configuration for rules, don't specify a configLocation
Desired behaviour
The google check LineLenth is overriden by the inline check, defining a valid line length of 120 instead of 80.