gerard2p/koaton

View on GitHub
src/support/configuration.js

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Function DeepDevOrProd has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

function DeepDevOrProd (object, prop) {
let target = object[prop];
if (Object.keys(target).indexOf('dev') === -1 && typeof target === 'object') {
for (const deep of Object.keys(target)) {
DeepDevOrProd(object[prop], deep);
Severity: Minor
Found in src/support/configuration.js - About 1 hr to fix

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

constructor () {
/** @type {Object} */
this.bundles = null;
/** @type {Object} */
this.conections = null;
Severity: Minor
Found in src/support/configuration.js - About 1 hr to fix
Category
Status