department-of-veterans-affairs/vets-website

View on GitHub
src/platform/forms-system/src/js/utilities/file/readAndCheckFile.js

Summary

Maintainability
A
1 hr
Test Coverage

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

export default function readAndCheckFile(file, checks) {
  return new Promise((resolve, reject) => {
    // Don't load file if there's nothing to check
    if (Object.keys(checks).length === 0) {
      resolve({});
Severity: Minor
Found in src/platform/forms-system/src/js/utilities/file/readAndCheckFile.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status