rubocop-jekyll 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +476 -321
- data/README.md +69 -67
- data/lib/rubocop/cop/jekyll/no_p_allowed.rb +22 -22
- data/lib/rubocop/cop/jekyll/no_puts_allowed.rb +22 -22
- data/lib/rubocop-jekyll/version.rb +7 -0
- data/lib/rubocop-jekyll.rb +4 -4
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a628f39b9d96a1e22bc4ea64d8caede4179d25d248bcddceca19481f4068165
|
4
|
+
data.tar.gz: 64770e1bbce36d935e640ce70b9d3238a4da7e29eba9ce860a86bd7c1d5c480b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
6
|
-
Exclude:
|
7
|
-
- bin/**/*
|
8
|
-
- exe/**/*
|
9
|
-
- benchmark/**/*
|
10
|
-
- script/**/*
|
11
|
-
- vendor/**/*
|
12
|
-
- tmp/**/*
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
Layout/
|
38
|
-
|
39
|
-
Layout/
|
40
|
-
|
41
|
-
Layout/
|
42
|
-
Enabled: true
|
43
|
-
Layout/
|
44
|
-
Enabled: true
|
45
|
-
Layout/
|
46
|
-
Enabled: true
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
Enabled:
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
Enabled:
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
Enabled: true
|
166
|
-
|
167
|
-
Enabled: true
|
168
|
-
|
169
|
-
Enabled: true
|
170
|
-
|
171
|
-
Enabled: true
|
172
|
-
|
173
|
-
Enabled: true
|
174
|
-
|
175
|
-
Enabled: true
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
Enabled:
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
Enabled: true
|
257
|
-
|
258
|
-
Enabled: true
|
259
|
-
|
260
|
-
Enabled: true
|
261
|
-
|
262
|
-
Enabled:
|
263
|
-
|
264
|
-
|
265
|
-
Style/
|
266
|
-
Enabled:
|
267
|
-
Style/
|
268
|
-
Enabled: true
|
269
|
-
Style/
|
270
|
-
|
271
|
-
Style/
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
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.
|
8
|
-
|
9
|
-
|
10
|
-
[
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
```
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
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
|
data/lib/rubocop-jekyll.rb
CHANGED
@@ -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.
|
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:
|
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.
|
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.
|
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.
|
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: []
|