bbyars/mountebank

View on GitHub
src/mountebank.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function createApp has 106 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function createApp (options) {
    applyDefaults(options);

    const app = express(),
        hostname = options.host || 'localhost',
Severity: Major
Found in src/mountebank.js - About 4 hrs to fix

    Function listen has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    async function listen (app, options) {
        const hostname = options.host || 'localhost',
            baseURL = `http://${hostname}:${options.port}`,
            logger = utilLogger.createLogger(options),
            isAllowedConnection = utilIp.createIPVerification(options);
    Severity: Minor
    Found in src/mountebank.js - About 1 hr to fix

      Parsing error: Invalid ecmaVersion.
      Open

      'use strict';
      Severity: Minor
      Found in src/mountebank.js by eslint

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

      There are no issues that match your filters.

      Category
      Status