The project is in a healthy, maintained state
Enables Shopify’s Ruby Style Guide recommendations (and bundles them with other niceties, like `rubocop-{minitest,performance,rails,rake}`).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies
 Project Readme

RuboCop Standard

This repository enables all of Shopify's recommended RuboCop configurations, plus some extra ones I've found useful for my projects, like:

Installation

Gemfile

gem "rubocop-standard"

.rubocop.yml

require:
  - rubocop-standard

How to configure

In your .rubocop.yml file, just write:

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

By default, rubocop-performance and rubocop-rake rules are enforced, because it's assumed that every Ruby project cares about these two sets. Why? Well, everyone should care about performance, and every project uses Rake (and Bundler) as de facto tools.

This gem also has rubocop-minitest and rubocop-rails as dependencies, so you can simply add those in for whichever project needs them:

inherit_gem:
  rubocop-standard:
    - config/default.yml
    - config/minitest.yml
    - config/rails.yml

Other features

This project also excludes directories that are ancillary to the core lib code:

AllCops:
  Exclude:
    - bin/**/*
    - node_modules/**/*
    - tmp/**/*
    - vendor/**/*