linitix/autoingesttool

View on GitHub

Showing 3 of 9 total issues

Function downloadSalesReport has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function downloadSalesReport(params, paths, callback) {
    var filename;
    var deferred = Q.defer();

    if ( !params.report_date ) {
Severity: Major
Found in libs/sales_reporter.js - About 2 hrs to fix

    Function downloadFinancialReport has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function downloadFinancialReport(params, paths, callback) {
        var filename;
        var deferred = Q.defer();
    
        async.waterfall(
    Severity: Minor
    Found in libs/financial_reporter.js - About 1 hr to fix

      Function _createJSON has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function _createJSON(data, callback) {
          var headersArray, headersLength;
          var json          = [],
              headersObject = {},
              totalObject   = {},
      Severity: Minor
      Found in libs/helpers.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language