HerrDerb created MCHECKSTYLE-355:
------------------------------------
Summary: Allow checkstyleRules next to configLocation
Key: MCHECKSTYLE-355
URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-355
Project: Maven Checkstyle Plugin
Issue Type: Improvement
Reporter: HerrDerb
*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
{code:java}
<configuration>
<configLocation>google_checks.xml</configLocation>
<checkstyleRules>
<module name="LineLength">
<property name="max" value="120"/>
</module>
</checkstyleRules>
</configuration>{code}
it fails and returns
{code:java}
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{code}
*Desired behaviour*
The google check {{LineLenth}} is overriden by the inline check, defining a
valid line length of 120 instead of 80.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)