codeclimate-codenarc is a Code Climate engine for Groovy that wraps the CodeNarc static analysis tool. You can run it on your command line using the Code Climate CLI.
- only will run locally in dev mode after building locally from docker file
- categories for the rules could use some more curating along with the point values
- If you haven't already, install the Code Climate CLI.
- clone the repo and run make testto build the image locally and test it
- Add a .codeclimate.ymlto your project folder that enables the experimental codenarc engine (see below)
- You're ready to analyze! Browse into your project's folder and run CODECLIMATE_DEBUG=1 codeclimate analyze --dev.
- To add you custom codenarc rules, open .codeclimate.ymland add aconfigentry pointing to yourruleset.xmlfile:
engines:
  codenarc:
    enabled: true
    config: ruleset.xmlFor help with CodeNarc, check out their documentation.