src/rules/no-restricted-patterns.js
function checkFeatureChildNode(node, restrictedPatterns, errors) {
  checkNameAndDescription(node, restrictedPatterns, errors);
  node.steps.forEach(function(step) {
    // Use the node type of the parent to determine which rule configuration to use
    checkStepNode(step, restrictedPatterns[node.type], errors);
  });
}
function checkFeatureChildNode(node, restrictedPatterns, errors) {
  checkNameAndDescription(node, restrictedPatterns, errors);
  node.steps.forEach(function(step) {
    // Use the node type of the parent to determine which rule configuration to use
    checkStepNode(step, restrictedPatterns[node.type], errors);
  });
}
function checkFeatureChildNode ( node , restrictedPatterns , errors ) { checkNameAndDescription ( node , restrictedPatterns , errors ) ; node . steps . forEach ( function ( step ) { // Use the node type of the parent to determine which rule configuration to use checkStepNode ( step , restrictedPatterns [ node . type ] , errors ) ; } ) ; }
Background, Scenarios and Scenario Outlines are children of a feature
Background Scenarios and Scenario Outlines are children of a feature