srveit/mechanize-js

View on GitHub
lib/mechanize/form/file_upload.js

Summary

Maintainability
A
1 hr
Test Coverage

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

export function newFileUpload(node, initialFilename) {
  let theFilename = unescape(initialFilename)
  let theMimeType
  const field = newField(node)
  const fieldType = 'fileUpload'
Severity: Minor
Found in lib/mechanize/form/file_upload.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status