Skip to content

Commit 26c2199

Browse files
Change BlockDelimiter to braces_for_chaining
1 parent 512b19c commit 26c2199

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Style/PercentLiteralDelimiters:
66
'%W': '[]'
77

88
Style/BlockDelimiters:
9+
EnforcedStyle: braces_for_chaining
10+
# The `braces_for_chaining` style enforces braces around single line blocks
11+
# and do..end around multi-line blocks, except for multi-line blocks whose
12+
# return value is being chained with another method (in which case braces
13+
# are enforced).
914
Exclude:
1015
- 'spec/**/*'
1116

0 commit comments

Comments
 (0)