-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
馃拕 Added new check for {{@site.lang}} helper use
refs https://github.com/TryGhost/Team/issues/509 - The 'lang' property is deprecated with the release of Ghost 4.0 and will be removed completely in Ghost 5.0 - The warning message inspiration taken from a similar deprecation used in GS001-DEPR-SGH (https://github.com/TryGhost/gscan/blob/6a67cfa820a1299a4e0213a7b1fac8d18fd2c937/lib/specs/v2.js#L410-L418)
- Loading branch information
Showing
6 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
test/fixtures/themes/001-deprecations/canary/invalid/author.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{@site.lang}} | ||
|
||
{{#author}} | ||
{{location}} | ||
{{/author}} | ||
|
1 change: 1 addition & 0 deletions
1
test/fixtures/themes/001-deprecations/canary/invalid_all/index.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{{ @site.lang }} | ||
{{post.image}} | ||
{{#if @blog.cover}} | ||
{{@blog.cover}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@matthanley would appreciate a copy check here. The copy used was very much a copy paste from this existing rule -
gscan/lib/specs/v2.js
Lines 410 to 418 in 6a67cfa
Thanks!