rubocop-jekyll 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +341 -16
  3. data/README.md +3 -3
  4. data/lib/rubocop-jekyll.rb +1 -1
  5. metadata +11 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 671abafef59764d09fdcafa923d650a712f85dacd13b61058a3f3c9d8818caad
4
- data.tar.gz: 75f28fd0634a7028b10ad4510d8665e44c04f19bbd63b641b40d30f67a7fcc67
3
+ metadata.gz: 2521bf65495b49b7f0aaa94f185e02daeb60a2406994a34afad074160493e86d
4
+ data.tar.gz: 998c0f5be8d0ae47301839985009b71bf5182a67c35ca328974dbdc48694b462
5
5
  SHA512:
6
- metadata.gz: d86ad42e491ab6245a0c00a43eabebad403fbdb9f4607ddee72c43fc98e8631e2d175f0d359d84ce585419efe164781976f64aec441d3b80eb01a6b060ece01f
7
- data.tar.gz: a959af248765b71f794c4bb3088a3abdf21fc1653d2f2c1d510a5edc8315caef08ddd4d778553e73d49a40fac742e8d0a8e57a2a3ff0787bc435f00448301612
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.3
5
+ TargetRubyVersion: 2.7
6
6
  Exclude:
7
7
  - bin/**/*
8
8
  - exe/**/*
@@ -11,29 +11,160 @@ AllCops:
11
11
  - vendor/**/*
12
12
  - tmp/**/*
13
13
 
14
- Layout/LineLength:
15
- Max: 100
16
- Severity: warning
17
- Layout/HashAlignment:
18
- EnforcedHashRocketStyle: table
19
- Layout/IndentationWidth:
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:
20
30
  Severity: error
21
31
  Layout/FirstArrayElementIndentation:
22
32
  EnforcedStyle: consistent
23
33
  Layout/FirstHashElementIndentation:
24
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
25
48
  Layout/MultilineMethodCallIndentation:
26
49
  EnforcedStyle: indented
27
50
  Layout/MultilineOperationIndentation:
28
51
  EnforcedStyle: indented
29
- Layout/EmptyComment:
30
- Enabled: false
31
- Layout/EndAlignment:
32
- Severity: error
52
+ Layout/SpaceAroundMethodCallOperator:
53
+ Enabled: true
54
+ Layout/SpaceBeforeBrackets:
55
+ Enabled: true
56
+ Layout/SpaceInsideHashLiteralBraces:
57
+ Enabled: true
33
58
 
34
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
35
154
  Lint/UnreachableCode:
36
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
37
168
 
38
169
 
39
170
  Metrics/AbcSize:
@@ -55,39 +186,187 @@ Metrics/PerceivedComplexity:
55
186
  Max: 8
56
187
 
57
188
 
189
+ Naming/BlockForwarding:
190
+ Enabled: true
58
191
  Naming/FileName:
59
192
  Enabled: false
193
+ Naming/HeredocDelimiterNaming:
194
+ Enabled: true
60
195
  Naming/MemoizedInstanceVariableName:
61
196
  EnforcedStyleForLeadingUnderscores: optional
62
197
 
63
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
+
64
251
  Style/AccessModifierDeclarations:
65
252
  Enabled: false
253
+ Style/AccessorGrouping:
254
+ Enabled: true
66
255
  Style/Alias:
67
256
  EnforcedStyle: prefer_alias_method
68
257
  Style/AndOr:
69
258
  Severity: error
70
- Style/FrozenStringLiteralComment:
71
- EnforcedStyle: always
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
72
283
  Style/Documentation:
73
284
  Enabled: false
74
285
  Style/DoubleNegation:
75
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
76
309
  Style/GuardClause:
77
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
78
321
  Style/HashSyntax:
79
322
  EnforcedStyle: hash_rockets
80
323
  Severity: error
81
- Style/HashEachMethods:
82
- Enabled: true
83
324
  Style/HashTransformKeys:
84
- Enabled: true
325
+ Enabled: false
85
326
  Style/HashTransformValues:
86
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
87
346
  Style/ModuleFunction:
88
347
  Enabled: false
348
+ Style/MultilineInPatternThen:
349
+ Enabled: true
89
350
  Style/MultilineTernaryOperator:
90
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
91
370
  Style/PercentLiteralDelimiters:
92
371
  PreferredDelimiters:
93
372
  "%q": "{}"
@@ -97,16 +376,62 @@ Style/PercentLiteralDelimiters:
97
376
  "%w": "()"
98
377
  "%W": "()"
99
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
100
409
  Style/RegexpLiteral:
101
410
  EnforcedStyle: percent_r
102
411
  Style/RescueModifier:
103
412
  Enabled: false
413
+ Style/SafeNavigation:
414
+ Enabled: true
415
+ Style/SelectByRegexp:
416
+ Enabled: true
104
417
  Style/SignalException:
105
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
106
429
  Style/StringLiterals:
107
430
  EnforcedStyle: double_quotes
108
431
  Style/StringLiteralsInInterpolation:
109
432
  EnforcedStyle: double_quotes
433
+ Style/SwapValues:
434
+ Enabled: true
110
435
  Style/SymbolArray:
111
436
  EnforcedStyle: brackets
112
437
  Style/TrailingCommaInArrayLiteral:
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-0.68.0%20--%200.80.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.11.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.11.0"
31
+ spec.add_development_dependency "rubocop-jekyll", "~> 0.13.0"
32
32
  ```
33
33
  and run `bundle install`
34
34
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  path_to_cops = File.join(File.expand_path("rubocop", __dir__), "cop", "**", "*.rb")
4
- Dir[path_to_cops].each { |cop| require cop }
4
+ Dir[path_to_cops].sort.each { |cop| require cop }
metadata CHANGED
@@ -1,35 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.13.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: 2020-03-19 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 0.68.0
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: 0.81.0
19
+ version: 1.45.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 0.68.0
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: 0.81.0
26
+ version: 1.45.0
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: rubocop-performance
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -62,7 +56,7 @@ homepage: https://github.com/jekyll/rubocop-jekyll
62
56
  licenses:
63
57
  - MIT
64
58
  metadata: {}
65
- post_install_message:
59
+ post_install_message:
66
60
  rdoc_options: []
67
61
  require_paths:
68
62
  - lib
@@ -70,15 +64,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
64
  requirements:
71
65
  - - ">="
72
66
  - !ruby/object:Gem::Version
73
- version: 2.3.0
67
+ version: 2.7.0
74
68
  required_rubygems_version: !ruby/object:Gem::Requirement
75
69
  requirements:
76
70
  - - ">="
77
71
  - !ruby/object:Gem::Version
78
72
  version: '0'
79
73
  requirements: []
80
- rubygems_version: 3.0.6
81
- signing_key:
74
+ rubygems_version: 3.2.28
75
+ signing_key:
82
76
  specification_version: 4
83
77
  summary: Code style check for Jekyll and Jekyll plugins
84
78
  test_files: []