18F/web-design-standards

View on GitHub
packages/uswds-core/src/js/utils/validate-input.js

Summary

Maintainability
A
1 hr
Test Coverage

Function validate has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function validate(el) {
  const id = el.dataset.validationElement;
  const checkList =
    id.charAt(0) === "#"
      ? document.querySelector(id)
Severity: Minor
Found in packages/uswds-core/src/js/utils/validate-input.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status