balanced/balanced-dashboard

View on GitHub
app/views/modals/evidence-portal-modal.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

    addFiles: function(files) {
        var documentsToUpload = this.get('documentsToUpload');
        var errorCount = 0;

        _.each(files, function(file) {
Severity: Minor
Found in app/views/modals/evidence-portal-modal.js - About 1 hr to fix

    Function save has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            save: function() {
                this.get('model').validate();
                if (this.get('model').get("isValid")) {
                    var formData = new FormData();
                    formData.append('note', this.get('model.note'));
    Severity: Minor
    Found in app/views/modals/evidence-portal-modal.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status