Skip to content

Commit de4bbca

Browse files
committed
Enable three Rubocop cops
This commit enables: * Layout/EmptyLineBetweenDefs - makes sure that two method definitions are separated by a blank line. * Layout/ParameterAlignment - makes sure that method parameters are aligned with the first parameter * Naming/VariableName - prohibits non-snake_case variable names
1 parent 5ae04ae commit de4bbca

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

app/.rubocop.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@ inherit_gem:
1515
AllCops:
1616
NewCops: enable
1717

18-
# Overrides
19-
Layout/IndentationWidth:
18+
# Re-enable some Cops not included in the rubocop-rails-omakase configuration:
19+
# https://github.com/rails/rubocop-rails-omakase/blob/main/rubocop.yml
20+
Layout/EmptyLineBetweenDefs:
2021
Enabled: true
22+
Layout/EndAlignment:
23+
EnforcedStyleAlignWith: keyword
2124
Layout/IndentationConsistency:
2225
Enabled: true
2326
EnforcedStyle: normal
24-
Layout/EndAlignment:
25-
EnforcedStyleAlignWith: keyword
27+
Layout/IndentationWidth:
28+
Enabled: true
29+
Layout/ParameterAlignment:
30+
Enabled: true
31+
Naming/VariableName:
32+
Enabled: true

0 commit comments

Comments
 (0)