Default Analysis Configuration

The following is the standard configuration for analysis after adding a repository to Code Climate.

Maintainability Checks

By default, Maintainability checks are turned on for your repository with standard thresholds:

Default thresholds

  • Argument count
  • Threshold: 4
  • Complex logic
  • Threshold: 4
  • File lines
  • Threshold: 250
  • Method complexity
  • Threshold: 5
  • Method count
  • Threshold: 20
  • Method length
  • Threshold: 25
  • Nested control flow
  • Threshold: 4
  • Return statements
  • Threshold: 4
  • Similar blocks of code
  • Threshold: language-specific defaults
  • Identical blocks of code
  • Threshold: language-specific defaults

Per-Language Mass Threshold Defaults

Our identical-code and similar-code checks use language-specific mass thresholds. For additional info, refer to our doc on Duplication.

Language

Default Mass Threshold

Ruby

Python

JavaScript

PHP

TypeScript

Go

Java

Swift

Kotlin

Scala

C#

18

32

45

28

45

100

40

40

60

60

60

Excluded Folders

We exclude the following folders from our analysis by default:

config/
db/
dist/
features/
**/node_modules/
script/
**/spec/
**/test/
**/tests/
Tests/
**/vendor/
**/*_test.go
**/*.d.ts

Plugins

Plugins are not enabled by default.

📘

Customizing your configuration

As described in Configuring Your Code Climate Analysis, Code Climate's analysis checks can be configured within your repository's Settings page.

We also offer Advanced Configuration.

Related Issues

🚧

UTF-8

Code Climate analysis currently only supports UTF-8 encoding. Files not encoded in UTF-8 may be skipped during the parsing process if a non-UTF-8 character is encountered.

🚧

Max File Size

Files larger than 500Kb will not be analyzed, due to engine memory constraints.

Updated 10 months ago

Default Analysis Configuration


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.