There is a codenarc.groovy command-line script in the root directory of the project. It is intended to streamline common development tasks. Currently, it supports a create-rule task for creating new CodeNarc rules.
The create-rule task performs the following steps:
On Unix/Mac, you can run the following from the project root directory:
On Windows, you can run:
(If Windows is not configured to automatically run *.groovy files, just can run groovy codenarc create-rule)
AFTER YOU RUN codenarc create-rule
After you run codenarc create-rule, finish up the rule implementation, including the following:
Perform the following steps when creating a new rule. See The codenarc Command-line Script for information on the command-line script that automates a good bit of the boilerplate, as indicated below.
Please do the following before submitting a patch or checking in code: