gscan 4.28.0 → 4.29.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.
- package/bin/cli.js +8 -3
- package/lib/checks/050-koenig-css-classes.js +1 -1
- package/lib/specs/canary.js +204 -166
- package/lib/specs/v1.js +20 -20
- package/lib/specs/v2.js +71 -62
- package/lib/specs/v3.js +2 -1
- package/lib/specs/v4.js +6 -5
- package/lib/utils/package-json.js +2 -11
- package/package.json +2 -2
package/lib/specs/v1.js
CHANGED
|
@@ -106,7 +106,7 @@ rules = {
|
|
|
106
106
|
},
|
|
107
107
|
'GS001-DEPR-COV': {
|
|
108
108
|
level: 'error',
|
|
109
|
-
rule: 'Replace
|
|
109
|
+
rule: 'Replace <code>{{cover}}</code> with <code>{{cover_image}}</code>',
|
|
110
110
|
fatal: true,
|
|
111
111
|
details: oneLineTrim`The <code>cover</code> attribute was replaced with <code>cover_image</code>. To render the cover image in author context, you need to use<br><br>
|
|
112
112
|
<code>{{#author}}<br> {{cover_image}}<br>{{/author}}</code><br><br>
|
|
@@ -117,7 +117,7 @@ rules = {
|
|
|
117
117
|
},
|
|
118
118
|
'GS001-DEPR-AIMG': {
|
|
119
119
|
level: 'error',
|
|
120
|
-
rule: 'Replace
|
|
120
|
+
rule: 'Replace <code>{{author.image}}</code> with <code>{{author.profile_image}}</code>',
|
|
121
121
|
fatal: true,
|
|
122
122
|
details: oneLineTrim`The <code>image</code> attribute in author context was replaced with <code>profile_image</code>.<br>
|
|
123
123
|
Instead of <code>{{author.image}}</code> you need to use <code>{{author.profile_image}}</code>.<br>
|
|
@@ -127,7 +127,7 @@ rules = {
|
|
|
127
127
|
},
|
|
128
128
|
'GS001-DEPR-PIMG': {
|
|
129
129
|
level: 'error',
|
|
130
|
-
rule: 'Replace
|
|
130
|
+
rule: 'Replace <code>{{post.image}}</code> with <code>{{post.feature_image}}</code>',
|
|
131
131
|
fatal: true,
|
|
132
132
|
details: oneLineTrim`The <code>image</code> attribute in post context was replaced with <code>feature_image</code>.<br>
|
|
133
133
|
Instead of <code>{{post.image}}</code> you need to use <code>{{post.feature_image}}</code>.<br>
|
|
@@ -137,7 +137,7 @@ rules = {
|
|
|
137
137
|
},
|
|
138
138
|
'GS001-DEPR-BC': {
|
|
139
139
|
level: 'error',
|
|
140
|
-
rule: 'Replace
|
|
140
|
+
rule: 'Replace <code>{{@blog.cover}}</code> with <code>{{@site.cover_image}}</code>',
|
|
141
141
|
fatal: true,
|
|
142
142
|
details: oneLineTrim`The <code>cover</code> attribute was replaced with <code>cover_image</code>.<br>
|
|
143
143
|
Instead of <code>{{@blog.cover}}</code> you need to use <code>{{@site.cover_image}}</code>.<br>
|
|
@@ -147,7 +147,7 @@ rules = {
|
|
|
147
147
|
},
|
|
148
148
|
'GS001-DEPR-AC': {
|
|
149
149
|
level: 'error',
|
|
150
|
-
rule: 'Replace
|
|
150
|
+
rule: 'Replace <code>{{author.cover}}</code> with <code>{{author.cover_image}}</code>',
|
|
151
151
|
fatal: true,
|
|
152
152
|
details: oneLineTrim`The <code>cover</code> attribute was replaced with <code>cover_image</code>.<br>
|
|
153
153
|
Instead of <code>{{author.cover}}</code> you need to use <code>{{author.cover_image}}</code>.<br>
|
|
@@ -157,7 +157,7 @@ rules = {
|
|
|
157
157
|
},
|
|
158
158
|
'GS001-DEPR-TIMG': {
|
|
159
159
|
level: 'error',
|
|
160
|
-
rule: 'Replace
|
|
160
|
+
rule: 'Replace <code>{{tag.image}}</code> with <code>{{tag.feature_image}}</code>',
|
|
161
161
|
fatal: true,
|
|
162
162
|
details: oneLineTrim`The <code>image</code> attribute in tag context was replaced with <code>feature_image</code>.<br>
|
|
163
163
|
Instead of <code>{{tag.image}}</code> you need to use <code>{{tag.feature_image}}</code>.<br>
|
|
@@ -167,7 +167,7 @@ rules = {
|
|
|
167
167
|
},
|
|
168
168
|
'GS001-DEPR-PAIMG': {
|
|
169
169
|
level: 'error',
|
|
170
|
-
rule: 'Replace
|
|
170
|
+
rule: 'Replace <code>{{post.author.image}}</code> with <code>{{post.author.feature_image}}</code>',
|
|
171
171
|
fatal: true,
|
|
172
172
|
details: oneLineTrim`The <code>image</code> attribute in author context was replaced with <code>feature_image</code>.<br>
|
|
173
173
|
Instead of <code>{{post.author.image}}</code> you need to use <code>{{post.author.feature_image}}</code>.<br>
|
|
@@ -177,7 +177,7 @@ rules = {
|
|
|
177
177
|
},
|
|
178
178
|
'GS001-DEPR-PAC': {
|
|
179
179
|
level: 'error',
|
|
180
|
-
rule: 'Replace
|
|
180
|
+
rule: 'Replace <code>{{post.author.cover}}</code> with <code>{{post.author.cover_image}}</code>',
|
|
181
181
|
fatal: true,
|
|
182
182
|
details: oneLineTrim`The <code>cover</code> attribute in author context was replaced with <code>cover_image</code>.<br>
|
|
183
183
|
Instead of <code>{{post.author.cover}}</code> you need to use <code>{{post.author.cover_image}}</code>.<br>
|
|
@@ -187,7 +187,7 @@ rules = {
|
|
|
187
187
|
},
|
|
188
188
|
'GS001-DEPR-PTIMG': {
|
|
189
189
|
level: 'error',
|
|
190
|
-
rule: 'Replace
|
|
190
|
+
rule: 'Replace <code>{{post.tags.[#].image}}</code> with <code>{{post.tags.[#].feature_image}}</code>',
|
|
191
191
|
fatal: true,
|
|
192
192
|
details: oneLineTrim`The <code>image</code> attribute in tag context was replaced with <code>feature_image</code>.<br>
|
|
193
193
|
Instead of <code>{{post.tags.[#].image}}</code> you need to use <code>{{post.tags.[#].feature_image}}</code>.<br>
|
|
@@ -197,7 +197,7 @@ rules = {
|
|
|
197
197
|
},
|
|
198
198
|
'GS001-DEPR-TSIMG': {
|
|
199
199
|
level: 'error',
|
|
200
|
-
rule: 'Replace
|
|
200
|
+
rule: 'Replace <code>{{tags.[#].image}}</code> with <code>{{tags.[#].feature_image}}</code>',
|
|
201
201
|
fatal: true,
|
|
202
202
|
details: oneLineTrim`The <code>image</code> attribute in tag context was replaced with <code>feature_image</code>.<br>
|
|
203
203
|
Instead of <code>{{tags.[#].image}}</code> you need to use <code>{{tags.[#].feature_image}}</code>.<br>
|
|
@@ -207,7 +207,7 @@ rules = {
|
|
|
207
207
|
},
|
|
208
208
|
'GS001-DEPR-CON-IMG': {
|
|
209
209
|
level: 'error',
|
|
210
|
-
rule: 'Replace
|
|
210
|
+
rule: 'Replace <code>{{#if image}}</code> with <code>{{#if feature_image}}</code>, or <code>' +
|
|
211
211
|
'{{#if profile_image}}</code>',
|
|
212
212
|
fatal: true,
|
|
213
213
|
details: oneLineTrim`The <code>image</code> attribute was replaced with <code>feature_image</code> and <code>profile_image</code>.<br>
|
|
@@ -229,7 +229,7 @@ rules = {
|
|
|
229
229
|
},
|
|
230
230
|
'GS001-DEPR-CON-COV': {
|
|
231
231
|
level: 'error',
|
|
232
|
-
rule: 'Replace
|
|
232
|
+
rule: 'Replace <code>{{#if cover}}</code> with <code>{{#if cover_image}}</code>',
|
|
233
233
|
fatal: true,
|
|
234
234
|
details: oneLineTrim`The <code>cover</code> attribute was replaced with <code>cover_image</code>. To check for the cover image in author context, you need to use<br><br>
|
|
235
235
|
<code>{{#if cover_image}}<br> {{cover_image}}<br>{{/if}}</code><br><br>
|
|
@@ -240,7 +240,7 @@ rules = {
|
|
|
240
240
|
},
|
|
241
241
|
'GS001-DEPR-CON-BC': {
|
|
242
242
|
level: 'error',
|
|
243
|
-
rule: 'Replace
|
|
243
|
+
rule: 'Replace <code>{{#if @blog.cover}}</code> with <code>{{#if @site.cover_image}}</code>',
|
|
244
244
|
fatal: true,
|
|
245
245
|
details: oneLineTrim`The <code>cover</code> attribute was replaced with <code>cover_image</code>.<br>
|
|
246
246
|
Instead of <code>{{#if @blog.cover}}</code> you need to use <code>{{#if @site.cover_image}}</code>.<br>
|
|
@@ -250,7 +250,7 @@ rules = {
|
|
|
250
250
|
},
|
|
251
251
|
'GS001-DEPR-CON-AC': {
|
|
252
252
|
level: 'error',
|
|
253
|
-
rule: 'Replace
|
|
253
|
+
rule: 'Replace <code>{{#if author.cover}}</code> with <code>{{#if author.cover_image}}</code>',
|
|
254
254
|
fatal: true,
|
|
255
255
|
details: oneLineTrim`The <code>cover</code> attribute was replaced with <code>cover_image</code>.<br>
|
|
256
256
|
Instead of <code>{{#if author.cover}}</code> you need to use <code>{{#if author.cover_image}}</code>.<br>
|
|
@@ -260,7 +260,7 @@ rules = {
|
|
|
260
260
|
},
|
|
261
261
|
'GS001-DEPR-CON-AIMG': {
|
|
262
262
|
level: 'error',
|
|
263
|
-
rule: 'Replace
|
|
263
|
+
rule: 'Replace <code>{{#if author.image}}</code> with <code>{{#if author.profile_image}}</code>',
|
|
264
264
|
fatal: true,
|
|
265
265
|
details: oneLineTrim`The <code>image</code> attribute in author context was replaced with <code>profile_image</code>.<br>
|
|
266
266
|
Instead of <code>{{#if author.image}}</code> you need to use <code>{{#if author.profile_image}}</code>.<br>
|
|
@@ -270,7 +270,7 @@ rules = {
|
|
|
270
270
|
},
|
|
271
271
|
'GS001-DEPR-CON-PAC': {
|
|
272
272
|
level: 'error',
|
|
273
|
-
rule: 'Replace
|
|
273
|
+
rule: 'Replace <code>{{#if post.author.cover}}</code> with <code>{{#if post.author.cover_image}}</code>',
|
|
274
274
|
fatal: true,
|
|
275
275
|
details: oneLineTrim`The <code>cover</code> attribute was replaced with <code>cover_image</code>.<br>
|
|
276
276
|
Instead of <code>{{#if post.author.cover}}</code> you need to use <code>{{#if post.author.cover_image}}</code>.<br>
|
|
@@ -280,7 +280,7 @@ rules = {
|
|
|
280
280
|
},
|
|
281
281
|
'GS001-DEPR-CON-PAIMG': {
|
|
282
282
|
level: 'error',
|
|
283
|
-
rule: 'Replace
|
|
283
|
+
rule: 'Replace <code>{{#if post.author.image}}</code> with <code>{{#if post.author.profile_image}}</code>',
|
|
284
284
|
fatal: true,
|
|
285
285
|
details: oneLineTrim`The <code>image</code> attribute in author context was replaced with <code>profile_image</code>.<br>
|
|
286
286
|
Instead of <code>{{#if post.author.image}}</code> you need to use <code>{{#if post.author.profile_image}}</code>.<br>
|
|
@@ -290,7 +290,7 @@ rules = {
|
|
|
290
290
|
},
|
|
291
291
|
'GS001-DEPR-CON-TIMG': {
|
|
292
292
|
level: 'error',
|
|
293
|
-
rule: 'Replace
|
|
293
|
+
rule: 'Replace <code>{{#if tag.image}}</code> with <code>{{#if tag.feature_image}}</code>',
|
|
294
294
|
fatal: true,
|
|
295
295
|
details: oneLineTrim`The <code>image</code> attribute in tag context was replaced with <code>feature_image</code>.<br>
|
|
296
296
|
Instead of <code>{{#if tag.image}}</code> you need to use <code>{{#if tag.feature_image}}</code>.<br>
|
|
@@ -300,7 +300,7 @@ rules = {
|
|
|
300
300
|
},
|
|
301
301
|
'GS001-DEPR-CON-PTIMG': {
|
|
302
302
|
level: 'error',
|
|
303
|
-
rule: 'Replace
|
|
303
|
+
rule: 'Replace <code>{{#if post.tags.[#].image}}</code> with <code>{{#if post.tags.[#].feature_image}}</code>',
|
|
304
304
|
fatal: true,
|
|
305
305
|
details: oneLineTrim`The <code>image</code> attribute in tag context was replaced with <code>feature_image</code>.<br>
|
|
306
306
|
Instead of <code>{{#if post.tags.[#].image}}</code> you need to use <code>{{#if post.tags.[#].feature_image}}</code>.<br>
|
|
@@ -310,7 +310,7 @@ rules = {
|
|
|
310
310
|
},
|
|
311
311
|
'GS001-DEPR-CON-TSIMG': {
|
|
312
312
|
level: 'error',
|
|
313
|
-
rule: 'Replace
|
|
313
|
+
rule: 'Replace <code>{{#if tags.[#].image}}</code> with <code>{{#if tags.[#].feature_image}}</code>',
|
|
314
314
|
fatal: true,
|
|
315
315
|
details: oneLineTrim`The <code>image</code> attribute in tag context was replaced with <code>feature_image</code>.<br>
|
|
316
316
|
Instead of <code>{{#if tags.[#].image}}</code> you need to use <code>{{#if tags.[#].feature_image}}</code>.<br>
|