Skip to content

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.

Base configuration

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.

Clone this wiki locally