myTerminal/ample-alerts

View on GitHub
src/scripts/core.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

export const alert = (positiveOutcome, negativeOutcome, ...args) => {
    const [title, text] = getText(args[0]),
        { autoClose } = args[1] || {},
        currentAlert = document.createElement('div');

Severity: Minor
Found in src/scripts/core.js - About 1 hr to fix

    Function prompt has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const prompt = (positiveOutcome, negativeOutcome, ...args) => {
        const [title, text] = getText(args[0]),
            {
                onAction, defaultResponse, labels, isModal
            } = args[1] || {},
    Severity: Minor
    Found in src/scripts/core.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status