getlackey/lackey-cms

View on GitHub
modules/core/client/js/upload.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function choice has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Upload.prototype.choice = function (event) {

    var self = this,
        files1 = Array.prototype.slice.apply(event.target.files || []),
        files2 = Array.prototype.slice.apply(event.dataTransfer ? event.dataTransfer.files || [] : []);
Severity: Major
Found in modules/core/client/js/upload.js - About 2 hrs to fix

    Function input has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Upload.prototype.input = function (HTMLElement, onClick) {
    
        this._hover = this.hover.bind(this);
        this._drop = this.drop.bind(this);
        this._pick = this.pick.bind(this);
    Severity: Minor
    Found in modules/core/client/js/upload.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status