gscan 4.13.0 → 4.13.1
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.
|
@@ -73,7 +73,7 @@ function classifyNode(sexpr, options = {knownHelpers: [], knownHelpersOnly: fals
|
|
|
73
73
|
// An eligible helper is one that does not have a complex path, i.e. `this.foo`, `../foo` etc.
|
|
74
74
|
if (isEligible && !isHelper) {
|
|
75
75
|
let name = sexpr.path.parts[0];
|
|
76
|
-
if (options.knownHelpers
|
|
76
|
+
if (options.knownHelpers.includes(name)) {
|
|
77
77
|
isHelper = true;
|
|
78
78
|
} else if (options.knownHelpersOnly) {
|
|
79
79
|
isEligible = false;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const Rule = require('./base');
|
|
2
|
-
const {
|
|
2
|
+
const {getPartialName} = require('../helpers');
|
|
3
3
|
|
|
4
4
|
module.exports = class NoUnknownPartials extends Rule {
|
|
5
5
|
_checkForUnknownPartials(node) {
|
|
6
6
|
if (node.name) {
|
|
7
7
|
if (!this.isValidPartialReference(node)) {
|
|
8
8
|
this.log({
|
|
9
|
-
message: `The partial ${
|
|
9
|
+
message: `The partial ${getPartialName(node)} could not be found`,
|
|
10
10
|
line: node.loc && node.loc.start.line,
|
|
11
11
|
column: node.loc && node.loc.start.column,
|
|
12
12
|
source: this.sourceForNode(node)
|