This gem should streamline using RuboCop for style checking and linting.
Add this line to your Gemfile and run bundle install:
gem 'stylecheck', github: 'vfonic/stylecheck', require: falseAdd this line to your Rakefile:
require 'stylecheck/rake_tasks' unless Rails.env.production?There are three Rake tasks added by the gem:
Run RuboCop with autocorrect.
Useful for local development.
Run RuboCop.
Useful for running this task on CI. Does not perform autocorrect.
Generate local RuboCop config.
Useful for generating rubocop.yml config file for overriding RuboCop config options specified in stylecheck gem.