Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 968 Bytes

README.md

File metadata and controls

39 lines (22 loc) · 968 Bytes

Stylecheck CircleCI

This gem should streamline using RuboCop for style checking and linting.

Install

Add this line to your Gemfile and run bundle install:

gem 'stylecheck', github: 'vfonic/stylecheck', require: false

Add this line to your Rakefile:

require 'stylecheck/rake_tasks' unless Rails.env.production?

Tasks

There are three Rake tasks added by the gem:

rake style

Run RuboCop with autocorrect.

Useful for local development.

rake style:rubocop:run

Run RuboCop.

Useful for running this task on CI. Does not perform autocorrect.

rake style:rubocop:generate_local_config

Generate local RuboCop config.

Useful for generating rubocop.yml config file for overriding RuboCop config options specified in stylecheck gem.