Pragmatic Ruby Styling for Projects
Installation
gem "rubocop-pragmatic", require: false, group: [:development]Run bundle, then bundle binstubs rubocop.
Add a default .rubocop.yml file in the root of your Rails application with:
inherit_gem:
rubocop-pragmatic: rails.yml
# Your own specialized rules go hereFor a ruby gem or project (not using Rails):
inherit_gem:
rubocop-pragmatic: ruby.yml
# Your own specialized rules go hereOr to customize your own combination:
inherit_gem:
rubocop-pragmatic:
- rubocop.yml
- rubocop-factory_bot.yml
- rubocop-md.yml
- rubocop-minitest.yml
- rubocop-performance.yml
inherit_mode:
merge:
- Exclude
# Your own specialized rules go here