RuboCop is a Ruby static code analyzer (a.k.a. linter) and code formatter.
Used 41 times
E
Emanuele Bonanno
Usage
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/X6ks81"
Template Source
Review the code before running this template on your machine.
inject_into_file 'Gemfile', after: 'group :development, :test do' do
<<-RUBY
gem "rubocop", require: false
gem "rubocop-performance", require: false
gem "rubocop-rails", require: false
gem "rubocop-rspec", require: false
RUBY
end