Optimum Energy Rubocop

This is the shared team Rubocop configuration for Optimum Energy.

Installation

First, add optimum-energy-rubocop to your Gemfile and run bundle install. We recommend not locking in the version of the gem because we regularly update this repo as we come across new rules.

gem 'optimum-energy-rubocop'

Create a .rubocop.yml file and add this configuration.

inherit_gem:
  optimum-energy-rubocop: optimum_energy_rubocop.yml

Updating This Gem

After making changes to the rules in the optimum_energy_rubocop.yml file, be sure that the version is bumped in both the VERSION.txt and Gemfile.lock files. If the version is not changed, repos consuming this gem will not get the updates.

Running Rubocop

To run the cops locally for this repo, run bundle exec rubocop from the command line.