add rubocop in rake
Install rubocop
desc 'run rubocop'
task(:rubocop) do
  require 'rubocop'
  cli = RuboCop::CLI.new
  cli.run
end
task default: [:rubocop, :test]
require File.expand_path('../config/application', __FILE__)
MyApp::Application.load_tasks
Then, just configure .rubocop.yml to your needs here
Written by Marvin Marcelo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Ruby 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#