[Codenarc-user] Adding new rule in basic .xml... need help
Brought to you by:
chrismair
From: Ramanan K. <ra...@ju...> - 2010-04-29 13:07:32
|
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 |