department-of-veterans-affairs/vets-website

View on GitHub
src/applications/static-pages/widget-creators/social-share-links.js

Summary

Maintainability
A
1 hr
Test Coverage

Function openShareLink has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function openShareLink() {
  const shareLinks = Array.from(document.querySelectorAll('.va-js-share-link'));

  if (shareLinks.length > 0) {
    const hasNavigatorShare = navigator.share !== undefined;
Severity: Minor
Found in src/applications/static-pages/widget-creators/social-share-links.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status