Today, we’re excited to announce the release of the Flog analysis engine.
Flog is a static analysis tool for Ruby that measures the ABC complexity of methods. Or, as stated by its author, Ryan Davis: “Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in.”
For those of you who’ve been using Code Climate for a while, ABC is the same complexity metric that was calculated as part of our Classic analysis - and we’re excited to reintroduce it as an engine!
To enable the Flog engine for your project, add the following to your
.codeclimate.yml configuration file:
engines: flog: enabled: true ratings: paths: - "**.rb"
If you have the latest version of the CLI installed, you can enable the engine with
codeclimate engines:enable flog.