项目作者: cinch-financial

项目描述 :
codenarc engine for codeclimate
高级语言: Groovy
项目地址: git://github.com/cinch-financial/codeclimate-codenarc.git
创建时间: 2017-11-05T17:44:38Z
项目社区:https://github.com/cinch-financial/codeclimate-codenarc

开源协议:

下载


Code Climate CodeNarc (Groovy) Engine

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

Installation

  1. If you haven’t already, install the Code Climate CLI.
  2. clone the repo and run make test to build the image locally and test it
  3. Add a .codeclimate.yml to your project folder that enables the experimental codenarc engine (see below)
  4. You’re ready to analyze! Browse into your project’s folder and run CODECLIMATE_DEBUG=1 codeclimate analyze --dev.
  5. To add you custom codenarc rules, open .codeclimate.yml and add a config entry pointing to your ruleset.xml file:
  1. engines:
  2. codenarc:
  3. enabled: true
  4. config: ruleset.xml

Need help?

For help with CodeNarc, check out their documentation.