Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should support and empty rule set ("do nothing") configuration #43

Open
hgschmie opened this issue Nov 16, 2015 · 1 comment
Open

should support and empty rule set ("do nothing") configuration #43

hgschmie opened this issue Nov 16, 2015 · 1 comment

Comments

@hgschmie
Copy link
Contributor

It should be possible to "turn off" the default checks without having to specify any violations file. This would allow configuring the plugin in a stacked pom environment (having a base pom that wires up the plugin but does not impose any policy on a project) and the leave it to the actual projects to choose what checks it wants (e.g. turn on the default checks or supply a specific violations file).

@jamcole
Copy link

jamcole commented Dec 2, 2015

It appears you can use <skip>true</skip> or -Dmodernizer.skip=true in the sub-project to disable the checks even though it's not in the documentation; works for our situation.
Our parent pom contains <skip>${modernizer.skip}</skip> since the config setting takes precedence over the system property for some reason; this makes it work as expected so our sub-projects can disable the checks until they have a configuration specific to them.
Using that with maven's "combine.children" and "combine.self" config merging is how we manage all our parent pom config checks (we also use pmd in a similar manner).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants