Skip to content

Standardizes major version and style overrides for Rubocop gem

License

Notifications You must be signed in to change notification settings

mellowfish/ramsey-cop

 
 

Repository files navigation

RamseyCop

Gem Version Number of Downloads

Inspired by https://blog.percy.io/share-rubocop-rules-across-all-of-your-repos-f3281fbd71f8

Ramsey shared RuboCop style configs.

Why

https://www.sandimetz.com/blog/2017/6/1/why-we-argue-style

Installation

Add this line to your application's Gemfile:

group :test, :development do
  gem "ramsey_cop"
end

And then run:

$ bundle install

If you're in a Rails app, you can now run:

$ rails generate ramsey_cop

If you're not in a Rails app, you will need to create a .rubocop.yml with the following directives:

  • Note: This will work locally, but will not work with CodeClimate. If you are using CodeClimate, see the documentation linked at the bottom of this page.
inherit_gem:
  ramsey_cop:
    - default.yml

Now, run:

$ bundle exec rubocop

You do not need to include rubocop directly in your application's dependencies. RamseyCop will include a specific version of rubocop that is shared across all projects.

Documentation

About

Standardizes major version and style overrides for Rubocop gem

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 83.4%
  • Dockerfile 13.4%
  • Shell 3.2%