rubocop-jekyll 0.12.0 → 0.14.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4be4de0eb7599eee91a16c6e342549e5f28f140824f62d038a19c9f9250e673b
4
- data.tar.gz: 19a2f98215eb43c87236722b1c19203f022ae4373b26b28d5a2b69f7e5aa1503
3
+ metadata.gz: 4a628f39b9d96a1e22bc4ea64d8caede4179d25d248bcddceca19481f4068165
4
+ data.tar.gz: 64770e1bbce36d935e640ce70b9d3238a4da7e29eba9ce860a86bd7c1d5c480b
5
5
  SHA512:
6
- metadata.gz: 612dda4b4a8c80a0cd4343bb3c433cbd6a652ec1f65f7a7bfd501985ed8d16ed65a980380f492ddf57b2fa81d03a8f75c592ffcd7df578a14fd03eccd490d94e
7
- data.tar.gz: 4cf450679ed5189de8840216dee1a4c48495c9e7fec8075438008ee60896929fd4bc9de17502ae6c12f2c3e350bdc7368f4a4d73c525a52e093fd81a4f874f84
6
+ metadata.gz: e8229c6fddd711f7808ef45fda4a4099842a989d5ea3af71f5846df556ee26fd3cdabd3b5bd9ca93bcbcc155af15adf8723b40d00ec4c4f9fac8b4cbd82b59ab
7
+ data.tar.gz: dad88aea9c6672ea99ee61c3aa525799a3d9866836b1dc80ea293a8a0dc0442ba3915f70ccbc90bc222efa5b6e912237e2d1df6da7423594bcaae60a9cb1c7ac
data/.rubocop.yml CHANGED
@@ -1,321 +1,476 @@
1
- require:
2
- - rubocop-performance
3
-
4
- AllCops:
5
- TargetRubyVersion: 2.5
6
- Exclude:
7
- - bin/**/*
8
- - exe/**/*
9
- - benchmark/**/*
10
- - script/**/*
11
- - vendor/**/*
12
- - tmp/**/*
13
-
14
- Gemspec/DateAssignment:
15
- Enabled: true
16
-
17
-
18
- Layout/BeginEndAlignment:
19
- Enabled: true
20
- Layout/EmptyComment:
21
- Enabled: false
22
- Layout/EmptyLinesAroundAttributeAccessor:
23
- Enabled: true
24
- Layout/EndAlignment:
25
- Severity: error
26
- Layout/FirstArrayElementIndentation:
27
- EnforcedStyle: consistent
28
- Layout/FirstHashElementIndentation:
29
- EnforcedStyle: consistent
30
- Layout/HashAlignment:
31
- EnforcedHashRocketStyle: table
32
- Layout/IndentationWidth:
33
- Severity: error
34
- Layout/LineLength:
35
- Max: 100
36
- Severity: warning
37
- Layout/MultilineMethodCallIndentation:
38
- EnforcedStyle: indented
39
- Layout/MultilineOperationIndentation:
40
- EnforcedStyle: indented
41
- Layout/SpaceAroundMethodCallOperator:
42
- Enabled: true
43
- Layout/SpaceBeforeBrackets:
44
- Enabled: true
45
- Layout/SpaceInsideHashLiteralBraces:
46
- Enabled: true
47
-
48
-
49
- Lint/AmbiguousAssignment:
50
- Enabled: true
51
- Lint/BinaryOperatorWithIdenticalOperands:
52
- Enabled: true
53
- Lint/ConstantDefinitionInBlock:
54
- Enabled: true
55
- Lint/DeprecatedConstants:
56
- Enabled: true
57
- Lint/DeprecatedOpenSSLConstant:
58
- Enabled: true
59
- Lint/DuplicateBranch:
60
- Enabled: true
61
- Lint/DuplicateElsifCondition:
62
- Enabled: true
63
- Lint/DuplicateRegexpCharacterClassElement:
64
- Enabled: true
65
- Lint/DuplicateRequire:
66
- Enabled: true
67
- Lint/DuplicateRescueException:
68
- Enabled: true
69
- Lint/EmptyBlock:
70
- Enabled: true
71
- Lint/EmptyClass:
72
- Enabled: true
73
- Lint/EmptyConditionalBody:
74
- Enabled: true
75
- Lint/EmptyFile:
76
- Enabled: true
77
- Lint/FloatComparison:
78
- Enabled: true
79
- Lint/HashCompareByIdentity:
80
- Enabled: true
81
- Lint/IdentityComparison:
82
- Enabled: true
83
- Lint/LambdaWithoutLiteralBlock:
84
- Enabled: true
85
- Lint/MissingSuper:
86
- Enabled: false
87
- Lint/MixedRegexpCaptureTypes:
88
- Enabled: false
89
- Lint/NestedPercentLiteral:
90
- Enabled: true
91
- Lint/NoReturnInBeginEndBlocks:
92
- Enabled: true
93
- Lint/NumberedParameterAssignment:
94
- Enabled: true
95
- Lint/OrAssignmentToConstant:
96
- Enabled: true
97
- Lint/OutOfRangeRegexpRef:
98
- Enabled: true
99
- Lint/RaiseException:
100
- Enabled: true
101
- Lint/RedundantDirGlobSort:
102
- Enabled: true
103
- Lint/RedundantSafeNavigation:
104
- Enabled: true
105
- Lint/SelfAssignment:
106
- Enabled: true
107
- Lint/StructNewOverride:
108
- Enabled: true
109
- Lint/SymbolConversion:
110
- Enabled: true
111
- Lint/ToEnumArguments:
112
- Enabled: false
113
- Lint/TopLevelReturnWithArgument:
114
- Enabled: true
115
- Lint/TrailingCommaInAttributeDeclaration:
116
- Enabled: true
117
- Lint/TripleQuotes:
118
- Enabled: true
119
- Lint/UnexpectedBlockArity:
120
- Enabled: true
121
- Lint/UnmodifiedReduceAccumulator:
122
- Enabled: true
123
- Lint/UnreachableCode:
124
- Severity: error
125
- Lint/UnreachableLoop:
126
- Enabled: true
127
- Lint/UselessMethodDefinition:
128
- Enabled: true
129
- Lint/UselessTimes:
130
- Enabled: true
131
- Lint/Void:
132
- Enabled: true
133
-
134
-
135
- Metrics/AbcSize:
136
- Max: 21
137
- Metrics/BlockLength:
138
- Exclude:
139
- - !ruby/regexp /^spec/
140
- Metrics/ClassLength:
141
- Max: 240
142
- Metrics/MethodLength:
143
- CountComments: false
144
- Max: 20
145
- Severity: error
146
- Metrics/ModuleLength:
147
- Max: 240
148
- Metrics/ParameterLists:
149
- Max: 4
150
- Metrics/PerceivedComplexity:
151
- Max: 8
152
-
153
-
154
- Naming/FileName:
155
- Enabled: false
156
- Naming/MemoizedInstanceVariableName:
157
- EnforcedStyleForLeadingUnderscores: optional
158
-
159
-
160
- Performance/AncestorsInclude:
161
- Enabled: false
162
- Performance/ArraySemiInfiniteRangeSlice:
163
- Enabled: true
164
- Performance/BigDecimalWithNumericArgument:
165
- Enabled: true
166
- Performance/BlockGivenWithExplicitBlock:
167
- Enabled: true
168
- Performance/ChainArrayAllocation:
169
- Enabled: true
170
- Performance/CollectionLiteralInLoop:
171
- Enabled: true
172
- Performance/ConstantRegexp:
173
- Enabled: true
174
- Performance/MethodObjectAsBlock:
175
- Enabled: true
176
- Performance/RedundantSortBlock:
177
- Enabled: true
178
- Performance/RedundantStringChars:
179
- Enabled: true
180
- Performance/ReverseFirst:
181
- Enabled: true
182
- Performance/SortReverse:
183
- Enabled: false
184
- Performance/Squeeze:
185
- Enabled: true
186
- Performance/StringInclude:
187
- Enabled: true
188
- Performance/Sum:
189
- Enabled: true
190
-
191
-
192
- Style/AccessModifierDeclarations:
193
- Enabled: false
194
- Style/AccessorGrouping:
195
- Enabled: true
196
- Style/Alias:
197
- EnforcedStyle: prefer_alias_method
198
- Style/AndOr:
199
- Severity: error
200
- Style/ArgumentsForwarding:
201
- Enabled: false
202
- Style/ArrayCoercion:
203
- Enabled: true
204
- Style/BisectedAttrAccessor:
205
- Enabled: true
206
- Style/CaseLikeIf:
207
- Enabled: true
208
- Style/StringChars:
209
- Enabled: true
210
- Style/ClassAndModuleChildren:
211
- Enabled: true
212
- Style/ClassEqualityComparison:
213
- Enabled: true
214
- Style/CollectionCompact:
215
- Enabled: true
216
- Style/CombinableLoops:
217
- Enabled: true
218
- Style/DocumentDynamicEvalDefinition:
219
- Enabled: true
220
- Style/Documentation:
221
- Enabled: false
222
- Style/DoubleNegation:
223
- Enabled: false
224
- Style/EndlessMethod:
225
- Enabled: true
226
- Style/ExplicitBlockArgument:
227
- Enabled: false
228
- Style/ExponentialNotation:
229
- Enabled: true
230
- Style/FormatStringToken:
231
- Enabled: true
232
- Style/FrozenStringLiteralComment:
233
- EnforcedStyle: always
234
- Style/GlobalStdStream:
235
- Enabled: true
236
- Style/GuardClause:
237
- Enabled: false
238
- Style/HashAsLastArrayItem:
239
- Enabled: true
240
- Style/HashConversion:
241
- Enabled: true
242
- Style/HashEachMethods:
243
- Enabled: true
244
- Style/HashExcept:
245
- Enabled: true
246
- Style/HashLikeCase:
247
- Enabled: true
248
- Style/HashSyntax:
249
- EnforcedStyle: hash_rockets
250
- Severity: error
251
- Style/HashTransformKeys:
252
- Enabled: false
253
- Style/HashTransformValues:
254
- Enabled: true
255
- Style/IfWithBooleanLiteralBranches:
256
- Enabled: true
257
- Style/KeywordParametersOrder:
258
- Enabled: true
259
- Style/MixinUsage:
260
- Enabled: true
261
- Style/ModuleFunction:
262
- Enabled: false
263
- Style/MultilineTernaryOperator:
264
- Severity: error
265
- Style/NegatedIfElseCondition:
266
- Enabled: true
267
- Style/NilLambda:
268
- Enabled: true
269
- Style/OptionalBooleanParameter:
270
- Enabled: true
271
- Style/PercentLiteralDelimiters:
272
- PreferredDelimiters:
273
- "%q": "{}"
274
- "%Q": "{}"
275
- "%r": "!!"
276
- "%s": "()"
277
- "%w": "()"
278
- "%W": "()"
279
- "%x": "()"
280
- Style/RedundantArgument:
281
- Enabled: true
282
- Style/RedundantAssignment:
283
- Enabled: true
284
- Style/RedundantFetchBlock:
285
- Enabled: false
286
- Style/RedundantFileExtensionInRequire:
287
- Enabled: true
288
- Style/RedundantRegexpCharacterClass:
289
- Enabled: true
290
- Style/RedundantRegexpEscape:
291
- Enabled: true
292
- Style/RedundantSelfAssignment:
293
- Enabled: true
294
- Style/RegexpLiteral:
295
- EnforcedStyle: percent_r
296
- Style/RescueModifier:
297
- Enabled: false
298
- Style/SafeNavigation:
299
- Enabled: true
300
- Style/SignalException:
301
- EnforcedStyle: only_raise
302
- Style/SingleArgumentDig:
303
- Enabled: true
304
- Style/SlicingWithRange:
305
- Enabled: false
306
- Style/SoleNestedConditional:
307
- Enabled: true
308
- Style/StringConcatenation:
309
- Enabled: true
310
- Style/StringLiterals:
311
- EnforcedStyle: double_quotes
312
- Style/StringLiteralsInInterpolation:
313
- EnforcedStyle: double_quotes
314
- Style/SwapValues:
315
- Enabled: true
316
- Style/SymbolArray:
317
- EnforcedStyle: brackets
318
- Style/TrailingCommaInArrayLiteral:
319
- EnforcedStyleForMultiline: consistent_comma
320
- Style/TrailingCommaInHashLiteral:
321
- 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.18.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.12.0"
27
- ```
28
- ```ruby
29
- # <plugin>.gemspec
30
-
31
- spec.add_development_dependency "rubocop-jekyll", "~> 0.12.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.12.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: 2021-09-16 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.18.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.18.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
@@ -64,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
64
65
  requirements:
65
66
  - - ">="
66
67
  - !ruby/object:Gem::Version
67
- version: 2.5.0
68
+ version: 2.7.0
68
69
  required_rubygems_version: !ruby/object:Gem::Requirement
69
70
  requirements:
70
71
  - - ">="
@@ -72,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
73
  version: '0'
73
74
  requirements: []
74
75
  rubygems_version: 3.1.6
75
- signing_key:
76
+ signing_key:
76
77
  specification_version: 4
77
78
  summary: Code style check for Jekyll and Jekyll plugins
78
79
  test_files: []