department-of-veterans-affairs/vets-website

View on GitHub
src/platform/user/profile/vap-svc/util/analytics.js

Summary

Maintainability
A
1 hr
Test Coverage

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

const captureError = (error, details) => {
  if (environment.isLocalhost()) {
    // eslint-disable-next-line no-console
    console.error({ error, details });
  }
Severity: Minor
Found in src/platform/user/profile/vap-svc/util/analytics.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status