armitage-rubocop 0.83.0

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,372 @@
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
+ # NOTE: coming soon
94
+ # Layout/EmptyLineAroundAttributeAccessor:
95
+ # Enabled: true
96
+
97
+ Layout/EmptyLineBetweenDefs:
98
+ Enabled: true
99
+ NumberOfEmptyLines: 1
100
+ AllowAdjacentOneLineDefs: false
101
+
102
+ Layout/EmptyLines:
103
+ Enabled: true
104
+
105
+ Layout/EmptyLinesAroundAccessModifier:
106
+ Enabled: true
107
+ EnforcedStyle: around
108
+
109
+ Layout/EmptyLinesAroundArguments:
110
+ Enabled: true
111
+
112
+ Layout/EmptyLinesAroundBeginBody:
113
+ Enabled: true
114
+
115
+ Layout/EmptyLinesAroundBlockBody:
116
+ Enabled: true
117
+ EnforcedStyle: no_empty_lines
118
+
119
+ Layout/EmptyLinesAroundClassBody:
120
+ Enabled: true
121
+ EnforcedStyle: no_empty_lines
122
+
123
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
124
+ Enabled: true
125
+
126
+ Layout/EmptyLinesAroundMethodBody:
127
+ Enabled: true
128
+
129
+ Layout/EmptyLinesAroundModuleBody:
130
+ Enabled: true
131
+ EnforcedStyle: no_empty_lines
132
+
133
+ Layout/EndAlignment:
134
+ Enabled: true
135
+ EnforcedStyleAlignWith: keyword
136
+ AutoCorrect: false
137
+ Severity: warning
138
+
139
+ Layout/EndOfLine:
140
+ Enabled: true
141
+ EnforcedStyle: native
142
+
143
+ Layout/ExtraSpacing:
144
+ Enabled: true
145
+ AllowForAlignment: true
146
+ ForceEqualSignAlignment: false
147
+ AllowBeforeTrailingComments: false
148
+
149
+ Layout/FirstArrayElementLineBreak:
150
+ Enabled: false
151
+
152
+ Layout/FirstHashElementLineBreak:
153
+ Enabled: false
154
+
155
+ Layout/FirstMethodArgumentLineBreak:
156
+ Enabled: false
157
+
158
+ Layout/FirstMethodParameterLineBreak:
159
+ Enabled: false
160
+
161
+ Layout/FirstArgumentIndentation:
162
+ Enabled: true
163
+ EnforcedStyle: consistent
164
+ IndentationWidth: ~
165
+
166
+ Layout/FirstParameterIndentation:
167
+ Enabled: true
168
+ EnforcedStyle: consistent
169
+ IndentationWidth: ~
170
+
171
+ Layout/HeredocArgumentClosingParenthesis:
172
+ Enabled: true
173
+
174
+ Layout/FirstArrayElementIndentation:
175
+ Enabled: true
176
+ EnforcedStyle: consistent
177
+ IndentationWidth: ~
178
+
179
+ Layout/AssignmentIndentation:
180
+ Enabled: true
181
+ IndentationWidth: ~
182
+
183
+ Layout/FirstHashElementIndentation:
184
+ Enabled: true
185
+ EnforcedStyle: consistent
186
+ IndentationWidth: ~
187
+
188
+ Layout/HeredocIndentation:
189
+ Enabled: true
190
+ EnforcedStyle: squiggly
191
+
192
+ Layout/IndentationConsistency:
193
+ Enabled: true
194
+ EnforcedStyle: normal
195
+
196
+ Layout/IndentationWidth:
197
+ Enabled: true
198
+ Width: 2
199
+ IgnoredPatterns: []
200
+
201
+ Layout/InitialIndentation:
202
+ Enabled: true
203
+
204
+ Layout/LeadingEmptyLines:
205
+ Enabled: true
206
+
207
+ Layout/LeadingCommentSpace:
208
+ Enabled: true
209
+ AllowDoxygenCommentStyle: false
210
+ AllowGemfileRubyComment: true
211
+
212
+ Layout/LineLength:
213
+ Enabled: true
214
+ AutoCorrect: true
215
+ Max: 100
216
+ AllowHeredoc: true
217
+ AllowURI: true
218
+ URISchemes:
219
+ - http
220
+ - https
221
+ IgnoreCopDirectives: false
222
+ IgnoredPatterns: []
223
+ Exclude:
224
+ - Gemfile
225
+
226
+ Layout/MultilineArrayBraceLayout:
227
+ Enabled: true
228
+ EnforcedStyle: symmetrical
229
+
230
+ Layout/MultilineAssignmentLayout:
231
+ Enabled: false
232
+
233
+ Layout/MultilineBlockLayout:
234
+ Enabled: true
235
+
236
+ Layout/MultilineHashBraceLayout:
237
+ Enabled: true
238
+ EnforcedStyle: symmetrical
239
+
240
+ Layout/MultilineMethodCallBraceLayout:
241
+ Enabled: true
242
+ EnforcedStyle: symmetrical
243
+
244
+ Layout/MultilineMethodCallIndentation:
245
+ Enabled: false
246
+ EnforcedStyle: aligned
247
+ IndentationWidth: ~
248
+
249
+ Layout/MultilineMethodDefinitionBraceLayout:
250
+ Enabled: true
251
+ EnforcedStyle: symmetrical
252
+
253
+ Layout/MultilineOperationIndentation:
254
+ Enabled: true
255
+ EnforcedStyle: aligned
256
+ IndentationWidth: ~
257
+
258
+ Layout/MultilineHashKeyLineBreaks:
259
+ Enabled: false
260
+
261
+ Layout/MultilineMethodArgumentLineBreaks:
262
+ Enabled: false
263
+
264
+ Layout/MultilineArrayLineBreaks:
265
+ Enabled: false
266
+
267
+ Layout/RescueEnsureAlignment:
268
+ Enabled: true
269
+
270
+ Layout/SpaceAfterColon:
271
+ Enabled: true
272
+
273
+ Layout/SpaceAfterComma:
274
+ Enabled: true
275
+
276
+ Layout/SpaceAfterMethodName:
277
+ Enabled: true
278
+
279
+ Layout/SpaceAfterNot:
280
+ Enabled: true
281
+
282
+ Layout/SpaceAfterSemicolon:
283
+ Enabled: true
284
+
285
+ Layout/SpaceAroundBlockParameters:
286
+ Enabled: true
287
+ EnforcedStyleInsidePipes: no_space
288
+
289
+ Layout/SpaceAroundEqualsInParameterDefault:
290
+ Enabled: true
291
+ EnforcedStyle: space
292
+
293
+ Layout/SpaceAroundKeyword:
294
+ Enabled: true
295
+
296
+ Layout/SpaceAroundOperators:
297
+ Enabled: true
298
+ AllowForAlignment: true
299
+ EnforcedStyleForExponentOperator: no_space
300
+
301
+ Layout/SpaceBeforeBlockBraces:
302
+ Enabled: true
303
+ EnforcedStyle: space
304
+ EnforcedStyleForEmptyBraces: space
305
+
306
+ Layout/SpaceBeforeComma:
307
+ Enabled: true
308
+
309
+ Layout/SpaceBeforeComment:
310
+ Enabled: true
311
+
312
+ Layout/SpaceBeforeFirstArg:
313
+ Enabled: true
314
+ AllowForAlignment: true
315
+
316
+ Layout/SpaceBeforeSemicolon:
317
+ Enabled: true
318
+
319
+ Layout/SpaceInLambdaLiteral:
320
+ Enabled: true
321
+ EnforcedStyle: require_space
322
+
323
+ Layout/SpaceInsideArrayLiteralBrackets:
324
+ Enabled: true
325
+ EnforcedStyle: no_space
326
+ EnforcedStyleForEmptyBrackets: no_space
327
+
328
+ Layout/SpaceInsideArrayPercentLiteral:
329
+ Enabled: true
330
+
331
+ Layout/SpaceInsideBlockBraces:
332
+ Enabled: true
333
+ EnforcedStyle: space
334
+ EnforcedStyleForEmptyBraces: no_space
335
+ SpaceBeforeBlockParameters: true
336
+
337
+ Layout/SpaceInsideHashLiteralBraces:
338
+ Enabled: true
339
+ EnforcedStyle: space
340
+ EnforcedStyleForEmptyBraces: no_space
341
+
342
+ Layout/SpaceInsideParens:
343
+ Enabled: true
344
+ EnforcedStyle: no_space
345
+
346
+ Layout/SpaceInsidePercentLiteralDelimiters:
347
+ Enabled: true
348
+
349
+ Layout/SpaceInsideRangeLiteral:
350
+ Enabled: true
351
+
352
+ Layout/SpaceInsideReferenceBrackets:
353
+ Enabled: true
354
+ EnforcedStyle: no_space
355
+ EnforcedStyleForEmptyBrackets: no_space
356
+
357
+ Layout/SpaceInsideStringInterpolation:
358
+ Enabled: true
359
+ EnforcedStyle: no_space
360
+
361
+ Layout/IndentationStyle:
362
+ Enabled: true
363
+ EnforcedStyle: spaces
364
+ IndentationWidth: 2
365
+
366
+ Layout/TrailingEmptyLines:
367
+ Enabled: true
368
+ EnforcedStyle: final_newline
369
+
370
+ Layout/TrailingWhitespace:
371
+ Enabled: true
372
+ AllowInHeredoc: false
@@ -0,0 +1,268 @@
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/DuplicateCaseCondition:
30
+ Enabled: true
31
+
32
+ Lint/DuplicateMethods:
33
+ Enabled: true
34
+
35
+ Lint/DuplicateHashKey:
36
+ Enabled: true
37
+
38
+ Lint/EachWithObjectArgument:
39
+ Enabled: true
40
+
41
+ Lint/ElseLayout:
42
+ Enabled: true
43
+
44
+ Lint/EmptyEnsure:
45
+ Enabled: true
46
+ AutoCorrect: true
47
+
48
+ Lint/EmptyExpression:
49
+ Enabled: true
50
+
51
+ Lint/EmptyInterpolation:
52
+ Enabled: true
53
+
54
+ Lint/EmptyWhen:
55
+ Enabled: false
56
+ AllowComments: true
57
+
58
+ Lint/EnsureReturn:
59
+ Enabled: true
60
+ AutoCorrect: false
61
+
62
+ Lint/ErbNewArguments:
63
+ Enabled: true
64
+ AutoCorrect: true
65
+
66
+ Lint/FlipFlop:
67
+ Enabled: true
68
+
69
+ Lint/FloatOutOfRange:
70
+ Enabled: true
71
+
72
+ Lint/FormatParameterMismatch:
73
+ Enabled: true
74
+
75
+ Layout/SpaceAroundMethodCallOperator:
76
+ Enabled: true
77
+
78
+ Lint/StructNewOverride:
79
+ Enabled: true
80
+
81
+ Lint/SuppressedException:
82
+ Enabled: false
83
+
84
+ Lint/HeredocMethodCallPosition:
85
+ Enabled: true
86
+
87
+ Lint/ImplicitStringConcatenation:
88
+ Enabled: true
89
+
90
+ Lint/IneffectiveAccessModifier:
91
+ Enabled: true
92
+
93
+ Lint/InheritException:
94
+ Enabled: true
95
+ EnforcedStyle: standard_error
96
+
97
+ Lint/InterpolationCheck:
98
+ Enabled: true
99
+
100
+ Lint/LiteralAsCondition:
101
+ Enabled: true
102
+
103
+ Lint/LiteralInInterpolation:
104
+ Enabled: true
105
+
106
+ Lint/Loop:
107
+ Enabled: true
108
+
109
+ Lint/MissingCopEnableDirective:
110
+ Enabled: true
111
+
112
+ Lint/MultipleComparison:
113
+ Enabled: true
114
+
115
+ Lint/NestedMethodDefinition:
116
+ Enabled: true
117
+
118
+ Lint/NestedPercentLiteral:
119
+ Enabled: true
120
+
121
+ Lint/NextWithoutAccumulator:
122
+ Enabled: true
123
+
124
+ Lint/NonDeterministicRequireOrder:
125
+ Enabled: false
126
+
127
+ Lint/NonLocalExitFromIterator:
128
+ Enabled: false
129
+
130
+ Lint/NumberConversion:
131
+ Enabled: false
132
+
133
+ Lint/OrderedMagicComments:
134
+ Enabled: true
135
+
136
+ Lint/ParenthesesAsGroupedExpression:
137
+ Enabled: true
138
+ AutoCorrect: true
139
+
140
+ Lint/PercentStringArray:
141
+ Enabled: true
142
+
143
+ Lint/PercentSymbolArray:
144
+ Enabled: true
145
+
146
+ Lint/RaiseException:
147
+ Enabled: true
148
+
149
+ Lint/RandOne:
150
+ Enabled: true
151
+
152
+ Lint/RedundantWithIndex:
153
+ Enabled: true
154
+
155
+ Lint/RedundantWithObject:
156
+ Enabled: true
157
+
158
+ Lint/RegexpAsCondition:
159
+ Enabled: true
160
+
161
+ Lint/RequireParentheses:
162
+ Enabled: true
163
+
164
+ Lint/RescueException:
165
+ Enabled: true
166
+
167
+ Lint/RescueType:
168
+ Enabled: true
169
+
170
+ Lint/ReturnInVoidContext:
171
+ Enabled: true
172
+
173
+ Lint/SafeNavigationChain:
174
+ Enabled: true
175
+
176
+ Lint/SafeNavigationConsistency:
177
+ Enabled: true
178
+
179
+ Lint/SafeNavigationWithEmpty:
180
+ Enabled: true
181
+
182
+ Lint/ScriptPermission:
183
+ Enabled: true
184
+
185
+ Lint/SendWithMixinArgument:
186
+ Enabled: true
187
+
188
+ Lint/ShadowedArgument:
189
+ Enabled: true
190
+ IgnoreImplicitReferences: false
191
+
192
+ Lint/ShadowedException:
193
+ Enabled: true
194
+
195
+ Lint/ShadowingOuterLocalVariable:
196
+ Enabled: true
197
+
198
+ Lint/RedundantStringCoercion:
199
+ Enabled: true
200
+
201
+ Lint/Syntax:
202
+ Enabled: true
203
+
204
+ Lint/ToJSON:
205
+ Enabled: true
206
+
207
+ Lint/UnderscorePrefixedVariableName:
208
+ Enabled: false
209
+
210
+ Lint/UnifiedInteger:
211
+ Enabled: true
212
+
213
+ Lint/RedundantCopDisableDirective:
214
+ Enabled: true
215
+
216
+ Lint/RedundantCopEnableDirective:
217
+ Enabled: true
218
+
219
+ Lint/RedundantRequireStatement:
220
+ Enabled: true
221
+
222
+ Lint/RedundantSplatExpansion:
223
+ Enabled: true
224
+
225
+ Lint/UnreachableCode:
226
+ Enabled: true
227
+
228
+ Lint/UnusedBlockArgument:
229
+ Enabled: false
230
+ IgnoreEmptyBlocks: true
231
+ AllowUnusedKeywordArguments: false
232
+
233
+ Lint/UnusedMethodArgument:
234
+ Enabled: false
235
+ AllowUnusedKeywordArguments: false
236
+ IgnoreEmptyMethods: true
237
+ IgnoreNotImplementedMethods: true
238
+
239
+ Lint/UriEscapeUnescape:
240
+ Enabled: false
241
+
242
+ Lint/UriRegexp:
243
+ Enabled: true
244
+
245
+ Lint/UselessAccessModifier:
246
+ Enabled: true
247
+ ContextCreatingMethods: []
248
+ MethodCreatingMethods:
249
+ - delegate
250
+ - def_delegator
251
+ - def_delegators
252
+ AutoCorrect: true
253
+
254
+ Lint/UselessAssignment:
255
+ Enabled: true
256
+
257
+ Lint/UselessComparison:
258
+ Enabled: true
259
+
260
+ Lint/UselessElseWithoutRescue:
261
+ Enabled: true
262
+
263
+ Lint/UselessSetterCall:
264
+ Enabled: true
265
+
266
+ Lint/Void:
267
+ Enabled: true
268
+ CheckForMethodsWithNoSideEffects: false