Showing 3 of 19 total issues
Function _downloadAllReviewsForCountry
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
File ireviews.js
has 316 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var util = require("util");
var EventEmitter = require("events").EventEmitter;
var debug = require("debug")("iReviews");
var async = require("async");
Function _downloadAllReviews
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
IReviews.prototype._downloadAllReviews = function (callback) {
var self = this;
var reviews = [];
var count = 0;
var q = async.queue(function (task, next) {