0.0
The project is in a healthy, maintained state
Dependency and configuration for rubocop.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

AroundhomeCops

This repository hosts our configuration gem for rubocop.

The configuration provided here is intended to apply to all of our projects. Your application might have special rules of its own, which you can freely override in your local configuration. But if you think a rule is of general relevance, that it should probably live here.

Usage

Include this gem in your Gemfile:

gem 'aroundhome_cops'

Let your .rubocop.yml inherit from this gem:

inherit_gem:
  aroundhome_cops:
    - default.yml

Customizing rules

The snippet above is everything needed to use this configuration as default. Starting from there it is possible to make local changes to the configuration.

Take this example .rubocop.yml:

inherit_gem:
  aroundhome_cops:
    - default.yml

# We still have unfixed offenses in some files
inherit_from: .rubocop_todo.yml

# This project agreed on a different line length than the rest of the company
Metrics/LineLength:
  Max: 120