Skip to content

Commit 6a5a609

Browse files
authored
config/rails: Broader ERB exclude paths
- Yes, by default Rails has `app/views/**/*.erb`, but ERB can also be elsewhere in the codebase. - This avoids users (of the Rails configs of this gem) from having to manually add other ERB exclusions, since these cops don't reliably play nicely with any ERB regardless of where it lives.
1 parent 40b2935 commit 6a5a609

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

config/rails.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,27 @@ GitHub/RailsViewRenderShorthand:
3434

3535
Layout/BlockAlignment:
3636
Exclude:
37-
- app/views/**/*.erb
37+
- "**/*.erb"
3838

3939
Layout/IndentationWidth:
4040
Exclude:
41-
- app/views/**/*.erb
41+
- "**/*.erb"
4242

4343
Layout/InitialIndentation:
4444
Exclude:
45-
- app/views/**/*.erb
45+
- "**/*.erb"
4646

4747
Layout/SpaceInsideParens:
4848
Exclude:
49-
- app/views/**/*.erb
49+
- "**/*.erb"
5050

5151
Layout/TrailingEmptyLines:
5252
Exclude:
53-
- app/views/**/*.erb
53+
- "**/*.erb"
5454

5555
Layout/TrailingWhitespace:
5656
Exclude:
57-
- app/views/**/*.erb
57+
- "**/*.erb"
5858

5959
Lint/UselessAccessModifier:
6060
ContextCreatingMethods:
@@ -399,16 +399,16 @@ Rails/WhereNot:
399399

400400
Style/For:
401401
Exclude:
402-
- app/views/**/*.erb
402+
- "**/*.erb"
403403

404404
Style/OneLineConditional:
405405
Exclude:
406-
- app/views/**/*.erb
406+
- "**/*.erb"
407407

408408
Style/Semicolon:
409409
Exclude:
410-
- app/views/**/*.erb
410+
- "**/*.erb"
411411

412412
Style/StringLiterals:
413413
Exclude:
414-
- app/views/**/*.erb
414+
- "**/*.erb"

0 commit comments

Comments
 (0)