shawnholman/Aych

View on GitHub
src/elements/Element.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function setAttribute has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    setAttribute(name: string, value: Attribute): Element {
        // If the attribute is an array like: [true, 'trueAttr', 'falseAttr']
        // Then if true, use: 'trueAttr", else use: 'falseAttr'
        if (Array.isArray(value)) {
            // If the boolean element is true
Severity: Minor
Found in src/elements/Element.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

            return this;
    Severity: Major
    Found in src/elements/Element.ts - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status