rubocop-jekyll 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2521bf65495b49b7f0aaa94f185e02daeb60a2406994a34afad074160493e86d
4
- data.tar.gz: 998c0f5be8d0ae47301839985009b71bf5182a67c35ca328974dbdc48694b462
3
+ metadata.gz: 4a628f39b9d96a1e22bc4ea64d8caede4179d25d248bcddceca19481f4068165
4
+ data.tar.gz: 64770e1bbce36d935e640ce70b9d3238a4da7e29eba9ce860a86bd7c1d5c480b
5
5
  SHA512:
6
- metadata.gz: 34c33fa581c36b9fbca891dcd45cc74096c7f5f7b60e42203c934750eb57c12302f0933f9a72ed452878bb9ada873feb862f3936f8c8093144c9456188104dca
7
- data.tar.gz: 6d1807afefbd211261ce302235c0831dc7ec4e609895cb6de825844da8aa0cfaf98a24a1bd4c0aeb9d11fa229a43d1adcfd8719c7a380c9bcad9060ce07c45a6
6
+ metadata.gz: e8229c6fddd711f7808ef45fda4a4099842a989d5ea3af71f5846df556ee26fd3cdabd3b5bd9ca93bcbcc155af15adf8723b40d00ec4c4f9fac8b4cbd82b59ab
7
+ data.tar.gz: dad88aea9c6672ea99ee61c3aa525799a3d9866836b1dc80ea293a8a0dc0442ba3915f70ccbc90bc222efa5b6e912237e2d1df6da7423594bcaae60a9cb1c7ac
data/.rubocop.yml CHANGED
@@ -1,440 +1,476 @@
1
- require:
2
- - rubocop-performance
3
-
4
- AllCops:
5
- TargetRubyVersion: 2.7
6
- Exclude:
7
- - bin/**/*
8
- - exe/**/*
9
- - benchmark/**/*
10
- - script/**/*
11
- - vendor/**/*
12
- - tmp/**/*
13
-
14
-
15
- Gemspec/DeprecatedAttributeAssignment:
16
- Enabled: true
17
- Gemspec/DevelopmentDependencies:
18
- Enabled: false # we don't care where dev dependencies are placed
19
- Gemspec/RequireMFA:
20
- Enabled: false # jekyllbot auto-releases :|
21
-
22
-
23
- Layout/BeginEndAlignment:
24
- Enabled: true
25
- Layout/EmptyComment:
26
- Enabled: false
27
- Layout/EmptyLinesAroundAttributeAccessor:
28
- Enabled: true
29
- Layout/EndAlignment:
30
- Severity: error
31
- Layout/FirstArrayElementIndentation:
32
- EnforcedStyle: consistent
33
- Layout/FirstHashElementIndentation:
34
- EnforcedStyle: consistent
35
- Layout/HashAlignment:
36
- EnforcedHashRocketStyle: table
37
- Layout/IndentationWidth:
38
- Severity: error
39
- Layout/LineContinuationLeadingSpace:
40
- Enabled: true
41
- Layout/LineContinuationSpacing:
42
- Enabled: true
43
- Layout/LineEndStringConcatenationIndentation:
44
- Enabled: true
45
- Layout/LineLength:
46
- Max: 100
47
- Severity: warning
48
- Layout/MultilineMethodCallIndentation:
49
- EnforcedStyle: indented
50
- Layout/MultilineOperationIndentation:
51
- EnforcedStyle: indented
52
- Layout/SpaceAroundMethodCallOperator:
53
- Enabled: true
54
- Layout/SpaceBeforeBrackets:
55
- Enabled: true
56
- Layout/SpaceInsideHashLiteralBraces:
57
- Enabled: true
58
-
59
-
60
- Lint/AmbiguousAssignment:
61
- Enabled: true
62
- Lint/AmbiguousOperatorPrecedence:
63
- Enabled: true
64
- Lint/AmbiguousRange:
65
- Enabled: true
66
- Lint/BinaryOperatorWithIdenticalOperands:
67
- Enabled: true
68
- Lint/ConstantDefinitionInBlock:
69
- Enabled: true
70
- Lint/ConstantOverwrittenInRescue:
71
- Enabled: true
72
- Lint/DeprecatedConstants:
73
- Enabled: true
74
- Lint/DeprecatedOpenSSLConstant:
75
- Enabled: true
76
- Lint/DuplicateBranch:
77
- Enabled: true
78
- Lint/DuplicateElsifCondition:
79
- Enabled: true
80
- Lint/DuplicateMagicComment:
81
- Enabled: true
82
- Lint/DuplicateRegexpCharacterClassElement:
83
- Enabled: true
84
- Lint/DuplicateRequire:
85
- Enabled: true
86
- Lint/DuplicateRescueException:
87
- Enabled: true
88
- Lint/EmptyBlock:
89
- Enabled: true
90
- Lint/EmptyClass:
91
- Enabled: true
92
- Lint/EmptyConditionalBody:
93
- Enabled: true
94
- Lint/EmptyFile:
95
- Enabled: true
96
- Lint/EmptyInPattern:
97
- Enabled: true
98
- Lint/FloatComparison:
99
- Enabled: true
100
- Lint/HashCompareByIdentity:
101
- Enabled: true
102
- Lint/IdentityComparison:
103
- Enabled: true
104
- Lint/IncompatibleIoSelectWithFiberScheduler:
105
- Enabled: true
106
- Lint/LambdaWithoutLiteralBlock:
107
- Enabled: true
108
- Lint/MissingSuper:
109
- Enabled: false
110
- Lint/MixedRegexpCaptureTypes:
111
- Enabled: false
112
- Lint/NestedPercentLiteral:
113
- Enabled: true
114
- Lint/NoReturnInBeginEndBlocks:
115
- Enabled: true
116
- Lint/NonAtomicFileOperation:
117
- Enabled: true
118
- Lint/NumberedParameterAssignment:
119
- Enabled: true
120
- Lint/OrAssignmentToConstant:
121
- Enabled: true
122
- Lint/OutOfRangeRegexpRef:
123
- Enabled: true
124
- Lint/RaiseException:
125
- Enabled: true
126
- Lint/RedundantDirGlobSort:
127
- Enabled: true
128
- Lint/RedundantSafeNavigation:
129
- Enabled: true
130
- Lint/RefinementImportMethods:
131
- Enabled: true
132
- Lint/RequireRangeParentheses:
133
- Enabled: true
134
- Lint/RequireRelativeSelfPath:
135
- Enabled: true
136
- Lint/SelfAssignment:
137
- Enabled: true
138
- Lint/StructNewOverride:
139
- Enabled: true
140
- Lint/SymbolConversion:
141
- Enabled: true
142
- Lint/ToEnumArguments:
143
- Enabled: false
144
- Lint/TopLevelReturnWithArgument:
145
- Enabled: true
146
- Lint/TrailingCommaInAttributeDeclaration:
147
- Enabled: true
148
- Lint/TripleQuotes:
149
- Enabled: true
150
- Lint/UnexpectedBlockArity:
151
- Enabled: true
152
- Lint/UnmodifiedReduceAccumulator:
153
- Enabled: true
154
- Lint/UnreachableCode:
155
- Severity: error
156
- Lint/UnreachableLoop:
157
- Enabled: true
158
- Lint/UselessMethodDefinition:
159
- Enabled: true
160
- Lint/UselessRescue:
161
- Enabled: true
162
- Lint/UselessRuby2Keywords:
163
- Enabled: true
164
- Lint/UselessTimes:
165
- Enabled: true
166
- Lint/Void:
167
- Enabled: true
168
-
169
-
170
- Metrics/AbcSize:
171
- Max: 21
172
- Metrics/BlockLength:
173
- Exclude:
174
- - !ruby/regexp /^spec/
175
- Metrics/ClassLength:
176
- Max: 240
177
- Metrics/MethodLength:
178
- CountComments: false
179
- Max: 20
180
- Severity: error
181
- Metrics/ModuleLength:
182
- Max: 240
183
- Metrics/ParameterLists:
184
- Max: 4
185
- Metrics/PerceivedComplexity:
186
- Max: 8
187
-
188
-
189
- Naming/BlockForwarding:
190
- Enabled: true
191
- Naming/FileName:
192
- Enabled: false
193
- Naming/HeredocDelimiterNaming:
194
- Enabled: true
195
- Naming/MemoizedInstanceVariableName:
196
- EnforcedStyleForLeadingUnderscores: optional
197
-
198
-
199
- Performance/AncestorsInclude:
200
- Enabled: false
201
- Performance/ArraySemiInfiniteRangeSlice:
202
- Enabled: true
203
- Performance/BigDecimalWithNumericArgument:
204
- Enabled: true
205
- Performance/BlockGivenWithExplicitBlock:
206
- Enabled: true
207
- Performance/ChainArrayAllocation:
208
- Enabled: true
209
- Performance/CollectionLiteralInLoop:
210
- Enabled: true
211
- Performance/ConcurrentMonotonicTime:
212
- Enabled: true
213
- Performance/ConstantRegexp:
214
- Enabled: true
215
- Performance/MapCompact:
216
- Enabled: true
217
- Performance/MethodObjectAsBlock:
218
- Enabled: true
219
- Performance/RedundantEqualityComparisonBlock:
220
- Enabled: false
221
- Performance/RedundantSortBlock:
222
- Enabled: true
223
- Performance/RedundantSplitRegexpArgument:
224
- Enabled: true
225
- Performance/RedundantStringChars:
226
- Enabled: true
227
- Performance/ReverseFirst:
228
- Enabled: true
229
- Performance/SortReverse:
230
- Enabled: false
231
- Performance/Squeeze:
232
- Enabled: true
233
- Performance/StringIdentifierArgument:
234
- Enabled: true
235
- Performance/StringInclude:
236
- Enabled: true
237
- Performance/Sum:
238
- Enabled: true
239
-
240
-
241
- Security/CompoundHash:
242
- Enabled: true
243
- Security/IoMethods:
244
- Enabled: true
245
- Security/MarshalLoad:
246
- Enabled: true
247
- Security/YAMLLoad:
248
- Enabled: true
249
-
250
-
251
- Style/AccessModifierDeclarations:
252
- Enabled: false
253
- Style/AccessorGrouping:
254
- Enabled: true
255
- Style/Alias:
256
- EnforcedStyle: prefer_alias_method
257
- Style/AndOr:
258
- Severity: error
259
- Style/ArgumentsForwarding:
260
- Enabled: false
261
- Style/ArrayCoercion:
262
- Enabled: true
263
- Style/ArrayIntersect:
264
- Enabled: true
265
- Style/BisectedAttrAccessor:
266
- Enabled: true
267
- Style/CaseLikeIf:
268
- Enabled: true
269
- Style/ClassAndModuleChildren:
270
- Enabled: true
271
- Style/ClassEqualityComparison:
272
- Enabled: true
273
- Style/CollectionCompact:
274
- Enabled: true
275
- Style/CombinableLoops:
276
- Enabled: true
277
- Style/ComparableClamp:
278
- Enabled: true
279
- Style/ConcatArrayLiterals:
280
- Enabled: true
281
- Style/DocumentDynamicEvalDefinition:
282
- Enabled: true
283
- Style/Documentation:
284
- Enabled: false
285
- Style/DoubleNegation:
286
- Enabled: false
287
- Style/EmptyHeredoc:
288
- Enabled: true
289
- Style/EndlessMethod:
290
- Enabled: true
291
- Style/EnvHome:
292
- Enabled: true
293
- Style/ExplicitBlockArgument:
294
- Enabled: false
295
- Style/ExponentialNotation:
296
- Enabled: true
297
- Style/FetchEnvVar:
298
- Enabled: true
299
- Style/FileRead:
300
- Enabled: true
301
- Style/FileWrite:
302
- Enabled: true
303
- Style/FormatStringToken:
304
- Enabled: true
305
- Style/FrozenStringLiteralComment:
306
- EnforcedStyle: always
307
- Style/GlobalStdStream:
308
- Enabled: true
309
- Style/GuardClause:
310
- Enabled: false
311
- Style/HashAsLastArrayItem:
312
- Enabled: true
313
- Style/HashConversion:
314
- Enabled: true
315
- Style/HashEachMethods:
316
- Enabled: true
317
- Style/HashExcept:
318
- Enabled: true
319
- Style/HashLikeCase:
320
- Enabled: true
321
- Style/HashSyntax:
322
- EnforcedStyle: hash_rockets
323
- Severity: error
324
- Style/HashTransformKeys:
325
- Enabled: false
326
- Style/HashTransformValues:
327
- Enabled: true
328
- Style/IfWithBooleanLiteralBranches:
329
- Enabled: true
330
- Style/InPatternThen:
331
- Enabled: true
332
- Style/KeywordParametersOrder:
333
- Enabled: true
334
- Style/MagicCommentFormat:
335
- Enabled: true
336
- Style/MapCompactWithConditionalBlock:
337
- Enabled: true
338
- Style/MapToHash:
339
- Enabled: true
340
- Style/MapToSet:
341
- Enabled: true
342
- Style/MinMaxComparison:
343
- Enabled: true
344
- Style/MixinUsage:
345
- Enabled: true
346
- Style/ModuleFunction:
347
- Enabled: false
348
- Style/MultilineInPatternThen:
349
- Enabled: true
350
- Style/MultilineTernaryOperator:
351
- Severity: error
352
- Style/NegatedIfElseCondition:
353
- Enabled: true
354
- Style/NestedFileDirname:
355
- Enabled: true
356
- Style/NilLambda:
357
- Enabled: true
358
- Style/NumberedParameters:
359
- Enabled: true
360
- Style/NumberedParametersLimit:
361
- Enabled: true
362
- Style/ObjectThen:
363
- Enabled: true
364
- Style/OpenStructUse:
365
- Enabled: true
366
- Style/OperatorMethodCall:
367
- Enabled: true
368
- Style/OptionalBooleanParameter:
369
- Enabled: true
370
- Style/PercentLiteralDelimiters:
371
- PreferredDelimiters:
372
- "%q": "{}"
373
- "%Q": "{}"
374
- "%r": "!!"
375
- "%s": "()"
376
- "%w": "()"
377
- "%W": "()"
378
- "%x": "()"
379
- Style/QuotedSymbols:
380
- Enabled: true
381
- Style/RedundantArgument:
382
- Enabled: true
383
- Style/RedundantAssignment:
384
- Enabled: true
385
- Style/RedundantConstantBase:
386
- Enabled: true
387
- Style/RedundantDoubleSplatHashBraces:
388
- Enabled: true
389
- Style/RedundantEach:
390
- Enabled: true
391
- Style/RedundantFetchBlock:
392
- Enabled: false
393
- Style/RedundantFileExtensionInRequire:
394
- Enabled: true
395
- Style/RedundantHeredocDelimiterQuotes:
396
- Enabled: true
397
- Style/RedundantInitialize:
398
- Enabled: true
399
- Style/RedundantRegexpCharacterClass:
400
- Enabled: true
401
- Style/RedundantRegexpEscape:
402
- Enabled: true
403
- Style/RedundantSelfAssignment:
404
- Enabled: true
405
- Style/RedundantSelfAssignmentBranch:
406
- Enabled: true
407
- Style/RedundantStringEscape:
408
- Enabled: true
409
- Style/RegexpLiteral:
410
- EnforcedStyle: percent_r
411
- Style/RescueModifier:
412
- Enabled: false
413
- Style/SafeNavigation:
414
- Enabled: true
415
- Style/SelectByRegexp:
416
- Enabled: true
417
- Style/SignalException:
418
- EnforcedStyle: only_raise
419
- Style/SingleArgumentDig:
420
- Enabled: true
421
- Style/SlicingWithRange:
422
- Enabled: false
423
- Style/SoleNestedConditional:
424
- Enabled: true
425
- Style/StringChars:
426
- Enabled: true
427
- Style/StringConcatenation:
428
- Enabled: true
429
- Style/StringLiterals:
430
- EnforcedStyle: double_quotes
431
- Style/StringLiteralsInInterpolation:
432
- EnforcedStyle: double_quotes
433
- Style/SwapValues:
434
- Enabled: true
435
- Style/SymbolArray:
436
- EnforcedStyle: brackets
437
- Style/TrailingCommaInArrayLiteral:
438
- EnforcedStyleForMultiline: consistent_comma
439
- Style/TrailingCommaInHashLiteral:
440
- EnforcedStyleForMultiline: consistent_comma
1
+ require:
2
+ - rubocop-performance
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 2.7
6
+ Exclude:
7
+ - bin/**/*
8
+ - exe/**/*
9
+ - benchmark/**/*
10
+ - script/**/*
11
+ - vendor/**/*
12
+ - tmp/**/*
13
+
14
+
15
+ Gemspec/DeprecatedAttributeAssignment:
16
+ Enabled: true
17
+ Gemspec/DevelopmentDependencies:
18
+ Enabled: false # we don't care where dev dependencies are placed
19
+ Gemspec/RequireMFA:
20
+ Enabled: false # jekyllbot auto-releases :|
21
+
22
+
23
+ Layout/BeginEndAlignment:
24
+ Enabled: true
25
+ Layout/EmptyComment:
26
+ Enabled: false
27
+ Layout/EmptyLinesAroundAttributeAccessor:
28
+ Enabled: true
29
+ Layout/EndAlignment:
30
+ Severity: error
31
+ Layout/EndOfLine:
32
+ Enabled: false # Use .gitattributes with `* text=auto` for cross-platform flexibility
33
+ Layout/FirstArrayElementIndentation:
34
+ EnforcedStyle: consistent
35
+ Layout/FirstHashElementIndentation:
36
+ EnforcedStyle: consistent
37
+ Layout/HashAlignment:
38
+ EnforcedHashRocketStyle: table
39
+ Layout/IndentationWidth:
40
+ Severity: error
41
+ Layout/LineContinuationLeadingSpace:
42
+ Enabled: true
43
+ Layout/LineContinuationSpacing:
44
+ Enabled: true
45
+ Layout/LineEndStringConcatenationIndentation:
46
+ Enabled: true
47
+ Layout/LineLength:
48
+ Max: 100
49
+ Severity: warning
50
+ Layout/MultilineMethodCallIndentation:
51
+ EnforcedStyle: indented
52
+ Layout/MultilineOperationIndentation:
53
+ EnforcedStyle: indented
54
+ Layout/SpaceAroundMethodCallOperator:
55
+ Enabled: true
56
+ Layout/SpaceBeforeBrackets:
57
+ Enabled: true
58
+ Layout/SpaceInsideHashLiteralBraces:
59
+ Enabled: true
60
+
61
+
62
+ Lint/AmbiguousAssignment:
63
+ Enabled: true
64
+ Lint/AmbiguousOperatorPrecedence:
65
+ Enabled: true
66
+ Lint/AmbiguousRange:
67
+ Enabled: true
68
+ Lint/BinaryOperatorWithIdenticalOperands:
69
+ Enabled: true
70
+ Lint/ConstantDefinitionInBlock:
71
+ Enabled: true
72
+ Lint/ConstantOverwrittenInRescue:
73
+ Enabled: true
74
+ Lint/DeprecatedConstants:
75
+ Enabled: true
76
+ Lint/DeprecatedOpenSSLConstant:
77
+ Enabled: true
78
+ Lint/DuplicateBranch:
79
+ Enabled: true
80
+ Lint/DuplicateElsifCondition:
81
+ Enabled: true
82
+ Lint/DuplicateMagicComment:
83
+ Enabled: true
84
+ Lint/DuplicateMatchPattern:
85
+ Enabled: true
86
+ Lint/DuplicateRegexpCharacterClassElement:
87
+ Enabled: true
88
+ Lint/DuplicateRequire:
89
+ Enabled: true
90
+ Lint/DuplicateRescueException:
91
+ Enabled: true
92
+ Lint/EmptyBlock:
93
+ Enabled: true
94
+ Lint/EmptyClass:
95
+ Enabled: true
96
+ Lint/EmptyConditionalBody:
97
+ Enabled: true
98
+ Lint/EmptyFile:
99
+ Enabled: true
100
+ Lint/EmptyInPattern:
101
+ Enabled: true
102
+ Lint/FloatComparison:
103
+ Enabled: true
104
+ Lint/HashCompareByIdentity:
105
+ Enabled: true
106
+ Lint/IdentityComparison:
107
+ Enabled: true
108
+ Lint/IncompatibleIoSelectWithFiberScheduler:
109
+ Enabled: true
110
+ Lint/LambdaWithoutLiteralBlock:
111
+ Enabled: true
112
+ Lint/MissingSuper:
113
+ Enabled: false
114
+ Lint/MixedCaseRange:
115
+ Enabled: true
116
+ Lint/MixedRegexpCaptureTypes:
117
+ Enabled: false
118
+ Lint/NestedPercentLiteral:
119
+ Enabled: true
120
+ Lint/NoReturnInBeginEndBlocks:
121
+ Enabled: true
122
+ Lint/NonAtomicFileOperation:
123
+ Enabled: true
124
+ Lint/NumberedParameterAssignment:
125
+ Enabled: true
126
+ Lint/OrAssignmentToConstant:
127
+ Enabled: true
128
+ Lint/OutOfRangeRegexpRef:
129
+ Enabled: true
130
+ Lint/RaiseException:
131
+ Enabled: true
132
+ Lint/RedundantDirGlobSort:
133
+ Enabled: true
134
+ Lint/RedundantRegexpQuantifiers:
135
+ Enabled: true
136
+ Lint/RedundantSafeNavigation:
137
+ Enabled: true
138
+ Lint/RefinementImportMethods:
139
+ Enabled: true
140
+ Lint/RequireRangeParentheses:
141
+ Enabled: true
142
+ Lint/RequireRelativeSelfPath:
143
+ Enabled: true
144
+ Lint/SelfAssignment:
145
+ Enabled: true
146
+ Lint/StructNewOverride:
147
+ Enabled: true
148
+ Lint/SymbolConversion:
149
+ Enabled: true
150
+ Lint/ToEnumArguments:
151
+ Enabled: false
152
+ Lint/TopLevelReturnWithArgument:
153
+ Enabled: true
154
+ Lint/TrailingCommaInAttributeDeclaration:
155
+ Enabled: true
156
+ Lint/TripleQuotes:
157
+ Enabled: true
158
+ Lint/UnexpectedBlockArity:
159
+ Enabled: true
160
+ Lint/UnmodifiedReduceAccumulator:
161
+ Enabled: true
162
+ Lint/UnreachableCode:
163
+ Severity: error
164
+ Lint/UnreachableLoop:
165
+ Enabled: true
166
+ Lint/UselessMethodDefinition:
167
+ Enabled: true
168
+ Lint/UselessRescue:
169
+ Enabled: true
170
+ Lint/UselessRuby2Keywords:
171
+ Enabled: true
172
+ Lint/UselessTimes:
173
+ Enabled: true
174
+ Lint/Void:
175
+ Enabled: true
176
+
177
+
178
+ Metrics/AbcSize:
179
+ Max: 21
180
+ Metrics/BlockLength:
181
+ Exclude:
182
+ - !ruby/regexp /^spec/
183
+ Metrics/ClassLength:
184
+ Max: 240
185
+ Metrics/CollectionLiteralLength:
186
+ Enabled: true
187
+ Metrics/CyclomaticComplexity:
188
+ Max: 11
189
+ Metrics/MethodLength:
190
+ CountComments: false
191
+ Max: 20
192
+ Severity: error
193
+ Metrics/ModuleLength:
194
+ Max: 240
195
+ Metrics/ParameterLists:
196
+ Max: 4
197
+ Metrics/PerceivedComplexity:
198
+ Max: 8
199
+
200
+
201
+ Naming/BlockForwarding:
202
+ Enabled: true
203
+ Naming/FileName:
204
+ Enabled: false
205
+ Naming/HeredocDelimiterNaming:
206
+ Enabled: true
207
+ Naming/MemoizedInstanceVariableName:
208
+ EnforcedStyleForLeadingUnderscores: optional
209
+
210
+
211
+ Performance/AncestorsInclude:
212
+ Enabled: false
213
+ Performance/ArraySemiInfiniteRangeSlice:
214
+ Enabled: true
215
+ Performance/BigDecimalWithNumericArgument:
216
+ Enabled: true
217
+ Performance/BlockGivenWithExplicitBlock:
218
+ Enabled: true
219
+ Performance/ChainArrayAllocation:
220
+ Enabled: true
221
+ Performance/CollectionLiteralInLoop:
222
+ Enabled: true
223
+ Performance/ConcurrentMonotonicTime:
224
+ Enabled: true
225
+ Performance/ConstantRegexp:
226
+ Enabled: true
227
+ Performance/MapCompact:
228
+ Enabled: true
229
+ Performance/MapMethodChain:
230
+ Enabled: true
231
+ Performance/MethodObjectAsBlock:
232
+ Enabled: true
233
+ Performance/RedundantEqualityComparisonBlock:
234
+ Enabled: false
235
+ Performance/RedundantSortBlock:
236
+ Enabled: true
237
+ Performance/RedundantSplitRegexpArgument:
238
+ Enabled: true
239
+ Performance/RedundantStringChars:
240
+ Enabled: true
241
+ Performance/ReverseFirst:
242
+ Enabled: true
243
+ Performance/SortReverse:
244
+ Enabled: false
245
+ Performance/Squeeze:
246
+ Enabled: true
247
+ Performance/StringIdentifierArgument:
248
+ Enabled: true
249
+ Performance/StringInclude:
250
+ Enabled: true
251
+ Performance/Sum:
252
+ Enabled: true
253
+
254
+
255
+ Security/CompoundHash:
256
+ Enabled: true
257
+ Security/IoMethods:
258
+ Enabled: true
259
+ Security/MarshalLoad:
260
+ Enabled: true
261
+ Security/YAMLLoad:
262
+ Enabled: true
263
+
264
+
265
+ Style/AccessModifierDeclarations:
266
+ Enabled: false
267
+ Style/AccessorGrouping:
268
+ Enabled: true
269
+ Style/Alias:
270
+ EnforcedStyle: prefer_alias_method
271
+ Style/AndOr:
272
+ Severity: error
273
+ Style/ArgumentsForwarding:
274
+ Enabled: false
275
+ Style/ArrayCoercion:
276
+ Enabled: true
277
+ Style/ArrayIntersect:
278
+ Enabled: true
279
+ Style/BisectedAttrAccessor:
280
+ Enabled: true
281
+ Style/CaseLikeIf:
282
+ Enabled: true
283
+ Style/ClassAndModuleChildren:
284
+ Enabled: true
285
+ Style/ClassEqualityComparison:
286
+ Enabled: true
287
+ Style/CollectionCompact:
288
+ Enabled: true
289
+ Style/CombinableLoops:
290
+ Enabled: true
291
+ Style/ComparableClamp:
292
+ Enabled: true
293
+ Style/ConcatArrayLiterals:
294
+ Enabled: true
295
+ Style/DirEmpty:
296
+ Enabled: true
297
+ Style/DocumentDynamicEvalDefinition:
298
+ Enabled: true
299
+ Style/Documentation:
300
+ Enabled: false
301
+ Style/DoubleNegation:
302
+ Enabled: false
303
+ Style/EmptyHeredoc:
304
+ Enabled: true
305
+ Style/EndlessMethod:
306
+ Enabled: true
307
+ Style/EnvHome:
308
+ Enabled: true
309
+ Style/ExactRegexpMatch:
310
+ Enabled: true
311
+ Style/ExplicitBlockArgument:
312
+ Enabled: false
313
+ Style/ExponentialNotation:
314
+ Enabled: true
315
+ Style/FetchEnvVar:
316
+ Enabled: false
317
+ Style/FileEmpty:
318
+ Enabled: true
319
+ Style/FileRead:
320
+ Enabled: true
321
+ Style/FileWrite:
322
+ Enabled: true
323
+ Style/FormatStringToken:
324
+ Enabled: true
325
+ Style/FrozenStringLiteralComment:
326
+ EnforcedStyle: always
327
+ Style/GlobalStdStream:
328
+ Enabled: true
329
+ Style/GuardClause:
330
+ Enabled: false
331
+ Style/HashAsLastArrayItem:
332
+ Enabled: true
333
+ Style/HashConversion:
334
+ Enabled: true
335
+ Style/HashEachMethods:
336
+ Enabled: true
337
+ Style/HashExcept:
338
+ Enabled: true
339
+ Style/HashLikeCase:
340
+ Enabled: true
341
+ Style/HashSyntax:
342
+ EnforcedStyle: hash_rockets
343
+ Severity: error
344
+ Style/HashTransformKeys:
345
+ Enabled: false
346
+ Style/HashTransformValues:
347
+ Enabled: true
348
+ Style/IfWithBooleanLiteralBranches:
349
+ Enabled: true
350
+ Style/InPatternThen:
351
+ Enabled: true
352
+ Style/KeywordParametersOrder:
353
+ Enabled: true
354
+ Style/MagicCommentFormat:
355
+ Enabled: true
356
+ Style/MapCompactWithConditionalBlock:
357
+ Enabled: true
358
+ Style/MapToHash:
359
+ Enabled: true
360
+ Style/MapToSet:
361
+ Enabled: true
362
+ Style/MinMaxComparison:
363
+ Enabled: true
364
+ Style/MixinUsage:
365
+ Enabled: true
366
+ Style/ModuleFunction:
367
+ Enabled: false
368
+ Style/MultilineInPatternThen:
369
+ Enabled: true
370
+ Style/MultilineTernaryOperator:
371
+ Severity: error
372
+ Style/NegatedIfElseCondition:
373
+ Enabled: true
374
+ Style/NestedFileDirname:
375
+ Enabled: true
376
+ Style/NilLambda:
377
+ Enabled: true
378
+ Style/NumberedParameters:
379
+ Enabled: true
380
+ Style/NumberedParametersLimit:
381
+ Enabled: true
382
+ Style/ObjectThen:
383
+ Enabled: true
384
+ Style/OpenStructUse:
385
+ Enabled: true
386
+ Style/OperatorMethodCall:
387
+ Enabled: true
388
+ Style/OptionalBooleanParameter:
389
+ Enabled: true
390
+ Style/PercentLiteralDelimiters:
391
+ PreferredDelimiters:
392
+ "%q": "{}"
393
+ "%Q": "{}"
394
+ "%r": "!!"
395
+ "%s": "()"
396
+ "%w": "()"
397
+ "%W": "()"
398
+ "%x": "()"
399
+ Style/QuotedSymbols:
400
+ Enabled: true
401
+ Style/RedundantArgument:
402
+ Enabled: true
403
+ Style/RedundantArrayConstructor:
404
+ Enabled: true
405
+ Style/RedundantAssignment:
406
+ Enabled: true
407
+ Style/RedundantConstantBase:
408
+ Enabled: true
409
+ Style/RedundantCurrentDirectoryInPath:
410
+ Enabled: true
411
+ Style/RedundantDoubleSplatHashBraces:
412
+ Enabled: true
413
+ Style/RedundantEach:
414
+ Enabled: true
415
+ Style/RedundantFetchBlock:
416
+ Enabled: false
417
+ Style/RedundantFileExtensionInRequire:
418
+ Enabled: true
419
+ Style/RedundantFilterChain:
420
+ Enabled: true
421
+ Style/RedundantHeredocDelimiterQuotes:
422
+ Enabled: true
423
+ Style/RedundantInitialize:
424
+ Enabled: true
425
+ Style/RedundantLineContinuation:
426
+ Enabled: true
427
+ Style/RedundantRegexpArgument:
428
+ Enabled: true
429
+ Style/RedundantRegexpCharacterClass:
430
+ Enabled: true
431
+ Style/RedundantRegexpConstructor:
432
+ Enabled: true
433
+ Style/RedundantRegexpEscape:
434
+ Enabled: true
435
+ Style/RedundantSelfAssignment:
436
+ Enabled: true
437
+ Style/RedundantSelfAssignmentBranch:
438
+ Enabled: true
439
+ Style/RedundantStringEscape:
440
+ Enabled: true
441
+ Style/RegexpLiteral:
442
+ EnforcedStyle: percent_r
443
+ Style/RescueModifier:
444
+ Enabled: false
445
+ Style/SafeNavigation:
446
+ Enabled: true
447
+ Style/SelectByRegexp:
448
+ Enabled: true
449
+ Style/ReturnNilInPredicateMethodDefinition:
450
+ Enabled: true
451
+ Style/SignalException:
452
+ EnforcedStyle: only_raise
453
+ Style/SingleArgumentDig:
454
+ Enabled: true
455
+ Style/SingleLineDoEndBlock:
456
+ Enabled: true
457
+ Style/SlicingWithRange:
458
+ Enabled: false
459
+ Style/SoleNestedConditional:
460
+ Enabled: true
461
+ Style/StringChars:
462
+ Enabled: true
463
+ Style/StringConcatenation:
464
+ Enabled: true
465
+ Style/StringLiterals:
466
+ EnforcedStyle: double_quotes
467
+ Style/StringLiteralsInInterpolation:
468
+ EnforcedStyle: double_quotes
469
+ Style/SwapValues:
470
+ Enabled: true
471
+ Style/SymbolArray:
472
+ EnforcedStyle: brackets
473
+ Style/TrailingCommaInArrayLiteral:
474
+ EnforcedStyleForMultiline: consistent_comma
475
+ Style/TrailingCommaInHashLiteral:
476
+ EnforcedStyleForMultiline: consistent_comma
data/README.md CHANGED
@@ -1,67 +1,69 @@
1
- # RuboCop Jekyll
2
-
3
- A RuboCop extension to enforce common code style in Jekyll and Jekyll plugins.
4
-
5
-
6
- [![Gem Version](https://img.shields.io/gem/v/rubocop-jekyll.svg?label=Latest%20Release)][rubygems]
7
- [![RuboCop Support](https://img.shields.io/badge/RuboCop%20Support-1.45.x-green.svg)][rubocop-releases]
8
-
9
- [rubygems]: https://rubygems.org/gems/rubocop-jekyll
10
- [rubocop-releases]: https://github.com/rubocop-hq/rubocop/releases
11
-
12
-
13
- ## Installation
14
-
15
- Just install the `rubocop-jekyll` gem
16
-
17
- ```
18
- gem install rubocop-jekyll
19
- ```
20
-
21
- or if you prefer Bundler, add it to your `Gemfile` or `gemspec`
22
-
23
- ```ruby
24
- # Gemfile
25
-
26
- gem "rubocop-jekyll", "~> 0.13.0"
27
- ```
28
- ```ruby
29
- # <plugin>.gemspec
30
-
31
- spec.add_development_dependency "rubocop-jekyll", "~> 0.13.0"
32
- ```
33
- and run `bundle install`
34
-
35
-
36
- ## Usage
37
-
38
- You need to tell RuboCop to load the extension and *inherit* the custom RuboCop configuration advocated by
39
- [Jekyll](https://github.com/jekyll).
40
-
41
- Place the following at the top of your `.rubocop.yml`.
42
-
43
- ```yaml
44
- require: rubocop-jekyll
45
- inherit_gem:
46
- rubocop-jekyll: .rubocop.yml
47
- ```
48
-
49
- Running `bundle exec rubocop` will now automatically load the `rubocop-jekyll` cops together with the standard cops.
50
-
51
-
52
- ## Customization
53
-
54
- You can override any settings inherited from the extension by subsequently redefining the concerned parameters.
55
-
56
-
57
- ## Release Cycle
58
-
59
- A new release of this gem is manually cut based on the adoption of the latest version of RuboCop by the [Jekyll repository](https://github.com/jekyll/jekyll):
60
-
61
- 1. RuboCop releases a new version.
62
- 2. The `master` branch of Jekyll repository is updated to the latest RuboCop version along with any updates to their `.rubocop.yml`.
63
- 3. The RuboCop version and `.rubocop.yml` at this gem's repository is updated **via a pull request**.
64
- 4. A new minor release is subsequently cut and shipped.
65
-
66
- *Note: A patch version of this gem will be released if Jekyll repository updates their `.rubocop.yml` independently of
67
- a RuboCop version bump.*
1
+ # RuboCop Jekyll
2
+
3
+ A RuboCop extension to enforce common code style in Jekyll and Jekyll plugins.
4
+
5
+
6
+ [![Gem Version](https://img.shields.io/gem/v/rubocop-jekyll.svg?label=Latest%20Release&labelColor=000000&style=for-the-badge&logo=rubygems&logoColor=white&color=E9573F)][rubygems]
7
+ [![RuboCop Support](https://img.shields.io/badge/RuboCop%20Support-1.57.x-AA0000.svg?style=for-the-badge&labelColor=000000&logo=rubocop)][rubocop-releases]
8
+ ![Targeted Ruby Version](https://img.shields.io/badge/Targeted%20Ruby%20Version-2.7.x-CC342D.svg?style=for-the-badge&labelColor=000000&logo=ruby)
9
+
10
+ [rubygems]: https://rubygems.org/gems/rubocop-jekyll
11
+ [rubocop-releases]: https://github.com/rubocop-hq/rubocop/releases
12
+
13
+
14
+ ## Installation
15
+
16
+ Just install the `rubocop-jekyll` gem
17
+
18
+ ```
19
+ gem install rubocop-jekyll
20
+ ```
21
+
22
+ or if you prefer Bundler, add it to your `Gemfile` or `gemspec`
23
+
24
+ ```ruby
25
+ # Gemfile
26
+
27
+ gem "rubocop-jekyll", "~> 0.14.0"
28
+ ```
29
+ ```ruby
30
+ # <plugin>.gemspec
31
+
32
+ spec.add_development_dependency "rubocop-jekyll", "~> 0.14.0"
33
+ ```
34
+ and run `bundle install`
35
+
36
+
37
+ ## Usage
38
+
39
+ You need to tell RuboCop to load the extension and *inherit* the custom RuboCop configuration advocated by
40
+ [Jekyll](https://github.com/jekyll).
41
+
42
+ Place the following at the top of your `.rubocop.yml`.
43
+
44
+ ```yaml
45
+ require: rubocop-jekyll
46
+ inherit_gem:
47
+ rubocop-jekyll: .rubocop.yml
48
+ ```
49
+
50
+ Running `bundle exec rubocop` will now automatically load the `rubocop-jekyll` cops together with the standard cops.
51
+
52
+
53
+ ## Customization
54
+
55
+ You can override any settings inherited from the extension by subsequently redefining the concerned parameters.
56
+
57
+
58
+ ## Release Cycle
59
+
60
+ A new release of this gem is cut based on the adoption of the latest version of RuboCop by the [Jekyll repository](https://github.com/jekyll/jekyll):
61
+
62
+ 1. RuboCop releases a new version.
63
+ 2. The `master` branch of Jekyll repository is updated to the latest RuboCop version along with any updates to their `.rubocop.yml`.
64
+ 3. The RuboCop version, and `.rubocop.yml` at this gem's repository is updated **via a pull request**.
65
+ 4. Files `lib/rubocop-jekyll/version.rb` and `README.md` at this gem's repository is updated **via a pull request**.
66
+ 5. A new minor release is subsequently cut and automatically shipped via GitHub Actions.
67
+
68
+ *Note: A patch version of this gem will be released if Jekyll repository updates their `.rubocop.yml` independently of
69
+ a RuboCop version bump.*
@@ -1,22 +1,22 @@
1
- # frozen_string_literal: true
2
-
3
- # ------------------------------------------ #
4
- # Originally authored by Parker Moore
5
- # https://github.com/jekyll/jekyll/pull/6615
6
- # ------------------------------------------ #
7
-
8
- module RuboCop
9
- module Cop
10
- module Jekyll
11
- class NoPAllowed < Cop
12
- MSG = "Avoid using `p` to print things. Use `Jekyll.logger` instead."
13
-
14
- def_node_search :p_called?, "(send _ :p _)"
15
-
16
- def on_send(node)
17
- add_offense(node, :location => :selector) if p_called?(node)
18
- end
19
- end
20
- end
21
- end
22
- end
1
+ # frozen_string_literal: true
2
+
3
+ # ------------------------------------------ #
4
+ # Originally authored by Parker Moore
5
+ # https://github.com/jekyll/jekyll/pull/6615
6
+ # ------------------------------------------ #
7
+
8
+ module RuboCop
9
+ module Cop
10
+ module Jekyll
11
+ class NoPAllowed < Cop
12
+ MSG = "Avoid using `p` to print things. Use `Jekyll.logger` instead."
13
+
14
+ def_node_search :p_called?, "(send _ :p _)"
15
+
16
+ def on_send(node)
17
+ add_offense(node, :location => :selector) if p_called?(node)
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -1,22 +1,22 @@
1
- # frozen_string_literal: true
2
-
3
- # ------------------------------------------ #
4
- # Originally authored by Parker Moore
5
- # https://github.com/jekyll/jekyll/pull/6615
6
- # ------------------------------------------ #
7
-
8
- module RuboCop
9
- module Cop
10
- module Jekyll
11
- class NoPutsAllowed < Cop
12
- MSG = "Avoid using `puts` to print things. Use `Jekyll.logger` instead."
13
-
14
- def_node_search :puts_called?, "(send nil? :puts _)"
15
-
16
- def on_send(node)
17
- add_offense(node, :location => :selector) if puts_called?(node)
18
- end
19
- end
20
- end
21
- end
22
- end
1
+ # frozen_string_literal: true
2
+
3
+ # ------------------------------------------ #
4
+ # Originally authored by Parker Moore
5
+ # https://github.com/jekyll/jekyll/pull/6615
6
+ # ------------------------------------------ #
7
+
8
+ module RuboCop
9
+ module Cop
10
+ module Jekyll
11
+ class NoPutsAllowed < Cop
12
+ MSG = "Avoid using `puts` to print things. Use `Jekyll.logger` instead."
13
+
14
+ def_node_search :puts_called?, "(send nil? :puts _)"
15
+
16
+ def on_send(node)
17
+ add_offense(node, :location => :selector) if puts_called?(node)
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RuboCop
4
+ module Jekyll
5
+ VERSION = "0.14.0"
6
+ end
7
+ end
@@ -1,4 +1,4 @@
1
- # frozen_string_literal: true
2
-
3
- path_to_cops = File.join(File.expand_path("rubocop", __dir__), "cop", "**", "*.rb")
4
- Dir[path_to_cops].sort.each { |cop| require cop }
1
+ # frozen_string_literal: true
2
+
3
+ path_to_cops = File.join(File.expand_path("rubocop", __dir__), "cop", "**", "*.rb")
4
+ Dir[path_to_cops].sort.each { |cop| require cop }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashwin Maroli
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-17 00:00:00.000000000 Z
11
+ date: 2024-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.45.0
19
+ version: 1.57.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.45.0
26
+ version: 1.57.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -50,13 +50,14 @@ files:
50
50
  - LICENSE
51
51
  - README.md
52
52
  - lib/rubocop-jekyll.rb
53
+ - lib/rubocop-jekyll/version.rb
53
54
  - lib/rubocop/cop/jekyll/no_p_allowed.rb
54
55
  - lib/rubocop/cop/jekyll/no_puts_allowed.rb
55
56
  homepage: https://github.com/jekyll/rubocop-jekyll
56
57
  licenses:
57
58
  - MIT
58
59
  metadata: {}
59
- post_install_message:
60
+ post_install_message:
60
61
  rdoc_options: []
61
62
  require_paths:
62
63
  - lib
@@ -71,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
72
  - !ruby/object:Gem::Version
72
73
  version: '0'
73
74
  requirements: []
74
- rubygems_version: 3.2.28
75
- signing_key:
75
+ rubygems_version: 3.1.6
76
+ signing_key:
76
77
  specification_version: 4
77
78
  summary: Code style check for Jekyll and Jekyll plugins
78
79
  test_files: []