OnkCop is a RuboCop configration gem.
Ruby Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin Initial commit Dec 28, 2015
config Enable new Style/EmptyLineAfterGuardClause cop Mar 8, 2018
exe Add CLI for setup .rubocop.yml Dec 28, 2016
lib Bump version to v0.53.0.0 Mar 8, 2018
spec Add project spec Dec 16, 2017
templates Remove TargetRailsVersion from template Mar 8, 2018
.gitignore Configure spec_helper Dec 16, 2017
.rspec Add rspec Dec 16, 2017
.rubocop.yml add .rubocop.yml inherit from onkcop Jan 5, 2016
.travis.yml Workaround for CI Mar 8, 2018
CHANGELOG.md
Gemfile rubocop -a Jan 5, 2016
LICENSE.txt Initial commit Dec 28, 2015
README.md Remove TargetRailsVersion from template Mar 8, 2018
Rakefile Add travis.yml and rake default Dec 16, 2017
onkcop.gemspec 👮 Style/ExpandPathArguments Mar 8, 2018

README.md

onkcop

Gem Version Build Status

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.5
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.