Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/rubocop/chr
. To experiment with that code, run bin/console
for an interactive prompt.
Add this line to your application's Gemfile:
gem 'rubocop-chr', require: false
And add the following code to your .rubocop.yml
file:
require:
- rubocop-chr
And then execute:
$ bundle
Or install it yourself as:
$ gem install rubocop-chr
Now when you run rubocop
it will include your custom cops.
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.