silentrob/superscript

View on GitHub
src/bot/reply/customFunction.js

Summary

Maintainability
A
1 hr
Test Coverage

Function customFunction has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const customFunction = async function customFunction(functionName, functionArgs, replyObj, options) {
  const plugins = options.system.plugins;
  // Important to create a new scope object otherwise we could leak data
  const scope = _.merge({}, options.system.scope);
  scope.extraScope = options.system.extraScope;
Severity: Minor
Found in src/bot/reply/customFunction.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status