-
Notifications
You must be signed in to change notification settings - Fork 45
Setup Codeclimate for Rails apps
Abraham edited this page Sep 23, 2016
·
2 revisions
This article will provide a base configuration file for codeclimate when working on Rails applications.
The base configuration includes:
- The engines which will analyze the code
- The directories to exclude the analysis
engines:
rubocop:
enabled: true
brakeman:
enabled: true
eslint:
enabled: true
csslint:
enabled: true
coffeelint:
enabled: true
checks:
max_line_length:
enabled: false
duplication:
enabled: true
exclude_paths:
- "spec/"
config:
languages:
ruby:
mass_threshold: 30
javascript:
ratings:
paths:
- Gemfile.lock
- "**.erb"
- "**.rb"
- "**.css"
- "**.coffee"
- "**.inc"
- "**.js"
- "**.module"
exclude_paths:
- config/
- db/
- vendor/
This configuration file can easily change and be adapted to other contexts.