Skip to content

Commit 023b76c

Browse files
authored
mentioning the need for overriding rubocop-rails rules (#92)
1 parent 1be1086 commit 023b76c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,23 @@ packs/
170170
my_private_namespaced_model_factory.rb
171171
```
172172

173+
#### rubocop-rails
174+
[rubocop-rails](https://github.com/rubocop/rubocop-rails) [targets paths](https://github.com/rubocop/rubocop-rails/blob/master/config/default.yml) starting with `app/`. You might need to override the `Include` globs to include your packs code.
175+
176+
Examples:
177+
```yml
178+
Rails/EnumHash:
179+
Include:
180+
- '**/app/models/**/*.rb'
181+
Rails/InverseOf:
182+
Include:
183+
- '**/app/models/**/*.rb'
184+
Rails/LexicallyScopedActionFilter:
185+
Include:
186+
- '**/app/controllers/**/*.rb'
187+
- '**/app/mailers/**/*.rb'
188+
```
189+
173190
#### parallel_tests
174191

175192
`parallel_tests` has it its own spec discovery mechanism, so packs-rails's RSpec integration doesn't do anything when you use them together.

0 commit comments

Comments
 (0)