Project

onkcop

0.09
No commit activity in last 3 years
No release in over 3 years
OnkCop is a RuboCop configration gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 0.80.0
>= 1.34.0
 Project Readme

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.