forked from rspec/rspec-expectations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
129 lines (100 loc) · 2.23 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
inherit_from:
- .rubocop_todo.yml
- .rubocop_rspec_base.yml
AllCops:
TargetRubyVersion: 2.4
DisplayCopNames: true
Exclude:
- bin/*
- tmp/**/*
# Over time we'd like to get this down, but this is what we're at now.
Layout/LineLength:
Max: 186
# Offense count: 1
Style/BlockComments:
Enabled: false
Style/ClassAndModuleChildren:
Exclude:
- spec/**/*
Style/EvalWithLocation:
Exclude:
- spec/rspec/matchers/built_in/respond_to_spec.rb
Style/MultilineBlockChain:
Exclude:
- spec/**/*
Style/RescueModifier:
Exclude:
- spec/**/*
- benchmarks/**/*
Style/Semicolon:
Enabled: false
Style/SingleLineMethods:
Exclude:
- spec/**/*
- benchmarks/**/*
# We have some situations where we need to use `raise ExceptionClass.new(argument)`.
Style/RaiseArgs:
Enabled: false
Style/FrozenStringLiteralComment:
EnforcedStyle: never
Exclude:
- REPORT_TEMPLATE.md
Style/PercentLiteralDelimiters:
PreferredDelimiters:
default: []
'%r': '||'
Style/WordArray:
Enabled: false
Security/Eval:
Exclude:
- Gemfile
Metrics/AbcSize:
Max: 27
# Offense count: 2
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/BlockLength:
Max: 96
Exclude:
- spec/**/*
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 239
Exclude:
- spec/**/*
# Offense count: 4
Metrics/PerceivedComplexity:
Max: 14
Layout/AccessModifierIndentation:
Exclude:
- 'lib/rspec/expectations/syntax.rb' # Too much diff to fix
# Offense count: 7
Layout/ParameterAlignment:
Enabled: false
Layout/SpaceInsideArrayLiteralBrackets:
Exclude:
- spec/rspec/matchers/built_in/contain_exactly_spec.rb
Layout/SpaceInsideParens:
Exclude:
- spec/rspec/matchers/built_in/*
Lint/AmbiguousBlockAssociation:
Exclude:
- spec/**/*
Lint/AmbiguousRegexpLiteral:
Exclude:
- 'features/step_definitions/*'
Lint/SuppressedException:
Exclude:
- benchmarks/**/*
# Offense count: 3
Lint/IneffectiveAccessModifier:
Exclude:
- 'lib/rspec/matchers.rb'
- 'lib/rspec/matchers/built_in/compound.rb'
Lint/InheritException:
Exclude:
- 'lib/rspec/expectations.rb'
Bundler/DuplicatedGem:
Enabled: false
Bundler/OrderedGems:
Enabled: false