vampireneo/Book

View on GitHub

Showing 24 of 47 total issues

Avoid deeply nested control flow statements.
Open

            if (dst[key].indexOf(src[key]) === -1) {
              dst[key].push(src[key]);
            }
Severity: Major
Found in utility/merge.js - About 45 mins 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

      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

        Avoid too many return statements within this function.
        Open

              return codes;
        Severity: Major
        Found in utility/isbn.js - About 30 mins to fix
          Severity
          Category
          Status
          Source
          Language