srveit/mechanize-js

View on GitHub
lib/mechanize/page/link.js

Summary

Maintainability
A
1 hr
Test Coverage

Function newLink has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function newLink(node, page) {
  const agent = page.agent
  const link = {}
  const href = nodeAttr(node, 'href')
  const relVal = nodeAttr(node, 'rel')
Severity: Minor
Found in lib/mechanize/page/link.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status