Fix usage documentation for Inheriting all of the stylistic rules and cops

This commit is contained in:
Ahmed Shahin 2022-12-05 11:59:12 +00:00
Родитель ac9c480f53
Коммит 0581a175c7
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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: