talha-inozu commented on PR #132:
URL:
https://github.com/apache/maven-checkstyle-plugin/pull/132#issuecomment-1997726292
Due to the property fields, when the `mvn clean install `command is
executed, it applies the check command in the specified configurations, but
when we run the `mvn checkstyle:check` command as an inline command, it cannot
read the config variables in the pom because the property name and itself are
different.
Example:
In pom.xml
`<configuration>
<configLocation>my_checks.xml</configLocation>
</configuration>`
But at the code:
`@Parameter(property = "checkstyle.config.location", defaultValue =
DEFAULT_CONFIG_LOCATION) =
protected String configLocation;`
Because of checkstyle.config.location , `mvn checkstyle:check` command
doesnt see the configureLocation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]