200

Language: Ruby
Checks: 1
Categories: Complexity

Flog is a Code Climate engine for Ruby.

Flog shows you the most torturous code you wrote. The more painful the code, the higher the score. The higher the score, the harder it is to test.

Internally, Flog measures the ABC complexity of Ruby methods.

Enable the Plugin

To enable Flog analysis, add the following to your .codeclimate.yml:

plugins:
  flog:
    enabled: true
    config:
      score_threshold: 20.0

Note: score_threshold is optional. The default is 20.0. Feel free to raise or lower it to control how many issues the engine produces.

More information about the CLI is available in the README here: https://github.com/codeclimate/codeclimate

Configure the Plugin

You can specify the threshold at which methods' complexities will be reported. See the yml file above for an example.