Showing 9 of 22 total issues
File MacroTests.js
has 274 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var assert = require('assert');
var Macro = require('../lib/Macro');
var Context = require('../lib/Context');
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 = TEXT_REGEX.exec(line))) return specification.handle('Text', 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 = DASH_REGEX.exec(line))) return specification.handle('Dash', match[1], line_number);
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 = FEATURE_REGEX.exec(line))) return specification.handle('Feature', 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);