Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gherkin-lint

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gherkin-lint - npm Package Compare versions

Comparing version 2.11.0 to 2.11.1

14

dist/config-verifier.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc