[Codenarc-developer] created a codenarc create-rule target
Brought to you by:
chrismair
From: Hamlet D'A. <ham...@gm...> - 2010-05-23 06:19:31
|
Hi all, I just submitted a patch, and I think it will be really useful. I want creating rules to be easier and not have to copy and paste boilerplate. My intent is to be able to create a new rule live on stage at some upcoming conferences. The patch is attached to: https://sourceforge.net/tracker/?func=detail&atid=1126575&aid=3005873&group_id=250145 On Unix/Mac, you can run the following from the project: ./codenarc create-rule You will enter a rule name and be prompted to select a category. Then the base rule, rule test, ruleset xml, and properties will all be created/updated for you. All you have to do is override a method in your AstTransfromation and update the unit test. Windows users can run groovy codenarc create-rule Let me know how it works. -- Hamlet D'Arcy ham...@gm... |