0.0
The project is in a healthy, maintained state
Provides a centralized location for Athix's commonly used RuboCop overrides.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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