Skip to content

Contains my commonly used styling overrides for Rubocop

License

Notifications You must be signed in to change notification settings

joshbuker/rubocop-athix

Repository files navigation

RuboCop Athix

Contains my commonly used styling overrides for Rubocop.

Adding additional Excludes

Inherit mode does not get inherited, meaning you'll need to add the following to your config if you overwrite the Exclude and want it to append rather than replace:

##
# Merge instead of overwriting. For more details, see:
# https://docs.rubocop.org/rubocop/configuration.html#merging-arrays-using-inherit_mode
#
inherit_mode:
  merge:
    - Exclude

Usage

Rails Applications

Gemfile

gem 'rubocop-athix'
gem 'rubocop-i18n'
gem 'rubocop-rails'
gem 'rubocop-rake'
gem 'rubocop-rspec'

.rubocop.yml

inherit_gem:
  rubocop-athix:
    - config/rails.yml

Ruby Gems

Gemspec

s.add_development_dependency 'rubocop-athix'
s.add_development_dependency 'rubocop-rake'
s.add_development_dependency 'rubocop-rspec'

Gemfile

gem 'rubocop-athix'
gem 'rubocop-rake'
gem 'rubocop-rspec'

.rubocop.yml

inherit_gem:
  rubocop-athix:
    - config/gems.yml

Other Ruby code

Gemfile

gem 'rubocop-athix'

.rubocop.yml

inherit_gem:
  rubocop-athix:
    - config/default.yml