linitix/ireviews

View on GitHub

Showing 3 of 19 total issues

Function _downloadAllReviewsForCountry has 98 lines of code (exceeds 25 allowed). Consider refactoring.
Open

IReviews.prototype._downloadAllReviewsForCountry = function (storeId, countryCode, callback) {
  var self = this;
  var finished = false;
  var reviews = { count: 0, countryCode: countryCode, items: [] };
  var url = ITUNES_STORE_CUSTOMER_REVIEWS_URL.replace("__FORMAT__", self.format);
Severity: Major
Found in libs/ireviews.js - About 3 hrs to fix

    File ireviews.js has 316 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    var util = require("util");
    var EventEmitter = require("events").EventEmitter;
    
    var debug = require("debug")("iReviews");
    var async = require("async");
    Severity: Minor
    Found in libs/ireviews.js - About 3 hrs to fix

      Function _downloadAllReviews has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      IReviews.prototype._downloadAllReviews = function (callback) {
        var self = this;
        var reviews = [];
        var count = 0;
        var q = async.queue(function (task, next) {
      Severity: Minor
      Found in libs/ireviews.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language