e-ucm/rage-analytics-backend

View on GitHub
bin/upgrade/controllers/abstract-controller.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function transform has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

AbstractController.prototype.transform = function (callback) {
    var that = this;
    async.waterfall([function (newCallback) {
            console.log('Starting executing transformer ' + JSON.stringify(that.nextTransformer.version, null, 4));
            newCallback(null, that.appConfig);
Severity: Minor
Found in bin/upgrade/controllers/abstract-controller.js - About 1 hr to fix

    Function refresh has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    AbstractController.prototype.refresh = function (callback) {
        this.nextTransformer = null;
        this.getModelVersion(this.appConfig, function (err, modelVersion) {
            if (err) {
                console.log('Cannot retrieve the model version', err);
    Severity: Minor
    Found in bin/upgrade/controllers/abstract-controller.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status