martsoft/image_thread

View on GitHub
app/assets/javascripts/image_thread/uploader.js

Summary

Maintainability
B
5 hrs
Test Coverage

File uploader.js has 298 lines of code (exceeds 250 allowed). Consider refactoring.
Open

//= require image_thread/jquery/ui/jquery.ui.widget
//= require image_thread/load-image
//= require image_thread/jquery/jquery.fileupload
//= require image_thread/jquery/jquery.fileupload-process
//= require image_thread/jquery/jquery.fileupload-image
Severity: Minor
Found in app/assets/javascripts/image_thread/uploader.js - About 3 hrs to fix

    Function fail has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                fail: function (e, data) {
                    if (e.isDefaultPrevented()) {
                        return false;
                    }
                    var that = $(this).data('blueimp-fileupload') ||
    Severity: Minor
    Found in app/assets/javascripts/image_thread/uploader.js - About 1 hr to fix

      Function add has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  add: function (e, data) {
                      if (e.isDefaultPrevented()) {
                          return false;
                      }
      
      
      Severity: Minor
      Found in app/assets/javascripts/image_thread/uploader.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status