SockDrawer/SockBot

View on GitHub
plugins/summoner.js

Summary

Maintainability
A
1 hr
Test Coverage

Function summoner has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function summoner(forum, config) {
    let messages = utils.cloneData(defaultMessages);
    config = config || {}; // prevent nulls
    if (Array.isArray(config) && config.length > 0) {
        messages = config;
Severity: Minor
Found in plugins/summoner.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status