acuminous/yadda

View on GitHub

Showing 9 of 22 total issues

File MacroTests.js has 274 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'use strict';

var assert = require('assert');
var Macro = require('../lib/Macro');
var Context = require('../lib/Context');
Severity: Minor
Found in test/MacroTests.js - About 2 hrs to fix

    Avoid too many return statements within this function.
    Open

          if ((match = SCENARIO_REGEX.exec(line))) return specification.handle('Scenario', match[1], line_number);
    Severity: Major
    Found in lib/parsers/FeatureParser.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            if ((match = DASH_REGEX.exec(line))) return specification.handle('Dash', match[1], line_number);
      Severity: Major
      Found in lib/parsers/FeatureParser.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              if ((match = BLANK_REGEX.exec(line))) return specification.handle('Blank', match[0], line_number);
        Severity: Major
        Found in lib/parsers/FeatureParser.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                if ((match = TEXT_REGEX.exec(line))) return specification.handle('Text', match[1], line_number);
          Severity: Major
          Found in lib/parsers/FeatureParser.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  if ((match = EXAMPLES_REGEX.exec(line))) return specification.handle('Examples', line_number);
            Severity: Major
            Found in lib/parsers/FeatureParser.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    if ((match = NVP_ANNOTATION_REGEX.exec(line))) return specification.handle('Annotation', { key: StringUtils.trim(match[1]), value: StringUtils.trim(match[2]) }, line_number);
              Severity: Major
              Found in lib/parsers/FeatureParser.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      if ((match = FEATURE_REGEX.exec(line))) return specification.handle('Feature', match[1], line_number);
                Severity: Major
                Found in lib/parsers/FeatureParser.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        if ((match = BACKGROUND_REGEX.exec(line))) return specification.handle('Background', match[1], line_number);
                  Severity: Major
                  Found in lib/parsers/FeatureParser.js - About 30 mins to fix
                    Severity
                    Category
                    Status
                    Source
                    Language