bbyars/mountebank

View on GitHub
src/models/tcp/tcpProxy.js

Summary

Maintainability
B
4 hrs
Test Coverage
F
11%

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

function create (logger, encoding, isEndOfRequest) {

    if (typeof isEndOfRequest === 'undefined') {
        isEndOfRequest = () => true; // defaults to a packet boundary
    }
Severity: Major
Found in src/models/tcp/tcpProxy.js - About 2 hrs to fix

    Function to has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function to (proxyDestination, originalRequest, options = {}) {
            return new Promise((resolve, reject) => {
                try {
                    const proxyName = socketName(connectionInfoFor(proxyDestination)),
                        log = (direction, what) => {
    Severity: Minor
    Found in src/models/tcp/tcpProxy.js - About 1 hr to fix

      Parsing error: Invalid ecmaVersion.
      Open

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

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

      There are no issues that match your filters.

      Category
      Status