lib/parsers/FeatureParser.js
File FeatureParser.js
has 466 lines of code (exceeds 250 allowed). Consider refactoring. Wontfix
Wontfix
'use strict';
var $ = require('../Array');
var fn = require('../fn');
var StringUtils = require('../StringUtils');
Avoid too many return
statements within this function. Open
Open
if ((match = NVP_ANNOTATION_REGEX.exec(line))) return specification.handle('Annotation', { key: StringUtils.trim(match[1]), value: StringUtils.trim(match[2]) }, line_number);
Avoid too many return
statements within this function. Open
Open
if ((match = BACKGROUND_REGEX.exec(line))) return specification.handle('Background', match[1], line_number);
Avoid too many return
statements within this function. Open
Open
if ((match = EXAMPLES_REGEX.exec(line))) return specification.handle('Examples', line_number);
Avoid too many return
statements within this function. Open
Open
if ((match = DASH_REGEX.exec(line))) return specification.handle('Dash', match[1], line_number);
Avoid too many return
statements within this function. Open
Open
if ((match = TEXT_REGEX.exec(line))) return specification.handle('Text', match[1], line_number);
Avoid too many return
statements within this function. Open
Open
if ((match = FEATURE_REGEX.exec(line))) return specification.handle('Feature', match[1], line_number);
Avoid too many return
statements within this function. Open
Open
if ((match = SCENARIO_REGEX.exec(line))) return specification.handle('Scenario', match[1], line_number);
Avoid too many return
statements within this function. Open
Open
if ((match = BLANK_REGEX.exec(line))) return specification.handle('Blank', match[0], line_number);