OnkCop is a RuboCop configration gem.
Ruby Shell
Latest commit 27e81ed Feb 24, 2017 @onk committed on GitHub Merge pull request #17 from onk/feature/exclude_gemspec_block_length
Allow to exclude gemspec file from Metrics/BlockLength

README.md

onkcop

Gem Version

OnkCop is a RuboCop configration gem.

rubocop のしつけ方 - onk.ninja

Usage

Setup .rubocop.yml

bundle exec onkcop init

init generate the following directive to your .rubocop.yml:

inherit_gem:
  onkcop:
    - "config/rubocop.yml"
    # uncomment if use rails cops
    # - "config/rails.yml"
    # uncomment if use rspec cops
    # - "config/rspec.yml"

AllCops:
  TargetRubyVersion: 2.4
bundle exec rubocop <options...>

Installation

Add this line to your application's Gemfile:

group :development do
  gem "onkcop", require: false
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/onk/onkcop.

License

The gem is available as open source under the terms of the MIT License.