gherkin-lint
Advanced tools
Comparing version 2.11.0 to 2.11.1
@@ -11,3 +11,3 @@ 'use strict'; | ||
} else { | ||
verifyRuleConfiguration(rule, config[rule], errors); | ||
verifyRuleConfiguration(rule, config[rule], additionalRulesDirs, errors); | ||
} | ||
@@ -18,3 +18,3 @@ } | ||
function verifyRuleConfiguration(rule, ruleConfig, errors) { | ||
function verifyRuleConfiguration(rule, ruleConfig, additionalRulesDirs, errors) { | ||
var enablingSettings = ['on', 'off']; | ||
@@ -32,3 +32,3 @@ var genericErrorMsg = 'Invalid rule configuration for "' + rule + '" - '; | ||
var ruleObj = rules.getRule(rule); | ||
var ruleObj = rules.getRule(rule, additionalRulesDirs); | ||
var isValidSubConfig; | ||
@@ -40,3 +40,3 @@ | ||
}; | ||
testSubconfig(genericErrorMsg, rule, ruleConfig[1], isValidSubConfig, errors); | ||
testSubconfig(genericErrorMsg, rule, ruleConfig[1], isValidSubConfig, additionalRulesDirs, errors); | ||
} else { | ||
@@ -47,3 +47,3 @@ isValidSubConfig = function isValidSubConfig(availableConfigs, subConfig) { | ||
for (var subConfig in ruleConfig[1]) { | ||
testSubconfig(genericErrorMsg, rule, subConfig, isValidSubConfig, errors); | ||
testSubconfig(genericErrorMsg, rule, subConfig, isValidSubConfig, additionalRulesDirs, errors); | ||
} | ||
@@ -58,4 +58,4 @@ } | ||
function testSubconfig(genericErrorMsg, rule, subConfig, isValidSubConfig, errors) { | ||
var ruleObj = rules.getRule(rule); | ||
function testSubconfig(genericErrorMsg, rule, subConfig, isValidSubConfig, additionalRulesDirs, errors) { | ||
var ruleObj = rules.getRule(rule, additionalRulesDirs); | ||
if (!isValidSubConfig(ruleObj.availableConfigs, subConfig)) { | ||
@@ -62,0 +62,0 @@ errors.push(genericErrorMsg + ' The rule does not have the specified configuration option "' + subConfig + '"'); |
{ | ||
"name": "gherkin-lint", | ||
"version": "2.11.0", | ||
"version": "2.11.1", | ||
"description": "A Gherkin linter/validator written in javascript", | ||
@@ -5,0 +5,0 @@ "author": "Vasiliki Siakka", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46305