-
Notifications
You must be signed in to change notification settings - Fork 614
/
Copy path.rubocop_todo.yml
246 lines (208 loc) · 7.26 KB
/
.rubocop_todo.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
# Offense count: 15
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/BooleanSymbol:
Exclude:
- 'lib/puppet/provider/postgresql_psql/ruby.rb'
- 'lib/puppet/type/postgresql_psql.rb'
- 'spec/unit/puppet/type/postgresql_psql_spec.rb'
# Offense count: 2
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
Exclude:
- 'spec/unit/puppet/provider/postgresql_replication_slot/ruby_spec.rb'
# Offense count: 6
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 49
# Offense count: 8
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 121
# Offense count: 3
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 9
# Offense count: 6
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 31
# Offense count: 1
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
Metrics/ParameterLists:
Max: 6
# Offense count: 4
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 11
# Offense count: 24
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Exclude:
- 'lib/puppet/type/postgresql_conn_validator.rb'
- 'lib/puppet/type/postgresql_replication_slot.rb'
- 'spec/acceptance/server/grant_spec.rb'
- 'spec/acceptance/server/recovery_spec.rb'
- 'spec/classes/server/config_spec.rb'
- 'spec/classes/server/initdb_spec.rb'
- 'spec/classes/server_spec.rb'
- 'spec/defines/server/default_privileges_spec.rb'
- 'spec/defines/server/grant_spec.rb'
# Offense count: 104
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false
# Offense count: 73
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
Enabled: false
# Offense count: 42
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 53
# Offense count: 3
RSpec/ExpectInHook:
Exclude:
- 'spec/unit/puppet/provider/postgresql_replication_slot/ruby_spec.rb'
- 'spec/unit/puppet/type/postgresql_psql_spec.rb'
# Offense count: 7
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
Exclude:
- 'spec/defines/server/instance/config.rb'
- 'spec/defines/server/instance/initdb.rb'
- 'spec/defines/server/instance/late_initdb.rb'
- 'spec/defines/server/instance/passwd.rb'
- 'spec/defines/server/instance/reload.rb'
- 'spec/defines/server/instance/service.rb'
- 'spec/unit/puppet/type/postgresql_conn_validator.rb'
RSpec/NamedSubject:
Enabled: false
# Offense count: 2
RSpec/LeakyConstantDeclaration:
Exclude:
- 'spec/unit/puppet/provider/postgresql_replication_slot/ruby_spec.rb'
# Offense count: 63
# This cop supports safe autocorrection (--autocorrect).
RSpec/LetBeforeExamples:
Enabled: false
# Offense count: 45
RSpec/MultipleExpectations:
Max: 6
# Offense count: 19
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 18
# Offense count: 1
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
Max: 4
# Offense count: 20
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: ^expect_, ^assert_
RSpec/NoExpectationExample:
Exclude:
- 'spec/acceptance/alternative_port_spec.rb'
- 'spec/acceptance/default_parameters_spec.rb'
- 'spec/acceptance/postgresql_conn_validator_spec.rb'
- 'spec/acceptance/postgresql_psql_spec.rb'
- 'spec/acceptance/server/grant_spec.rb'
- 'spec/acceptance/server/recovery_spec.rb'
- 'spec/acceptance/sql_task_spec.rb'
- 'spec/acceptance/z_alternative_pgdata_spec.rb'
- 'spec/unit/puppet/provider/postgresql_conn_validator/ruby_spec.rb'
# Offense count: 17
RSpec/RepeatedExampleGroupDescription:
Exclude:
- 'spec/acceptance/server/grant_spec.rb'
- 'spec/defines/server/extension_spec.rb'
- 'spec/unit/puppet/type/postgresql_psql_spec.rb'
# Offense count: 15
RSpec/StubbedMock:
Exclude:
- 'spec/unit/puppet/provider/postgresql_replication_slot/ruby_spec.rb'
- 'spec/unit/puppet/type/postgresql_psql_spec.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'lib/puppet/util/postgresql_validator.rb'
# Offense count: 2
Style/MixinUsage:
Exclude:
- 'spec/spec_helper.rb'
- 'spec/spec_helper_local.rb'
# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'spec/**/*'
- 'lib/puppet/type/postgresql_psql.rb'
# Offense count: 2
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'lib/puppet/functions/postgresql/postgresql_password.rb'
- 'lib/puppet/type/postgresql_psql.rb'
# Offense count: 16
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpCharacterClass:
Exclude:
- 'spec/defines/server/recovery_spec.rb'
# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpEscape:
Exclude:
- 'lib/puppet/provider/postgresql_conf/parsed.rb'
- 'lib/puppet/type/postgresql_conf.rb'
- 'spec/defines/server/pg_hba_rule_spec.rb'
- 'spec/spec_helper_acceptance_local.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantStringEscape:
Exclude:
- 'spec/acceptance/db_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Exclude:
- 'spec/spec_helper.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
Exclude:
- 'lib/puppet/functions/postgresql/postgresql_acls_to_resources_hash.rb'
- 'lib/puppet/functions/postgresql/postgresql_password.rb'
- 'lib/puppet/provider/postgresql_psql/ruby.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
# AllowedMethods: define_method
Style/SymbolProc:
Exclude:
- 'spec/spec_helper_acceptance_local.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses:
Exclude:
- 'spec/spec_helper_local.rb'
# Offense count: 137
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
Enabled: false