README.md in rubocop-standard-7.1.0 vs README.md in rubocop-standard-7.2.0
- old
+ new
@@ -3,23 +3,24 @@
This repository enables all of [Shopify's recommended RuboCop configurations](https://github.com/Shopify/ruby-style-guide), plus some extra ones I've found useful for my projects, like:
- [`rubocop-minitest`](https://github.com/rubocop/rubocop-minitest)
- [`rubocop-performance`](https://github.com/rubocop/rubocop-performance)
- [`rubocop-rails`](https://github.com/rubocop/rubocop-rails)
+- [`rubocop-rails-accessibility`](https://github.com/github/rubocop-rails-accessibility)
- [`rubocop-rake`](https://github.com/rubocop/rubocop-rake)
## Installation
### Gemfile
-``` ruby
+```ruby
gem "rubocop-standard"
```
### .rubocop.yml
-``` yaml
+```yaml
require:
- rubocop-standard
```
## How to configure
@@ -36,20 +37,21 @@
This gem also has the following Rubocop tools as dependencies:
- `rubocop-minitest`
- `rubocop-rails`
-- `rubocop-sorbet
+- `rubocop-rails-accessibility`
+- `rubocop-sorbet`
You can add those in for whichever project needs them:
```yaml
inherit_gem:
rubocop-standard:
- config/default.yml
- config/minitest.yml
- - config/rails.yml
+ - config/rails.yml # includes rails-accessibility
```
## Other features
This project also excludes directories that are ancillary to the core lib code:
@@ -61,6 +63,17 @@
- db/**/*
- node_modules/**/*
- sorbet/**/*
- tmp/**/*
- vendor/**/*
+```
+
+Rails environments also includes `staging`:
+
+```yml
+Rails/UnknownEnv:
+ Environments:
+ - development
+ - test
+ - staging
+ - production
```