Hi Mirko,

So if I understand you correctly you want to specify if a rule should be considered as a warning or an error. And you want to specify if the enforcer-plugin should failOnError(default) or failOnWarning.
IMHO enforcer rules should always succeed.
Looking at the standard rules[1] I don't see one which should just warn.
Which use case did you have in mind?

-Robert

[1] http://maven.apache.org/enforcer/enforcer-rules/index.html

Op Tue, 13 Mar 2012 21:31:12 +0100 schreef Mirko Friedenhagen <mfriedenha...@gmail.com>:

No thoughts about this? Should I just create a new ticket for this :-)?
Regards Mirko

On Wed, Mar 7, 2012 at 21:16, Mirko Friedenhagen
<mfriedenha...@gmail.com> wrote:
Hello,

http://jira.codehaus.org/browse/MENFORCER-124 suggests a "Rule-scoped
fail property" as feature. My suggestion would be something like this:
- Add an optional qualifier per rule which differentiates between
INFO, WARNING and ERROR (same as the loglevels) and
- Make the rules log with this level on the console and
- Make the build optionally fail only if there were violations with
log level ERROR.

For backward compatibility when no qualifier is given, rules will
default to ERROR.

What do you think?

Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to