vampireneo/Book

View on GitHub
bookParser/Eslite.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

exports.getByISBN = function(pISBN) {
  var domain = 'http://www.eslite.com/';
  var searchUrl = 'Search_BW.aspx?query=';
  var bookObj = {};
  var deferred = Q.defer();
Severity: Major
Found in bookParser/Eslite.js - About 3 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                  if (infos[i].indexOf('ISBN 13') > -1) {
                    bookObj.ISBN = infos[i].split('/')[1].trim();
                  }
    Severity: Major
    Found in bookParser/Eslite.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status