cucumber/cucumber-js

View on GitHub

Showing 4 of 231 total issues

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

import { afterEach, beforeEach, describe, it } from 'mocha'
import { expect } from 'chai'
import sinon from 'sinon'
import TestCaseHookDefinition from '../models/test_case_hook_definition'
import TestCaseRunner from './test_case_runner'
Severity: Major
Found in src/runtime/test_case_runner_spec.js - About 1 day to fix

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

      static parse(argv) {
        const program = new Command(path.basename(argv[1]))
    
        program
          .usage('[options] [<GLOB|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((resolve, reject) => {
            argsArray.push((error, result) => {
              if (error) {
                reject(error)
      Severity: Major
      Found in src/user_code_runner.js - About 2 hrs to fix

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

          async run() {
            await validateInstall(this.cwd)
            const configuration = await this.getConfiguration()
            if (configuration.listI18nLanguages) {
              this.stdout.write(I18n.getLanguages())
        Severity: Major
        Found in src/cli/index.js - About 2 hrs to fix
          Severity
          Category
          Status
          Source
          Language