bbyars/mountebank

View on GitHub
src/models/mbConnection.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function postJSON has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function postJSON (what, where) {
    return new Promise((resolve, reject) => {
        const parts = new URL(where),
            driver = require(parts.protocol.replace(':', '')),
            options = {
Severity: Minor
Found in src/models/mbConnection.js - About 1 hr to fix

    Function create has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function create (config) {
        let callbackURL,
            proxy;
    
        function setPort (port) {
    Severity: Minor
    Found in src/models/mbConnection.js - About 1 hr to fix

      Parsing error: Invalid ecmaVersion.
      Open

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

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

      There are no issues that match your filters.

      Category
      Status