myTerminal/ample-alerts

View on GitHub

Showing 2 of 2 total issues

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
      Severity
      Category
      Status
      Source
      Language