Perceived Complexity, Cyclomatic Complexity, and Refactoring

Photo by Bofu Shaw on Unsplash

If you’ve worked in Ruby before, perhaps you’ve also used the ever-helpful RuboCop.

RuboCop is a Ruby code style checker (linter) and formatter based on the community-driven Ruby Style Guide. — Rubocop.org

RuboCop is a great tool to ensure that your code consistently adheres to an appropriate standard. The various ‘cops’ aim to keep…