korczis/microcrawler

View on GitHub
lib/helper/request.js

Summary

Maintainability
A
1 hr
Test Coverage

Function requestSuperagent has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function requestSuperagent(url) {
  var retryNo = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1];

  return new Promise(function (resolve, reject) {
    var req = _superagentUse2.default.get(url).timeout(_config.config.timeout).retry(_config.config.retry.count).redirects(5);
Severity: Minor
Found in lib/helper/request.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status