-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.rubocop.yml
More file actions
31 lines (25 loc) · 877 Bytes
/
.rubocop.yml
File metadata and controls
31 lines (25 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
AllCops:
NewCops: enable
Layout/LineLength:
Max: 80 # default is 120
Metrics/BlockLength:
AllowedMethods:
# RSpec context block containing many smaller blocks:
- Matchers.define
# RSpec context block containing many smaller examples:
- RSpec.describe
Style/BlockDelimiters:
BracesRequiredMethods:
# The RSpec expect syntax is prettier with braced blocks.
- expect
Style/StringLiterals:
# It's my preference to add or remove variable from strings without replacing
# the outer quotes.
EnforcedStyle: double_quotes
Style/TrailingCommaInArrayLiteral:
# Consistent commas allow for adding and removing lines without affecting
# other lines of arrays. Less editing, prettier diffs.
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
# Same reason as above.
EnforcedStyleForMultiline: consistent_comma