cucumber/cucumber-js

View on GitHub

Showing 3 of 232 total issues

File test_case_runner_spec.js has 558 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import TestCaseHookDefinition from '../models/test_case_hook_definition'
import TestCaseRunner from './test_case_runner'
import Status from '../status'
import StepRunner from './step_runner'
import { EventEmitter } from 'events'
Severity: Major
Found in src/runtime/test_case_runner_spec.js - About 1 day to fix

    Function parse has 78 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      static parse(argv) {
        const program = new Command(path.basename(argv[1]))
    
        program
          .usage('[options] [<DIR|FILE[:LINE]>...]')
    Severity: Major
    Found in src/cli/argv_parser.js - About 3 hrs to fix

      Function run has 68 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        static async run({ argsArray, thisArg, fn, timeoutInMilliseconds }) {
          const callbackPromise = new Promise(function(resolve, reject) {
            argsArray.push(function(error, result) {
              if (error) {
                reject(error)
      Severity: Major
      Found in src/user_code_runner.js - About 2 hrs to fix
        Severity
        Category
        Status
        Source
        Language