Configuring Your Analysis (original) (raw)

⚠️

Code Climate Quality is being replaced with Qlty Cloud

— New users should sign up directly at qlty.sh.
— To migrate an existing account, please see our Migration Guide.

Our open and extensible platform lets you customize your analysis to surface the issues your team cares about most.

Maintainability Checks
Test Coverage
Plugins
Exclude Patterns
Advanced Configuration

When you first add a repo to Code Climate, we’ll analyze your code using our 10-point maintainability assessment.

These individual checks can be enabled/disabled on the Maintainability tab of your repository's Settings page.

Code Climate allows users to enforce test coverage via our Github Pull Request Integration.

The Enforce Diff Coverage option requires all new code in a Pull Request to meet a configurable minimum threshold of test coverage percentage. The default threshold is 50%.

The Enforce Total Coverage option sends a pass/fail status based on whether the PR would have a positive/negative impact on the repository's overall test coverage.

In addition to the 10-point maintainability analysis, you can choose to implement over 30+ style, linting, and security static analysis tools. These plugins can be individually enabled on the Plugins tab of your repository's Settings page.

You can choose to exclude certain files and directories from our analysis. This can be done using the Exclude patterns tab on your repository's Settings page. By default, we exclude a list of common folders paths for tests, configuration files, and vendor code. To learn more about recommended exclusions, visit our docs here.

In addition to the in-app configuration described above, you can commit a configuration file (.codeclimate.yml or .codeclimate.json) to your repo, which allows you to more finely tune your analysis. For more information, check out our help doc on Advanced Configuration.

Updated 6 days ago