jeansaad/hotel

View on GitHub
src/cli/run.js

Summary

Maintainability
A
1 hr
Test Coverage

Function spawn has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  spawn(cmd, opts = {}) {
    const cleanAndExit = (code = 0) => {
      servers.rm(opts);
      this._exit(code);
    };
Severity: Minor
Found in src/cli/run.js - About 1 hr to fix

    Replace ⏎········.then(startServer)⏎········ with .then(startServer)
    Open

          getPort()
    Severity: Minor
    Found in src/cli/run.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Delete ··
    Open

              throw err;
    Severity: Minor
    Found in src/cli/run.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    Delete ··
    Open

            });
    Severity: Minor
    Found in src/cli/run.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status