Rubocop

Public
RuboCop is a Ruby static code analyzer (a.k.a. linter) and code formatter.
Icons/chart bar
Used 41 times
Created by
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
Comments

Sign up or Login to leave a comment.