gscan 4.9.1 → 4.9.2

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.
@@ -4,6 +4,12 @@ const {versions, normalizePath} = require('../utils');
4
4
  const ASTLinter = require('../ast-linter');
5
5
 
6
6
  function processFileFunction(files, failures, rules) {
7
+ // This rule is needed to find partials
8
+ // Partials are needed for a full parsing
9
+ if (!rules['mark-used-partials']) {
10
+ rules['mark-used-partials'] = require(`../ast-linter/rules/mark-used-partials`);
11
+ }
12
+
7
13
  return function processFile(linter, themeFile) {
8
14
  if (themeFile.parsed.error) {
9
15
  // Ignore parsing errors, they are handled in 005
@@ -74,6 +74,12 @@ function applyRule(rule, theme) {
74
74
  function parseWithAST({theme, log, file, rules, callback}){
75
75
  const linter = new ASTLinter();
76
76
 
77
+ // This rule is needed to find partials
78
+ // Partials are needed for a full parsing
79
+ if (!rules['mark-used-partials']) {
80
+ rules['mark-used-partials'] = require(`../ast-linter/rules/mark-used-partials`);
81
+ }
82
+
77
83
  function processFile(themeFile) {
78
84
  if (themeFile.parsed.error) {
79
85
  // Ignore parsing errors, they are handled in 005
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gscan",
3
- "version": "4.9.1",
3
+ "version": "4.9.2",
4
4
  "description": "Scans Ghost themes looking for errors, deprecations, features and compatibility",
5
5
  "keywords": [
6
6
  "ghost",