Re: [Codenarc-user] Adding new rule in basic .xml... need help
Brought to you by:
chrismair
From: Hamlet D'A. <ham...@gm...> - 2010-04-29 13:10:45
|
Can you attach your 4 files? On Thu, Apr 29, 2010 at 3:11 PM, Ramanan Kumaravelu <ra...@ju...> wrote: > Hi , > > > > I have added a new rule under basic.xml to flag the presence of ‘console’ > statements in groovy codebase as a Priority 2 violation. I have built the > modified codebase successfully using “mvn install”. > > > > Later, when I try generating the html report using the newly generated > CodeNarc-0.9-SNAPSHOT.jar by running RunAntTask.bat, I get the html report > output, but it doesn’t report the presence of console statements in the > codebase that is analyzed. > > > > I have done the following things in trying to add the new rule. > > · I have created the following two files: > > 1. ConsoleStatementPresenceRule.groovy > > 2. ConsoleStatementPresenceRuleTest.groovy > > > > · I have updated basic.xml (this is the place where I am adding my > new rule) and codenarc-rules-basic.apt > > > > · Also, I have updated codenarc-base-messages.properties file > > > > I must be missing something here… Can anyone through some light on this? > > > > Many thanks in advance… > > -Ramanan > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Codenarc-user mailing list > Cod...@li... > https://lists.sourceforge.net/lists/listinfo/codenarc-user > > -- Hamlet D'Arcy ham...@gm... |