-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
107 lines (76 loc) · 1.73 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
104
105
106
107
require: rubocop-rspec
AllCops:
TargetRubyVersion: 2.1
# would like to re-enable
# https://github.com/nevir/rubocop-rspec/issues/62
RSpec/FilePath:
Enabled: false
Metrics/MethodLength:
Max: 48
Metrics/AbcSize:
Max: 51
Metrics/PerceivedComplexity:
Max: 10
Style/RegexpLiteral:
Enabled: false
Metrics/CyclomaticComplexity:
Max: 10
Metrics/ParameterLists:
Max: 10
Naming/AccessorMethodName:
Enabled: false
# default disabled rules
Style/AutoResourceCleanup:
Enabled: true
Style/CollectionMethods:
Enabled: true
PreferredMethods:
collect: 'map'
collect!: 'map!'
inject: 'reduce'
find: 'detect'
find_all: 'select'
Layout/FirstArrayElementLineBreak:
Enabled: true
Layout/FirstHashElementLineBreak:
Enabled: true
Layout/FirstMethodArgumentLineBreak:
Enabled: true
Layout/FirstMethodParameterLineBreak:
Enabled: true
Layout/MultilineArrayBraceLayout:
Enabled: true
Layout/MultilineHashBraceLayout:
Enabled: true
Layout/MultilineMethodCallBraceLayout:
Enabled: true
Layout/MultilineMethodDefinitionBraceLayout:
Enabled: true
Metrics/BlockLength:
Exclude:
- scrum_lint.gemspec
- spec/**/*_spec.rb
Style/OptionHash:
Enabled: true
Style/Send:
Enabled: true
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/VerifiedDoubles:
Enabled: true
# non-conventional rules
Style/LambdaCall:
EnforcedStyle: braces
Layout/EmptyLinesAroundClassBody:
EnforcedStyle: empty_lines
Layout/AccessModifierIndentation:
EnforcedStyle: outdent
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
RSpec/DescribeMethod:
Exclude:
- spec/scrum_lint/version_spec.rb