Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results

Configuring Your Code Climate Analysis

Our engines-based analysis lets you configure your analysis via a .codeclimate.yml file in the root of your repository. As shown in the sample file below, the 3 major nodes include:

  • engines:
  • ratings:
  • exclude_paths:

Issues in files not listed in either the ratings OR exclude_paths nodes will be reported, but will not count toward your repo's overall GPA.

In addition, Code Climate also honors the configuration files of the underlying native static analysis tools, such as .rubocop.yml, and .eslintrc.*.

If you haven't committed a .codeclimate.yml (or other tool-specific config files needed for analysis), you can find the inferred settings by heading to your repo's individual page, and append analysis_config to the URL. Example:

For repos added after July 2017, the .codeclimate.yml may not be available at the above-mentioned URL. If you experience a 404, please generate the .codeclimate.yml locally by using the Code Climate CLI.

For configuration of specific engines, please see the support doc for that engine.
For information on configuring specific aspects of your analysis, please see the following docs:

Engines-based Analysis Sample File

    enabled: true
    #  Rubocop/Metrics/ClassLength:
    #    enabled: false
    enabled: true
    enabled: true
    enabled: true
    enabled: true
      - ruby:
      - javascript:
  - app/**
  - lib/**
  - "**.rb"
  - "**.go"
- spec/**/*
- "**/vendor/**/*"

Classic Analysis Only

If your repository is still being analyzed by our Classic analysis, rather than specifying engines you'd like enabled, you can specify the programming languages that Code Climate should consider during our analysis. Note that our Classic analysis only supports Ruby, JavaScript, PHP and Python.

Please see the example .codeclimate.yml below, that is configured for our Classic analysis.

JavaScript: true
Ruby: true
Python: false
PHP: false

- test/**/*
- vendor/**/*

For more information on how our engines-based analysis compares to our Classic analysis, please see our doc!

Related Issues

Configuring Your Code Climate Analysis