immanuel192/seneca-ultils

View on GitHub
lib/commandWrapper.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function wrapCommand has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function wrapCommand(...mainArgs) {
// cmdName, func, dtoClassType = null, dtoClassSubType = ''
    const cmdName = mainArgs[0];
    const func = mainArgs[1];
    // dto for Input
Severity: Minor
Found in lib/commandWrapper.js - About 1 hr to fix

    Function commandWrapper has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        return function commandWrapper(...args) {
            const done = args[1];
            const params = _.clone(args[0]);
    
            const callback = function handleCallback(arg1, arg2) {
    Severity: Minor
    Found in lib/commandWrapper.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status