Fix usage documentation for Inheriting all of the stylistic rules and cops
This commit is contained in:
Родитель
ac9c480f53
Коммит
0581a175c7
|
@ -16,10 +16,10 @@ Inherit all of the stylistic rules and cops through an inheritance declaration i
|
|||
|
||||
```yaml
|
||||
# .rubocop.yml
|
||||
inherit_from:
|
||||
inherit_gem:
|
||||
rubocop-github:
|
||||
- config/default.yml # generic Ruby rules and cops
|
||||
- config/rails.yml # Rails-specific rules and cops
|
||||
- config/default.yml # generic Ruby rules and cops
|
||||
- config/rails.yml # Rails-specific rules and cops
|
||||
```
|
||||
|
||||
Alternatively, only require the additional custom cops in your `.rubocop.yml` without inheriting/enabling the other stylistic rules:
|
||||
|
|
Загрузка…
Ссылка в новой задаче