-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
103 lines (82 loc) · 1.94 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
AllCops:
TargetRubyVersion: 2.5
DisabledByDefault: true
Exclude:
- pkg/**/*.rb
- test/spec/**/*.rb
Bundler/DuplicatedGem:
Enabled: true
Lint:
Enabled: true
Security:
Enabled: true
# Single quotes being faster is hardly measurable and only affects parse time.
# Enforcing double quotes reduces the times where you need to change them
# when introducing an interpolation. Use single quotes only if their semantics
# are needed.
Style/StringLiterals:
EnforcedStyle: double_quotes
Exclude:
- lib/riddler/protobuf/*_pb.rb
# Seattle style
Style/MethodDefParentheses:
EnforcedStyle: require_no_parentheses
# Seattle style
Style/MethodCallWithoutArgsParentheses:
Enabled: true
# Seattle style
Style/MethodCallWithArgsParentheses:
Enabled: true
EnforcedStyle: omit_parentheses
AllowParenthesesInChaining: true
IgnoredMethods:
- watch
Style/SpecialGlobalVars:
Enabled: false
Layout/FirstArrayElementIndentation:
Enabled: true
EnforcedStyle: consistent
Style/Lambda:
Enabled: true
EnforcedStyle: literal
# Allow regex argument in Seattle style
Lint/AmbiguousRegexpLiteral:
Enabled: false
# Allow block argument in Seattle style
Lint/AmbiguousOperator:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
Enabled: true
EnforcedStyleForEmptyBraces: no_space
EnforcedStyle: no_space
Layout/FirstHashElementIndentation:
Enabled: true
EnforcedStyle: consistent
Layout/CaseIndentation:
Enabled: true
EnforcedStyle: end
Layout/EndAlignment:
Enabled: true
EnforcedStyleAlignWith: variable
Layout/SpaceAroundBlockParameters:
Enabled: true
Layout/SpaceBeforeBlockBraces:
Enabled: true
Layout/SpaceInsideBlockBraces:
Enabled: true
Layout/LineLength:
Enabled: true
Max: 120
Exclude:
- lib/riddler/protobuf/*_pb.rb
Metrics/ClassLength:
Enabled: true
Max: 200
Exclude:
- test/**/*.rb
Lint/SuppressedException:
Exclude:
- lib/tasks/**/*.rake
Lint/Debugger:
Exclude:
- test/**/*