Skip to content

Commit f2b8422

Browse files
authored
fix: change Layout/FirstHashElementIndentation to be consistent (#433)
* fix: change `Layout/FirstHashElementIndentation` * fix: change `Layout/FirstHashElementIndentation`
1 parent 45668ac commit f2b8422

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.rubocop.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,23 @@ Naming/VariableNumber:
5050
Style/SignalException:
5151
EnforcedStyle: semantic
5252

53+
# We think that:
54+
# hash = {
55+
# key: :value
56+
# }
57+
# and_in_a_method_call({
58+
# no: :difference
59+
# })
60+
# Looks better than:
61+
# hash = {
62+
# key: :value
63+
# }
64+
# but_in_a_method_call({
65+
# its_like: :this
66+
# })
67+
Layout/FirstHashElementIndentation:
68+
EnforcedStyle: consistent
69+
5370
# We think that:
5471
# {
5572
# foo: :bar

variants/backend-base/rubocop.yml.tt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,23 @@ Naming/VariableNumber:
8383
Style/SignalException:
8484
EnforcedStyle: semantic
8585

86+
# We think that:
87+
# hash = {
88+
# key: :value
89+
# }
90+
# and_in_a_method_call({
91+
# no: :difference
92+
# })
93+
# Looks better than:
94+
# hash = {
95+
# key: :value
96+
# }
97+
# but_in_a_method_call({
98+
# its_like: :this
99+
# })
100+
Layout/FirstHashElementIndentation:
101+
EnforcedStyle: consistent
102+
86103
# We think that:
87104
# {
88105
# foo: :bar

0 commit comments

Comments
 (0)