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.
To enable Flog analysis, add the following to your
plugins flog enabledtrue config score_threshold20.0
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
You can specify the threshold at which methods' complexities will be reported. See the
yml file above for an example.
Updated 2 years ago