rubocop-jekyll 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +123 -4
  3. data/README.md +3 -3
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4be4de0eb7599eee91a16c6e342549e5f28f140824f62d038a19c9f9250e673b
4
- data.tar.gz: 19a2f98215eb43c87236722b1c19203f022ae4373b26b28d5a2b69f7e5aa1503
3
+ metadata.gz: 2521bf65495b49b7f0aaa94f185e02daeb60a2406994a34afad074160493e86d
4
+ data.tar.gz: 998c0f5be8d0ae47301839985009b71bf5182a67c35ca328974dbdc48694b462
5
5
  SHA512:
6
- metadata.gz: 612dda4b4a8c80a0cd4343bb3c433cbd6a652ec1f65f7a7bfd501985ed8d16ed65a980380f492ddf57b2fa81d03a8f75c592ffcd7df578a14fd03eccd490d94e
7
- data.tar.gz: 4cf450679ed5189de8840216dee1a4c48495c9e7fec8075438008ee60896929fd4bc9de17502ae6c12f2c3e350bdc7368f4a4d73c525a52e093fd81a4f874f84
6
+ metadata.gz: 34c33fa581c36b9fbca891dcd45cc74096c7f5f7b60e42203c934750eb57c12302f0933f9a72ed452878bb9ada873feb862f3936f8c8093144c9456188104dca
7
+ data.tar.gz: 6d1807afefbd211261ce302235c0831dc7ec4e609895cb6de825844da8aa0cfaf98a24a1bd4c0aeb9d11fa229a43d1adcfd8719c7a380c9bcad9060ce07c45a6
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ require:
2
2
  - rubocop-performance
3
3
 
4
4
  AllCops:
5
- TargetRubyVersion: 2.5
5
+ TargetRubyVersion: 2.7
6
6
  Exclude:
7
7
  - bin/**/*
8
8
  - exe/**/*
@@ -11,8 +11,13 @@ AllCops:
11
11
  - vendor/**/*
12
12
  - tmp/**/*
13
13
 
14
- Gemspec/DateAssignment:
14
+
15
+ Gemspec/DeprecatedAttributeAssignment:
15
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 :|
16
21
 
17
22
 
18
23
  Layout/BeginEndAlignment:
@@ -31,6 +36,12 @@ Layout/HashAlignment:
31
36
  EnforcedHashRocketStyle: table
32
37
  Layout/IndentationWidth:
33
38
  Severity: error
39
+ Layout/LineContinuationLeadingSpace:
40
+ Enabled: true
41
+ Layout/LineContinuationSpacing:
42
+ Enabled: true
43
+ Layout/LineEndStringConcatenationIndentation:
44
+ Enabled: true
34
45
  Layout/LineLength:
35
46
  Max: 100
36
47
  Severity: warning
@@ -48,10 +59,16 @@ Layout/SpaceInsideHashLiteralBraces:
48
59
 
49
60
  Lint/AmbiguousAssignment:
50
61
  Enabled: true
62
+ Lint/AmbiguousOperatorPrecedence:
63
+ Enabled: true
64
+ Lint/AmbiguousRange:
65
+ Enabled: true
51
66
  Lint/BinaryOperatorWithIdenticalOperands:
52
67
  Enabled: true
53
68
  Lint/ConstantDefinitionInBlock:
54
69
  Enabled: true
70
+ Lint/ConstantOverwrittenInRescue:
71
+ Enabled: true
55
72
  Lint/DeprecatedConstants:
56
73
  Enabled: true
57
74
  Lint/DeprecatedOpenSSLConstant:
@@ -60,6 +77,8 @@ Lint/DuplicateBranch:
60
77
  Enabled: true
61
78
  Lint/DuplicateElsifCondition:
62
79
  Enabled: true
80
+ Lint/DuplicateMagicComment:
81
+ Enabled: true
63
82
  Lint/DuplicateRegexpCharacterClassElement:
64
83
  Enabled: true
65
84
  Lint/DuplicateRequire:
@@ -74,12 +93,16 @@ Lint/EmptyConditionalBody:
74
93
  Enabled: true
75
94
  Lint/EmptyFile:
76
95
  Enabled: true
96
+ Lint/EmptyInPattern:
97
+ Enabled: true
77
98
  Lint/FloatComparison:
78
99
  Enabled: true
79
100
  Lint/HashCompareByIdentity:
80
101
  Enabled: true
81
102
  Lint/IdentityComparison:
82
103
  Enabled: true
104
+ Lint/IncompatibleIoSelectWithFiberScheduler:
105
+ Enabled: true
83
106
  Lint/LambdaWithoutLiteralBlock:
84
107
  Enabled: true
85
108
  Lint/MissingSuper:
@@ -90,6 +113,8 @@ Lint/NestedPercentLiteral:
90
113
  Enabled: true
91
114
  Lint/NoReturnInBeginEndBlocks:
92
115
  Enabled: true
116
+ Lint/NonAtomicFileOperation:
117
+ Enabled: true
93
118
  Lint/NumberedParameterAssignment:
94
119
  Enabled: true
95
120
  Lint/OrAssignmentToConstant:
@@ -102,6 +127,12 @@ Lint/RedundantDirGlobSort:
102
127
  Enabled: true
103
128
  Lint/RedundantSafeNavigation:
104
129
  Enabled: true
130
+ Lint/RefinementImportMethods:
131
+ Enabled: true
132
+ Lint/RequireRangeParentheses:
133
+ Enabled: true
134
+ Lint/RequireRelativeSelfPath:
135
+ Enabled: true
105
136
  Lint/SelfAssignment:
106
137
  Enabled: true
107
138
  Lint/StructNewOverride:
@@ -126,6 +157,10 @@ Lint/UnreachableLoop:
126
157
  Enabled: true
127
158
  Lint/UselessMethodDefinition:
128
159
  Enabled: true
160
+ Lint/UselessRescue:
161
+ Enabled: true
162
+ Lint/UselessRuby2Keywords:
163
+ Enabled: true
129
164
  Lint/UselessTimes:
130
165
  Enabled: true
131
166
  Lint/Void:
@@ -151,8 +186,12 @@ Metrics/PerceivedComplexity:
151
186
  Max: 8
152
187
 
153
188
 
189
+ Naming/BlockForwarding:
190
+ Enabled: true
154
191
  Naming/FileName:
155
192
  Enabled: false
193
+ Naming/HeredocDelimiterNaming:
194
+ Enabled: true
156
195
  Naming/MemoizedInstanceVariableName:
157
196
  EnforcedStyleForLeadingUnderscores: optional
158
197
 
@@ -169,12 +208,20 @@ Performance/ChainArrayAllocation:
169
208
  Enabled: true
170
209
  Performance/CollectionLiteralInLoop:
171
210
  Enabled: true
211
+ Performance/ConcurrentMonotonicTime:
212
+ Enabled: true
172
213
  Performance/ConstantRegexp:
173
214
  Enabled: true
215
+ Performance/MapCompact:
216
+ Enabled: true
174
217
  Performance/MethodObjectAsBlock:
175
218
  Enabled: true
219
+ Performance/RedundantEqualityComparisonBlock:
220
+ Enabled: false
176
221
  Performance/RedundantSortBlock:
177
222
  Enabled: true
223
+ Performance/RedundantSplitRegexpArgument:
224
+ Enabled: true
178
225
  Performance/RedundantStringChars:
179
226
  Enabled: true
180
227
  Performance/ReverseFirst:
@@ -183,12 +230,24 @@ Performance/SortReverse:
183
230
  Enabled: false
184
231
  Performance/Squeeze:
185
232
  Enabled: true
233
+ Performance/StringIdentifierArgument:
234
+ Enabled: true
186
235
  Performance/StringInclude:
187
236
  Enabled: true
188
237
  Performance/Sum:
189
238
  Enabled: true
190
239
 
191
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
+
192
251
  Style/AccessModifierDeclarations:
193
252
  Enabled: false
194
253
  Style/AccessorGrouping:
@@ -201,12 +260,12 @@ Style/ArgumentsForwarding:
201
260
  Enabled: false
202
261
  Style/ArrayCoercion:
203
262
  Enabled: true
263
+ Style/ArrayIntersect:
264
+ Enabled: true
204
265
  Style/BisectedAttrAccessor:
205
266
  Enabled: true
206
267
  Style/CaseLikeIf:
207
268
  Enabled: true
208
- Style/StringChars:
209
- Enabled: true
210
269
  Style/ClassAndModuleChildren:
211
270
  Enabled: true
212
271
  Style/ClassEqualityComparison:
@@ -215,18 +274,32 @@ Style/CollectionCompact:
215
274
  Enabled: true
216
275
  Style/CombinableLoops:
217
276
  Enabled: true
277
+ Style/ComparableClamp:
278
+ Enabled: true
279
+ Style/ConcatArrayLiterals:
280
+ Enabled: true
218
281
  Style/DocumentDynamicEvalDefinition:
219
282
  Enabled: true
220
283
  Style/Documentation:
221
284
  Enabled: false
222
285
  Style/DoubleNegation:
223
286
  Enabled: false
287
+ Style/EmptyHeredoc:
288
+ Enabled: true
224
289
  Style/EndlessMethod:
225
290
  Enabled: true
291
+ Style/EnvHome:
292
+ Enabled: true
226
293
  Style/ExplicitBlockArgument:
227
294
  Enabled: false
228
295
  Style/ExponentialNotation:
229
296
  Enabled: true
297
+ Style/FetchEnvVar:
298
+ Enabled: true
299
+ Style/FileRead:
300
+ Enabled: true
301
+ Style/FileWrite:
302
+ Enabled: true
230
303
  Style/FormatStringToken:
231
304
  Enabled: true
232
305
  Style/FrozenStringLiteralComment:
@@ -254,18 +327,44 @@ Style/HashTransformValues:
254
327
  Enabled: true
255
328
  Style/IfWithBooleanLiteralBranches:
256
329
  Enabled: true
330
+ Style/InPatternThen:
331
+ Enabled: true
257
332
  Style/KeywordParametersOrder:
258
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
259
344
  Style/MixinUsage:
260
345
  Enabled: true
261
346
  Style/ModuleFunction:
262
347
  Enabled: false
348
+ Style/MultilineInPatternThen:
349
+ Enabled: true
263
350
  Style/MultilineTernaryOperator:
264
351
  Severity: error
265
352
  Style/NegatedIfElseCondition:
266
353
  Enabled: true
354
+ Style/NestedFileDirname:
355
+ Enabled: true
267
356
  Style/NilLambda:
268
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
269
368
  Style/OptionalBooleanParameter:
270
369
  Enabled: true
271
370
  Style/PercentLiteralDelimiters:
@@ -277,26 +376,44 @@ Style/PercentLiteralDelimiters:
277
376
  "%w": "()"
278
377
  "%W": "()"
279
378
  "%x": "()"
379
+ Style/QuotedSymbols:
380
+ Enabled: true
280
381
  Style/RedundantArgument:
281
382
  Enabled: true
282
383
  Style/RedundantAssignment:
283
384
  Enabled: true
385
+ Style/RedundantConstantBase:
386
+ Enabled: true
387
+ Style/RedundantDoubleSplatHashBraces:
388
+ Enabled: true
389
+ Style/RedundantEach:
390
+ Enabled: true
284
391
  Style/RedundantFetchBlock:
285
392
  Enabled: false
286
393
  Style/RedundantFileExtensionInRequire:
287
394
  Enabled: true
395
+ Style/RedundantHeredocDelimiterQuotes:
396
+ Enabled: true
397
+ Style/RedundantInitialize:
398
+ Enabled: true
288
399
  Style/RedundantRegexpCharacterClass:
289
400
  Enabled: true
290
401
  Style/RedundantRegexpEscape:
291
402
  Enabled: true
292
403
  Style/RedundantSelfAssignment:
293
404
  Enabled: true
405
+ Style/RedundantSelfAssignmentBranch:
406
+ Enabled: true
407
+ Style/RedundantStringEscape:
408
+ Enabled: true
294
409
  Style/RegexpLiteral:
295
410
  EnforcedStyle: percent_r
296
411
  Style/RescueModifier:
297
412
  Enabled: false
298
413
  Style/SafeNavigation:
299
414
  Enabled: true
415
+ Style/SelectByRegexp:
416
+ Enabled: true
300
417
  Style/SignalException:
301
418
  EnforcedStyle: only_raise
302
419
  Style/SingleArgumentDig:
@@ -305,6 +422,8 @@ Style/SlicingWithRange:
305
422
  Enabled: false
306
423
  Style/SoleNestedConditional:
307
424
  Enabled: true
425
+ Style/StringChars:
426
+ Enabled: true
308
427
  Style/StringConcatenation:
309
428
  Enabled: true
310
429
  Style/StringLiterals:
data/README.md CHANGED
@@ -4,7 +4,7 @@ A RuboCop extension to enforce common code style in Jekyll and Jekyll plugins.
4
4
 
5
5
 
6
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]
7
+ [![RuboCop Support](https://img.shields.io/badge/RuboCop%20Support-1.45.x-green.svg)][rubocop-releases]
8
8
 
9
9
  [rubygems]: https://rubygems.org/gems/rubocop-jekyll
10
10
  [rubocop-releases]: https://github.com/rubocop-hq/rubocop/releases
@@ -23,12 +23,12 @@ or if you prefer Bundler, add it to your `Gemfile` or `gemspec`
23
23
  ```ruby
24
24
  # Gemfile
25
25
 
26
- gem "rubocop-jekyll", "~> 0.12.0"
26
+ gem "rubocop-jekyll", "~> 0.13.0"
27
27
  ```
28
28
  ```ruby
29
29
  # <plugin>.gemspec
30
30
 
31
- spec.add_development_dependency "rubocop-jekyll", "~> 0.12.0"
31
+ spec.add_development_dependency "rubocop-jekyll", "~> 0.13.0"
32
32
  ```
33
33
  and run `bundle install`
34
34
 
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.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashwin Maroli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-16 00:00:00.000000000 Z
11
+ date: 2023-02-17 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.45.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.45.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -64,14 +64,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: 2.5.0
67
+ version: 2.7.0
68
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.1.6
74
+ rubygems_version: 3.2.28
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Code style check for Jekyll and Jekyll plugins