department-of-veterans-affairs/vets-website

View on GitHub
src/applications/check-in/utils/analytics/index.js

Summary

Maintainability
A
1 hr
Test Coverage

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

const captureError = (error, details) => {
  if (error instanceof Error) {
    Sentry.withScope(scope => {
      const { token } = details;
      if (token) {
Severity: Minor
Found in src/applications/check-in/utils/analytics/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status