src/models/protocols.js
Function load
has 132 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function load (builtInProtocols, customProtocols, options, isAllowedConnection, mbLogger, impostersRepository) {
function inProcessCreate (createProtocol) {
return async (creationRequest, logger, responseFn) => {
const server = await createProtocol(creationRequest, logger, responseFn),
stubs = impostersRepository.stubsFor(server.port),
Function outOfProcessCreate
has 100 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function outOfProcessCreate (protocolName, config) {
function customFieldsFor (creationRequest) {
const fields = {},
commonFields = ['protocol', 'port', 'name', 'recordRequests', 'stubs', 'defaultResponse'];
Object.keys(creationRequest).forEach(key => {
Function resolveWithMetadata
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resolveWithMetadata (possibleJSON) {
let metadata = {};
try {
metadata = JSON.parse(possibleJSON);
Function load
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function load (builtInProtocols, customProtocols, options, isAllowedConnection, mbLogger, impostersRepository) {
Function loadProtocols
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function loadProtocols (options, baseURL, logger, isAllowedConnection, imposters) {
Parsing error: Invalid ecmaVersion. Open
Open
'use strict';
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/