Conveniently run CodeNarc from the command-line.
- Download the codenarc-cli zip
- Unzip codenarc-cli-master.zip
# Display the command-line help
/path/to/unzipped/codenarc-cli/codenarc -help
# Analyze the current directory using the rules configured in `.codenarcrc`
/path/to/unzipped/codenarc-cli/codenarc -basedir=. -rulesetfiles=file:.codenarcrc -report=console
Only tested on MacOS