gscan 4.13.2 → 4.13.3
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/lib/specs/canary.js +13 -13
- package/package.json +2 -2
package/lib/specs/canary.js
CHANGED
|
@@ -31,70 +31,70 @@ let rules = {
|
|
|
31
31
|
'GS010-PJ-GHOST-API': {
|
|
32
32
|
level: 'warning',
|
|
33
33
|
rule: '<code>package.json</code> property <code>"engines.ghost-api"</code> is recommended. Otherwise, it falls back to "v4"',
|
|
34
|
-
details: oneLineTrim`
|
|
34
|
+
details: oneLineTrim`Add <code>"ghost-api"</code> to your <code>package.json</code>. E.g. <code>{"engines": {"ghost-api": "v4"}}</code>.<br>
|
|
35
35
|
If no <code>"ghost-api"</code> property is provided, Ghost will use its default setting of "v4" Ghost API.<br>
|
|
36
36
|
Check the <a href="${docsBaseUrl}packagejson/" target=_blank><code>package.json</code> documentation</a> for further information.`
|
|
37
37
|
},
|
|
38
38
|
'GS010-PJ-GHOST-API-V01': {
|
|
39
39
|
level: 'error',
|
|
40
40
|
rule: '<code>package.json</code> property <code>"engines.ghost-api"</code> is incompatible with current version of Ghost API and will fall back to "v4"',
|
|
41
|
-
details: oneLineTrim`
|
|
41
|
+
details: oneLineTrim`Change <code>"ghost-api"</code> in your <code>package.json</code> to higher version. E.g. <code>{"engines": {"ghost-api": "v4"}}</code>.<br>
|
|
42
42
|
If <code>"ghost-api"</code> property is left at "v0.1", Ghost will use its default setting of "v4".<br>
|
|
43
43
|
Check the <a href="${docsBaseUrl}packagejson/" target=_blank><code>package.json</code> documentation</a> for further information.`
|
|
44
44
|
},
|
|
45
45
|
'GS010-PJ-GHOST-API-V2': {
|
|
46
46
|
level: 'warning',
|
|
47
47
|
rule: '<code>package.json</code> property <code>"engines.ghost-api"</code> is using a deprecated version of Ghost API',
|
|
48
|
-
details: oneLineTrim`
|
|
48
|
+
details: oneLineTrim`Change <code>"ghost-api"</code> in your <code>package.json</code> to higher version. E.g. <code>{"engines": {"ghost-api": "v4"}}</code>.<br>
|
|
49
49
|
If <code>"ghost-api"</code> property is left at "v2", it will stop working with next major version upgrade and default to v5.<br>
|
|
50
50
|
Check the <a href="${docsBaseUrl}packagejson/" target=_blank><code>package.json</code> documentation</a> for further information.`
|
|
51
51
|
},
|
|
52
52
|
'GS010-PJ-CUST-THEME-TOTAL-SETTINGS': {
|
|
53
53
|
level: 'error',
|
|
54
54
|
rule: '<code>package.json</code> property <code>"config.custom"</code> contains too many settings',
|
|
55
|
-
details: oneLineTrim`
|
|
55
|
+
details: oneLineTrim`Remove key from <code>"config.custom"</code> in your <code>package.json</code> to have less than or exactly 15 settings.<br>
|
|
56
56
|
Check the <a href="${docsBaseUrl}packagejson/" target=_blank><code>package.json</code> documentation</a> for further information.`
|
|
57
57
|
},
|
|
58
58
|
'GS010-PJ-CUST-THEME-SETTINGS-CASE': {
|
|
59
59
|
level: 'error',
|
|
60
60
|
rule: '<code>package.json</code> property <code>"config.custom"</code> contains a property that isn\'t snake-cased',
|
|
61
|
-
details: oneLineTrim`
|
|
61
|
+
details: oneLineTrim`Rewrite all property in <code>"config.custom"</code> in your <code>package.json</code> in snake case.<br>
|
|
62
62
|
Check the <a href="${docsBaseUrl}packagejson/" target=_blank><code>package.json</code> documentation</a> for further information.`
|
|
63
63
|
},
|
|
64
64
|
'GS010-PJ-CUST-THEME-SETTINGS-TYPE': {
|
|
65
65
|
level: 'error',
|
|
66
66
|
rule: '<code>package.json</code> objects defined in <code>"config.custom"</code> should have a known <code>"type"</code>.',
|
|
67
|
-
details: oneLineTrim`
|
|
67
|
+
details: oneLineTrim`Only use the following types: <code>"select"</code>, <code>"boolean"</code>, <code>"color"</code>, <code>"image"</code>, <code>"text"</code>.<br>
|
|
68
68
|
Check the <a href="${docsBaseUrl}packagejson/" target=_blank><code>package.json</code> documentation</a> for further information.`
|
|
69
69
|
},
|
|
70
70
|
'GS010-PJ-CUST-THEME-SETTINGS-GROUP': {
|
|
71
71
|
level: 'recommendation',
|
|
72
72
|
rule: '<code>package.json</code> objects defined in <code>"config.custom"</code> should have a known <code>"group"</code>.',
|
|
73
|
-
details: oneLineTrim`
|
|
73
|
+
details: oneLineTrim`Only use the following groups: <code>"post"</code>, <code>"homepage"</code>.<br>
|
|
74
74
|
Check the <a href="${docsBaseUrl}packagejson/" target=_blank><code>package.json</code> documentation</a> for further information.`
|
|
75
75
|
},
|
|
76
76
|
'GS010-PJ-CUST-THEME-SETTINGS-SELECT-OPTIONS': {
|
|
77
77
|
level: 'error',
|
|
78
78
|
rule: '<code>package.json</code> objects defined in <code>"config.custom"</code> of type <code>"select"</code> need to have at least 2 <code>"options"</code>.',
|
|
79
|
-
details: oneLineTrim`
|
|
79
|
+
details: oneLineTrim`Make sure there is at least 2 <code>"options"</code> in each <code>"select"</code> custom theme property.<br>
|
|
80
80
|
Check the <a href="${docsBaseUrl}packagejson/" target=_blank><code>package.json</code> documentation</a> for further information.`
|
|
81
81
|
},
|
|
82
82
|
'GS010-PJ-CUST-THEME-SETTINGS-SELECT-DEFAULT': {
|
|
83
83
|
level: 'error',
|
|
84
84
|
rule: '<code>package.json</code> objects defined in <code>"config.custom"</code> of type <code>"select"</code> need to have a valid <code>"default"</code>.',
|
|
85
|
-
details: oneLineTrim`
|
|
85
|
+
details: oneLineTrim`Make sure the <code>"default"</code> property matches a value in <code>"options"</code> of the same <code>"select"</code>.<br>
|
|
86
86
|
Check the <a href="${docsBaseUrl}packagejson/" target=_blank><code>package.json</code> documentation</a> for further information.`
|
|
87
87
|
},
|
|
88
88
|
'GS010-PJ-CUST-THEME-SETTINGS-BOOLEAN-DEFAULT': {
|
|
89
89
|
level: 'error',
|
|
90
90
|
rule: '<code>package.json</code> objects defined in <code>"config.custom"</code> of type <code>"boolean"</code> need to have a valid <code>"default"</code>.',
|
|
91
|
-
details: oneLineTrim`
|
|
91
|
+
details: oneLineTrim`Make sure the <code>"default"</code> property is either <code>true</code> or <code>false</code>.<br>
|
|
92
92
|
Check the <a href="${docsBaseUrl}packagejson/" target=_blank><code>package.json</code> documentation</a> for further information.`
|
|
93
93
|
},
|
|
94
94
|
'GS010-PJ-CUST-THEME-SETTINGS-COLOR-DEFAULT': {
|
|
95
95
|
level: 'error',
|
|
96
96
|
rule: '<code>package.json</code> objects defined in <code>"config.custom"</code> of type <code>"color"</code> need to have a valid <code>"default"</code>.',
|
|
97
|
-
details: oneLineTrim`
|
|
97
|
+
details: oneLineTrim`Make sure the <code>"default"</code> property is a valid 6-hexadecimal-digit color code like <code>#15171a</code>.<br>
|
|
98
98
|
Check the <a href="${docsBaseUrl}packagejson/" target=_blank><code>package.json</code> documentation</a> for further information.`
|
|
99
99
|
},
|
|
100
100
|
'GS010-PJ-CUST-THEME-SETTINGS-IMAGE-DEFAULT': {
|
|
@@ -106,7 +106,7 @@ let rules = {
|
|
|
106
106
|
'GS001-DEPR-LABS-MEMBERS': {
|
|
107
107
|
level: 'warning',
|
|
108
108
|
rule: 'The <code>{{@labs.members}}</code> helper should not be used.',
|
|
109
|
-
details: oneLineTrim`
|
|
109
|
+
details: oneLineTrim`Remove <code>{{@labs.members}}</code> from the theme.<br>
|
|
110
110
|
The <code>{{@labs.members}}</code> helper will always return <code>true</code> in Ghost v4 and will be removed from Ghost v5, at which point it will return <code>null</code> and evaluate to <code>false</code>.
|
|
111
111
|
Find more information about the <code>@labs</code> property <a href="${docsBaseUrl}helpers/labs/" target=_blank>here</a>.`,
|
|
112
112
|
regex: /@labs\.members/g,
|
|
@@ -150,7 +150,7 @@ let rules = {
|
|
|
150
150
|
'GS001-DEPR-SITE-LANG': {
|
|
151
151
|
level: 'warning',
|
|
152
152
|
rule: 'The <code>{{@site.lang}}</code> helper should be replaced with <code>{{@site.locale}}</code>',
|
|
153
|
-
details: oneLineTrim`
|
|
153
|
+
details: oneLineTrim`Replace <code>{{@site.lang}}</code> helper with <code>{{@site.locale}}</code>.<br>
|
|
154
154
|
The <code>{{@site.lang}}</code> helper will be removed in next version of Ghost and should not be used.
|
|
155
155
|
Find more information about the <code>@site</code> property <a href="${docsBaseUrl}helpers/site/" target=_blank>here</a>.`,
|
|
156
156
|
regex: /@site\.lang/g,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gscan",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.3",
|
|
4
4
|
"description": "Scans Ghost themes looking for errors, deprecations, features and compatibility",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ghost",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@tryghost/config": "0.2.1",
|
|
45
45
|
"@tryghost/debug": "0.1.9",
|
|
46
46
|
"@tryghost/ignition-errors": "0.1.8",
|
|
47
|
-
"@tryghost/logging": "1.0.
|
|
47
|
+
"@tryghost/logging": "1.0.2",
|
|
48
48
|
"@tryghost/pretty-cli": "1.2.22",
|
|
49
49
|
"@tryghost/server": "0.1.0",
|
|
50
50
|
"@tryghost/zip": "1.1.18",
|