vampireneo/Book

View on GitHub
bookParser/JointPublishing.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function getByISBN has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.getByISBN = function(pISBN) {
  var domain = 'http://www.jointpublishing.com';
  var searchUrl =
    '/Special-Page/search-result.aspx?searchmode=anyword&searchtext=';
  var bookObj = {};
Severity: Major
Found in bookParser/JointPublishing.js - About 2 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                    if (page !== '0') {
                      bookObj.Pages = page;
                    }
    Severity: Major
    Found in bookParser/JointPublishing.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status