Re: [Codenarc-user] can I make a rule a warning and not an error?
Brought to you by:
chrismair
From: <chr...@wa...> - 2010-04-28 11:50:56
|
There is no formal distinction between a warning or error. You can, however, configure the priority level for each rule, and then configure the CodeNarc Ant task (e.g., maxPriority1Violations="xxx") to fail the build based on priority level. For instance, you can fail the build for all priority level 1and 2 violations, but not for priority 3. You can also configure rules to priority 4. Violations of such rules are included in the report but do not fail the build. I don't think this is documented anywhere explicitly right now. Suggestions are welcome for a good way to handle or document this requirement/behavior. Chris "Hamlet D'Arcy" <ham...@gm...> wrote on 04/28/2010 06:16:42 AM: > Can I make a rule a warning and not an error? > > -- > Hamlet D'Arcy > ham...@gm... > > ------------------------------------------------------------------------------ > _______________________________________________ > Codenarc-user mailing list > Cod...@li... > https://lists.sourceforge.net/lists/listinfo/codenarc-user |