vampireneo/Book

View on GitHub
bookParser/HkBookCity.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

exports.getByISBN = function(pISBN) {
  var domain = 'http://www.hkbookcity.com/';
  var searchUrl = 'searchbook2.php?startnum=1&key=isbn&keyword=';
  var bookObj = {};
  var deferred = Q.defer();
Severity: Major
Found in bookParser/HkBookCity.js - About 3 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                  switch (title) {
                    case '作者:':
                      bookObj.Author = content;
                      break;
                    case 'ISBN-13:':
    Severity: Major
    Found in bookParser/HkBookCity.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status