Skip to content
/ onkcop Public

OnkCop is a RuboCop configration gem.

License

Notifications You must be signed in to change notification settings

onk/onkcop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8066859 · Jan 2, 2021
Dec 28, 2015
Jan 2, 2021
Dec 28, 2016
Jan 2, 2021
Dec 16, 2017
Jan 2, 2021
Dec 16, 2017
Dec 16, 2017
Jan 5, 2016
Nov 3, 2018
Jan 2, 2021
Jan 5, 2016
Dec 28, 2015
Jan 2, 2021
Dec 16, 2017
Jan 2, 2021

Repository files navigation

onkcop

Gem Version Build Status

OnkCop is a RuboCop configration gem.

rubocop のしつけ方 - onk.ninja

Deprecated

onkcop basically ended with rubocop v0.53.0 in 2018. I'm not thinking about the acceptance of new cops. (Maintenance work will continue.)

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.