-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
54 lines (42 loc) · 1.1 KB
/
.rubocop.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
AllCops:
Exclude:
- '_site/**/*'
TargetRubyVersion: 2.6
Style/StringLiterals:
Enabled: true
EnforcedStyle: single_quotes
# We like do ... end if, i.e. multiline modifier
Style/MultilineIfModifier:
Enabled: false
# !!value is a proper way to typecast a return value into Boolean, period
Style/DoubleNegation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
# class Foo::Bar
Style/ClassAndModuleChildren:
EnforcedStyle: compact
# allow comma after last object in Arrays and Hashes
Style/TrailingCommaInArrayLiteral:
Enabled: false
Style/TrailingCommaInHashLiteral:
Enabled: false
# Bucking the ancient 80 character tradition.
# http://programmers.stackexchange.com/questions/148677
Metrics/LineLength:
Max: 120
# tests are blocks and ok to be longer than regular blocks
Metrics/BlockLength:
Exclude:
- test/**/*.rb
# test suites are ok to be longer than regular classes
Metrics/ClassLength:
Exclude:
- test/**/*.rb
Metrics/MethodLength:
Exclude:
- test/**/*.rb
EmptyLines:
Enabled: false
Layout/AlignHash:
EnforcedLastArgumentHashStyle: ignore_implicit