ruslansagitov/loud

View on GitHub

Showing 5 of 18 total issues

Avoid deeply nested control flow statements.
Open

                if (node.mayTransitionToRole(role)) {
                    roleData.role = role;
                }
Severity: Major
Found in lib/role-from-tag.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if (!node.isDescendantsValid(lim)) {
                                return false;
                            }
    Severity: Major
    Found in lib/a11y-node.js - About 45 mins to fix

      Consider simplifying this complex logical expression.
      Open

              if (this.hasAttribute('hidden') ||
                  this.getAttribute('aria-hidden') === 'true' ||
                  this.tag === 'input' &&
                  this.getAttribute('type') === 'hidden' ||
                  node.style.visibility === 'hidden' ||
      Severity: Major
      Found in lib/a11y-node.js - About 40 mins to fix

        Avoid too many return statements within this function.
        Open

                    return false;
        Severity: Major
        Found in lib/a11y-node.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return true;
          Severity: Major
          Found in lib/a11y-node.js - About 30 mins to fix
            Severity
            Category
            Status
            Source
            Language