armitage-rubocop 0.85.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,12 @@
1
+ Bundler/GemComment:
2
+ Enabled: false
3
+
4
+ Bundler/DuplicatedGem:
5
+ Enabled: true
6
+
7
+ Bundler/InsecureProtocolSource:
8
+ Enabled: true
9
+
10
+ Bundler/OrderedGems:
11
+ Enabled: false
12
+ TreatCommentsAsGroupSeparators: true
@@ -0,0 +1,12 @@
1
+ Gemspec/DuplicatedAssignment:
2
+ Enabled: true
3
+
4
+ Gemspec/OrderedDependencies:
5
+ Enabled: false
6
+ TreatCommentsAsGroupSeparators: true
7
+
8
+ Gemspec/RequiredRubyVersion:
9
+ Enabled: false
10
+
11
+ Gemspec/RubyVersionGlobalsUsage:
12
+ Enabled: true
@@ -0,0 +1,376 @@
1
+ Layout/AccessModifierIndentation:
2
+ Enabled: true
3
+ EnforcedStyle: indent
4
+ IndentationWidth: ~
5
+
6
+ Layout/ArgumentAlignment:
7
+ Enabled: true
8
+ IndentationWidth: ~
9
+
10
+ Layout/ArrayAlignment:
11
+ Enabled: true
12
+ EnforcedStyle: with_first_element
13
+ IndentationWidth: ~
14
+
15
+ # NOTE: sometimes - good, sometimes - bad. readability depends on case by case.
16
+ Layout/HashAlignment:
17
+ Enabled: false
18
+ EnforcedHashRocketStyle: table
19
+ EnforcedColonStyle: table
20
+ EnforcedLastArgumentHashStyle: always_inspect
21
+
22
+ Layout/ParameterAlignment:
23
+ Enabled: true
24
+ EnforcedStyle: with_first_parameter
25
+ IndentationWidth: ~
26
+
27
+ Layout/BlockAlignment:
28
+ Enabled: true
29
+ EnforcedStyleAlignWith: either
30
+
31
+ Layout/BlockEndNewline:
32
+ Enabled: true
33
+
34
+ Layout/CaseIndentation:
35
+ Enabled: true
36
+ EnforcedStyle: case
37
+ IndentationWidth: ~
38
+ IndentOneStep: false
39
+
40
+ Layout/ClassStructure:
41
+ Enabled: true
42
+ Categories:
43
+ module_inclusion:
44
+ - include
45
+ - prepend
46
+ - extend
47
+ ExpectedOrder:
48
+ - module_inclusion
49
+ - constants
50
+ - public_class_methods
51
+ - initializer
52
+ - public_methods
53
+ - protected_methods
54
+ - private_methods
55
+
56
+ Layout/ClosingHeredocIndentation:
57
+ Enabled: true
58
+
59
+ Layout/ClosingParenthesisIndentation:
60
+ Enabled: true
61
+
62
+ Layout/CommentIndentation:
63
+ Enabled: true
64
+
65
+ Layout/ConditionPosition:
66
+ Enabled: true
67
+ AutoCorrect: true
68
+
69
+ Layout/DefEndAlignment:
70
+ Enabled: true
71
+ EnforcedStyleAlignWith: start_of_line
72
+ AutoCorrect: false
73
+ Severity: warning
74
+
75
+ Layout/DotPosition:
76
+ Enabled: true
77
+ EnforcedStyle: leading
78
+
79
+ Layout/ElseAlignment:
80
+ Enabled: true
81
+
82
+ Layout/EmptyComment:
83
+ Enabled: true
84
+ AllowBorderComment: true
85
+ AllowMarginComment: true
86
+
87
+ Layout/EmptyLineAfterGuardClause:
88
+ Enabled: false
89
+
90
+ Layout/EmptyLineAfterMagicComment:
91
+ Enabled: true
92
+
93
+ Layout/EmptyLinesAroundAttributeAccessor:
94
+ Enabled: true
95
+ AllowAliasSyntax: true
96
+ AllowedMethods:
97
+ - alias_method
98
+ - public
99
+ - protected
100
+ - private
101
+
102
+ Layout/EmptyLineBetweenDefs:
103
+ Enabled: true
104
+ NumberOfEmptyLines: 1
105
+ AllowAdjacentOneLineDefs: false
106
+
107
+ Layout/EmptyLines:
108
+ Enabled: true
109
+
110
+ Layout/EmptyLinesAroundAccessModifier:
111
+ Enabled: true
112
+ EnforcedStyle: around
113
+
114
+ Layout/EmptyLinesAroundArguments:
115
+ Enabled: true
116
+
117
+ Layout/EmptyLinesAroundBeginBody:
118
+ Enabled: true
119
+
120
+ Layout/EmptyLinesAroundBlockBody:
121
+ Enabled: true
122
+ EnforcedStyle: no_empty_lines
123
+
124
+ Layout/EmptyLinesAroundClassBody:
125
+ Enabled: true
126
+ EnforcedStyle: no_empty_lines
127
+
128
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
129
+ Enabled: true
130
+
131
+ Layout/EmptyLinesAroundMethodBody:
132
+ Enabled: true
133
+
134
+ Layout/EmptyLinesAroundModuleBody:
135
+ Enabled: true
136
+ EnforcedStyle: no_empty_lines
137
+
138
+ Layout/EndAlignment:
139
+ Enabled: true
140
+ EnforcedStyleAlignWith: keyword
141
+ AutoCorrect: false
142
+ Severity: warning
143
+
144
+ Layout/EndOfLine:
145
+ Enabled: true
146
+ EnforcedStyle: native
147
+
148
+ Layout/ExtraSpacing:
149
+ Enabled: true
150
+ AllowForAlignment: true
151
+ ForceEqualSignAlignment: false
152
+ AllowBeforeTrailingComments: false
153
+
154
+ Layout/FirstArrayElementLineBreak:
155
+ Enabled: false
156
+
157
+ Layout/FirstHashElementLineBreak:
158
+ Enabled: false
159
+
160
+ Layout/FirstMethodArgumentLineBreak:
161
+ Enabled: false
162
+
163
+ Layout/FirstMethodParameterLineBreak:
164
+ Enabled: false
165
+
166
+ Layout/FirstArgumentIndentation:
167
+ Enabled: true
168
+ EnforcedStyle: consistent
169
+ IndentationWidth: ~
170
+
171
+ Layout/FirstParameterIndentation:
172
+ Enabled: true
173
+ EnforcedStyle: consistent
174
+ IndentationWidth: ~
175
+
176
+ Layout/HeredocArgumentClosingParenthesis:
177
+ Enabled: true
178
+
179
+ Layout/FirstArrayElementIndentation:
180
+ Enabled: true
181
+ EnforcedStyle: consistent
182
+ IndentationWidth: ~
183
+
184
+ Layout/AssignmentIndentation:
185
+ Enabled: true
186
+ IndentationWidth: ~
187
+
188
+ Layout/FirstHashElementIndentation:
189
+ Enabled: true
190
+ EnforcedStyle: consistent
191
+ IndentationWidth: ~
192
+
193
+ Layout/HeredocIndentation:
194
+ Enabled: true
195
+
196
+ Layout/IndentationConsistency:
197
+ Enabled: true
198
+ EnforcedStyle: normal
199
+
200
+ Layout/IndentationWidth:
201
+ Enabled: true
202
+ Width: 2
203
+ IgnoredPatterns: []
204
+
205
+ Layout/InitialIndentation:
206
+ Enabled: true
207
+
208
+ Layout/LeadingEmptyLines:
209
+ Enabled: true
210
+
211
+ Layout/LeadingCommentSpace:
212
+ Enabled: true
213
+ AllowDoxygenCommentStyle: false
214
+ AllowGemfileRubyComment: true
215
+
216
+ Layout/LineLength:
217
+ Enabled: true
218
+ AutoCorrect: true
219
+ Max: 100
220
+ AllowHeredoc: true
221
+ AllowURI: true
222
+ URISchemes:
223
+ - http
224
+ - https
225
+ IgnoreCopDirectives: false
226
+ IgnoredPatterns: []
227
+ Exclude:
228
+ - Gemfile
229
+
230
+ Layout/MultilineArrayBraceLayout:
231
+ Enabled: true
232
+ EnforcedStyle: symmetrical
233
+
234
+ Layout/MultilineAssignmentLayout:
235
+ Enabled: false
236
+
237
+ Layout/MultilineBlockLayout:
238
+ Enabled: true
239
+
240
+ Layout/MultilineHashBraceLayout:
241
+ Enabled: true
242
+ EnforcedStyle: symmetrical
243
+
244
+ Layout/MultilineMethodCallBraceLayout:
245
+ Enabled: true
246
+ EnforcedStyle: symmetrical
247
+
248
+ Layout/MultilineMethodCallIndentation:
249
+ Enabled: false
250
+ EnforcedStyle: aligned
251
+ IndentationWidth: ~
252
+
253
+ Layout/MultilineMethodDefinitionBraceLayout:
254
+ Enabled: true
255
+ EnforcedStyle: symmetrical
256
+
257
+ Layout/MultilineOperationIndentation:
258
+ Enabled: true
259
+ EnforcedStyle: aligned
260
+ IndentationWidth: ~
261
+
262
+ Layout/MultilineHashKeyLineBreaks:
263
+ Enabled: false
264
+
265
+ Layout/MultilineMethodArgumentLineBreaks:
266
+ Enabled: false
267
+
268
+ Layout/MultilineArrayLineBreaks:
269
+ Enabled: false
270
+
271
+ Layout/RescueEnsureAlignment:
272
+ Enabled: true
273
+
274
+ Layout/SpaceAfterColon:
275
+ Enabled: true
276
+
277
+ Layout/SpaceAfterComma:
278
+ Enabled: true
279
+
280
+ Layout/SpaceAfterMethodName:
281
+ Enabled: true
282
+
283
+ Layout/SpaceAfterNot:
284
+ Enabled: true
285
+
286
+ Layout/SpaceAfterSemicolon:
287
+ Enabled: true
288
+
289
+ Layout/SpaceAroundBlockParameters:
290
+ Enabled: true
291
+ EnforcedStyleInsidePipes: no_space
292
+
293
+ Layout/SpaceAroundEqualsInParameterDefault:
294
+ Enabled: true
295
+ EnforcedStyle: space
296
+
297
+ Layout/SpaceAroundKeyword:
298
+ Enabled: true
299
+
300
+ Layout/SpaceAroundOperators:
301
+ Enabled: true
302
+ AllowForAlignment: true
303
+ EnforcedStyleForExponentOperator: no_space
304
+
305
+ Layout/SpaceBeforeBlockBraces:
306
+ Enabled: true
307
+ EnforcedStyle: space
308
+ EnforcedStyleForEmptyBraces: space
309
+
310
+ Layout/SpaceBeforeComma:
311
+ Enabled: true
312
+
313
+ Layout/SpaceBeforeComment:
314
+ Enabled: true
315
+
316
+ Layout/SpaceBeforeFirstArg:
317
+ Enabled: true
318
+ AllowForAlignment: true
319
+
320
+ Layout/SpaceBeforeSemicolon:
321
+ Enabled: true
322
+
323
+ Layout/SpaceInLambdaLiteral:
324
+ Enabled: true
325
+ EnforcedStyle: require_space
326
+
327
+ Layout/SpaceInsideArrayLiteralBrackets:
328
+ Enabled: true
329
+ EnforcedStyle: no_space
330
+ EnforcedStyleForEmptyBrackets: no_space
331
+
332
+ Layout/SpaceInsideArrayPercentLiteral:
333
+ Enabled: true
334
+
335
+ Layout/SpaceInsideBlockBraces:
336
+ Enabled: true
337
+ EnforcedStyle: space
338
+ EnforcedStyleForEmptyBraces: no_space
339
+ SpaceBeforeBlockParameters: true
340
+
341
+ Layout/SpaceInsideHashLiteralBraces:
342
+ Enabled: true
343
+ EnforcedStyle: space
344
+ EnforcedStyleForEmptyBraces: no_space
345
+
346
+ Layout/SpaceInsideParens:
347
+ Enabled: true
348
+ EnforcedStyle: no_space
349
+
350
+ Layout/SpaceInsidePercentLiteralDelimiters:
351
+ Enabled: true
352
+
353
+ Layout/SpaceInsideRangeLiteral:
354
+ Enabled: true
355
+
356
+ Layout/SpaceInsideReferenceBrackets:
357
+ Enabled: true
358
+ EnforcedStyle: no_space
359
+ EnforcedStyleForEmptyBrackets: no_space
360
+
361
+ Layout/SpaceInsideStringInterpolation:
362
+ Enabled: true
363
+ EnforcedStyle: no_space
364
+
365
+ Layout/IndentationStyle:
366
+ Enabled: true
367
+ EnforcedStyle: spaces
368
+ IndentationWidth: 2
369
+
370
+ Layout/TrailingEmptyLines:
371
+ Enabled: true
372
+ EnforcedStyle: final_newline
373
+
374
+ Layout/TrailingWhitespace:
375
+ Enabled: true
376
+ AllowInHeredoc: false
@@ -0,0 +1,275 @@
1
+ Lint/AmbiguousBlockAssociation:
2
+ Enabled: false
3
+
4
+ Lint/AmbiguousOperator:
5
+ Enabled: false
6
+
7
+ Lint/AmbiguousRegexpLiteral:
8
+ Enabled: false
9
+
10
+ Lint/AssignmentInCondition:
11
+ Enabled: false
12
+ AllowSafeAssignment: true
13
+
14
+ Lint/BigDecimalNew:
15
+ Enabled: true
16
+
17
+ Lint/BooleanSymbol:
18
+ Enabled: false
19
+
20
+ Lint/CircularArgumentReference:
21
+ Enabled: true
22
+
23
+ Lint/Debugger:
24
+ Enabled: true
25
+
26
+ Lint/DeprecatedClassMethods:
27
+ Enabled: true
28
+
29
+ Lint/DeprecatedOpenSSLConstant:
30
+ Enabled: true
31
+
32
+ Lint/DuplicateCaseCondition:
33
+ Enabled: true
34
+
35
+ Lint/DuplicateMethods:
36
+ Enabled: true
37
+
38
+ Lint/DuplicateHashKey:
39
+ Enabled: true
40
+
41
+ Lint/EachWithObjectArgument:
42
+ Enabled: true
43
+
44
+ Lint/ElseLayout:
45
+ Enabled: true
46
+
47
+ Lint/EmptyEnsure:
48
+ Enabled: true
49
+ AutoCorrect: true
50
+
51
+ Lint/EmptyExpression:
52
+ Enabled: true
53
+
54
+ Lint/EmptyInterpolation:
55
+ Enabled: true
56
+
57
+ Lint/EmptyWhen:
58
+ Enabled: false
59
+ AllowComments: true
60
+
61
+ Lint/EnsureReturn:
62
+ Enabled: true
63
+ AutoCorrect: false
64
+
65
+ Lint/ErbNewArguments:
66
+ Enabled: true
67
+ AutoCorrect: true
68
+
69
+ Lint/FlipFlop:
70
+ Enabled: true
71
+
72
+ Lint/FloatOutOfRange:
73
+ Enabled: true
74
+
75
+ Lint/FormatParameterMismatch:
76
+ Enabled: true
77
+
78
+ Layout/SpaceAroundMethodCallOperator:
79
+ Enabled: true
80
+
81
+ Lint/StructNewOverride:
82
+ Enabled: true
83
+
84
+ Lint/SuppressedException:
85
+ Enabled: false
86
+
87
+ Lint/HeredocMethodCallPosition:
88
+ Enabled: true
89
+
90
+ Lint/ImplicitStringConcatenation:
91
+ Enabled: true
92
+
93
+ Lint/IneffectiveAccessModifier:
94
+ Enabled: true
95
+
96
+ Lint/InheritException:
97
+ Enabled: true
98
+ EnforcedStyle: standard_error
99
+
100
+ Lint/InterpolationCheck:
101
+ Enabled: true
102
+
103
+ Lint/LiteralAsCondition:
104
+ Enabled: true
105
+
106
+ Lint/LiteralInInterpolation:
107
+ Enabled: true
108
+
109
+ Lint/Loop:
110
+ Enabled: true
111
+
112
+ Lint/MissingCopEnableDirective:
113
+ Enabled: true
114
+
115
+ Lint/MixedRegexpCaptureTypes:
116
+ Enabled: true
117
+ # NOTE: if you use named captures - numbered captures will be ignored. it is bad. validate it.
118
+
119
+ Lint/MultipleComparison:
120
+ Enabled: true
121
+
122
+ Lint/NestedMethodDefinition:
123
+ Enabled: true
124
+
125
+ Lint/NestedPercentLiteral:
126
+ Enabled: true
127
+
128
+ Lint/NextWithoutAccumulator:
129
+ Enabled: true
130
+
131
+ Lint/NonDeterministicRequireOrder:
132
+ Enabled: false
133
+
134
+ Lint/NonLocalExitFromIterator:
135
+ Enabled: false
136
+
137
+ Lint/NumberConversion:
138
+ Enabled: false
139
+
140
+ Lint/OrderedMagicComments:
141
+ Enabled: true
142
+
143
+ Lint/ParenthesesAsGroupedExpression:
144
+ Enabled: true
145
+ AutoCorrect: true
146
+
147
+ Lint/PercentStringArray:
148
+ Enabled: true
149
+
150
+ Lint/PercentSymbolArray:
151
+ Enabled: true
152
+
153
+ Lint/RaiseException:
154
+ Enabled: true
155
+
156
+ Lint/RandOne:
157
+ Enabled: true
158
+
159
+ Lint/RedundantWithIndex:
160
+ Enabled: true
161
+
162
+ Lint/RedundantWithObject:
163
+ Enabled: true
164
+
165
+ Lint/RegexpAsCondition:
166
+ Enabled: true
167
+
168
+ Lint/RequireParentheses:
169
+ Enabled: true
170
+
171
+ Lint/RescueException:
172
+ Enabled: true
173
+
174
+ Lint/RescueType:
175
+ Enabled: true
176
+
177
+ Lint/ReturnInVoidContext:
178
+ Enabled: true
179
+
180
+ Lint/SafeNavigationChain:
181
+ Enabled: true
182
+
183
+ Lint/SafeNavigationConsistency:
184
+ Enabled: true
185
+
186
+ Lint/SafeNavigationWithEmpty:
187
+ Enabled: true
188
+
189
+ Lint/ScriptPermission:
190
+ Enabled: true
191
+
192
+ Lint/SendWithMixinArgument:
193
+ Enabled: true
194
+
195
+ Lint/ShadowedArgument:
196
+ Enabled: true
197
+ IgnoreImplicitReferences: false
198
+
199
+ Lint/ShadowedException:
200
+ Enabled: true
201
+
202
+ Lint/ShadowingOuterLocalVariable:
203
+ Enabled: true
204
+
205
+ Lint/RedundantStringCoercion:
206
+ Enabled: true
207
+
208
+ Lint/Syntax:
209
+ Enabled: true
210
+
211
+ Lint/ToJSON:
212
+ Enabled: true
213
+
214
+ Lint/UnderscorePrefixedVariableName:
215
+ Enabled: false
216
+
217
+ Lint/UnifiedInteger:
218
+ Enabled: true
219
+
220
+ Lint/RedundantCopDisableDirective:
221
+ Enabled: true
222
+
223
+ Lint/RedundantCopEnableDirective:
224
+ Enabled: true
225
+
226
+ Lint/RedundantRequireStatement:
227
+ Enabled: true
228
+
229
+ Lint/RedundantSplatExpansion:
230
+ Enabled: true
231
+
232
+ Lint/UnreachableCode:
233
+ Enabled: true
234
+
235
+ Lint/UnusedBlockArgument:
236
+ Enabled: false
237
+ IgnoreEmptyBlocks: true
238
+ AllowUnusedKeywordArguments: false
239
+
240
+ Lint/UnusedMethodArgument:
241
+ Enabled: false
242
+ AllowUnusedKeywordArguments: false
243
+ IgnoreEmptyMethods: true
244
+ IgnoreNotImplementedMethods: true
245
+
246
+ Lint/UriEscapeUnescape:
247
+ Enabled: false
248
+
249
+ Lint/UriRegexp:
250
+ Enabled: true
251
+
252
+ Lint/UselessAccessModifier:
253
+ Enabled: true
254
+ ContextCreatingMethods: []
255
+ MethodCreatingMethods:
256
+ - delegate
257
+ - def_delegator
258
+ - def_delegators
259
+ AutoCorrect: true
260
+
261
+ Lint/UselessAssignment:
262
+ Enabled: true
263
+
264
+ Lint/UselessComparison:
265
+ Enabled: true
266
+
267
+ Lint/UselessElseWithoutRescue:
268
+ Enabled: true
269
+
270
+ Lint/UselessSetterCall:
271
+ Enabled: true
272
+
273
+ Lint/Void:
274
+ Enabled: true
275
+ CheckForMethodsWithNoSideEffects: false