Andy Feldman created MCHECKSTYLE-343:
----------------------------------------
Summary: Default property expansions
Key: MCHECKSTYLE-343
URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-343
Project: Maven Checkstyle Plugin
Issue Type: Improvement
Reporter: Andy Feldman
Priority: Minor
The Checkstyle plugins for Eclipse and IntelliJ IDEA both define a few default
properties that are accessible in Checkstyle configuration, like the custom
property expansions that can be defined by the Maven plugin
(https://maven.apache.org/plugins/maven-checkstyle-plugin/examples/custom-property-expansion.html).
Those two plugins have standardized on the same variables, which lets our dev
team share one configuration file without any custom configuration for the two
IDE plugins.
Would it be possible for the Maven plugin to pass the same default values to
Checkstyle, so that we wouldn't need to define them in each project's pom.xml?
>From Eclipse-CS:
{code}
Built-in properties
First there are some properties that are automatically expanded by the plug-in:
${basedir} & ${project_loc} - gets mapped to the current project directory
${workspace_loc} - gets mapped to the current Eclipse workspace directory
${config_loc} & ${samedir} - get mapped to the directory the configuration file
lies in
{code}
>From CheckStyle-IDEA:
{code}
Eclipse-CS Variable Support
The following variables will be available if you have not otherwise overridden
their values:
basedir - mapped to the location of the current module file, or the project
directory as a fallback.
project_loc, workspace_loc - mapped to the project directory.
config_loc, samedir - mapped to the directory the rules file is in, or the
project directory for remote rules files (e.g. HTTP).
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)