alexminichino/trawell

View on GitHub

Showing 224 of 303 total issues

Function Emitter has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var Emitter = function () {
  function Emitter() {
    _classCallCheck(this, Emitter);
  }

Severity: Major
Found in src/main/resources/static/js/dropzone.js - About 2 hrs to fix

    Function domManip has 60 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function domManip(collection, args, callback, ignored) {
    
            // Flatten any nested arrays
            args = concat.apply([], args);
    
    Severity: Major
    Found in src/main/resources/static/js/jQuery.js - About 2 hrs to fix

      Function ajaxConvert has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function ajaxConvert(s, response, jqXHR, isSuccess) {
              var conv2, current, conv, tmp, prev,
                  converters = {},
      
                  // Work with a copy of dataTypes in case we need to modify it for conversion
      Severity: Major
      Found in src/main/resources/static/js/jQuery.js - About 2 hrs to fix

        Function onload has 59 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              img.onload = function () {
                var loadExif = function loadExif(callback) {
                  return callback(1);
                };
                if (typeof EXIF !== 'undefined' && EXIF !== null && fixOrientation) {
        Severity: Major
        Found in src/main/resources/static/js/dropzone.js - About 2 hrs to fix

          Function init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  init = jQuery.fn.init = function(selector, context, root) {
                      var match, elem;
          
                      // HANDLE: $(""), $(null), $(undefined), $(false)
                      if (!selector) {
          Severity: Major
          Found in src/main/resources/static/js/jQuery.js - About 2 hrs to fix

            Function remove has 52 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    remove: function(elem, types, handler, selector, mappedTypes) {
            
                        var j, origCount, tmp,
                            events, t, handleObj,
                            special, handlers, type, namespaces, origType,
            Severity: Major
            Found in src/main/resources/static/js/jQuery.js - About 2 hrs to fix

              Function discover has 52 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              Dropzone.discover = function () {
                var dropzones = void 0;
                if (document.querySelectorAll) {
                  dropzones = document.querySelectorAll(".dropzone");
                } else {
              Severity: Major
              Found in src/main/resources/static/js/dropzone.js - About 2 hrs to fix

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

                    function buildFragment(elems, context, scripts, selection, ignored) {
                        var elem, tmp, tag, wrap, attached, j,
                            fragment = context.createDocumentFragment(),
                            nodes = [],
                            i = 0,
                Severity: Major
                Found in src/main/resources/static/js/jQuery.js - About 2 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                                      if ((mappedTypes || origType === handleObj.origType) &&
                                          (!handler || handler.guid === handleObj.guid) &&
                                          (!tmp || tmp.test(handleObj.namespace)) &&
                                          (!selector || selector === handleObj.selector ||
                                              selector === "**" && handleObj.selector)) {
                  Severity: Critical
                  Found in src/main/resources/static/js/jQuery.js - About 2 hrs to fix

                    Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                tokenize = Sizzle.tokenize = function(selector, parseOnly) {
                                    var matched, match, tokens, type,
                                        soFar, groups, preFilters,
                                        cached = tokenCache[selector + " "];
                    
                    Severity: Minor
                    Found in src/main/resources/static/js/jQuery.js - About 1 hr to fix

                      Function matcherFromTokens has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                  function matcherFromTokens(tokens) {
                                      var checkContext, matcher, j,
                                          len = tokens.length,
                                          leadingRelative = Expr.relative[tokens[0].type],
                                          implicitRelative = leadingRelative || Expr.relative[" "],
                      Severity: Minor
                      Found in src/main/resources/static/js/jQuery.js - About 1 hr to fix

                        Function addCombinator has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                    function addCombinator(matcher, combinator, base) {
                                        var dir = combinator.dir,
                                            skip = combinator.next,
                                            key = skip || dir,
                                            checkNonElements = base && key === "parentNode",
                        Severity: Minor
                        Found in src/main/resources/static/js/jQuery.js - About 1 hr to fix

                          Function val has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  val: function(value) {
                                      var hooks, ret, valueIsFunction,
                                          elem = this[0];
                          
                                      if (!arguments.length) {
                          Severity: Minor
                          Found in src/main/resources/static/js/jQuery.js - About 1 hr to fix

                            Function select has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        select = Sizzle.select = function(selector, context, results, seed) {
                                            var i, tokens, token, type, find,
                                                compiled = typeof selector === "function" && selector,
                                                match = !seed && tokenize((selector = compiled.selector || selector));
                            
                            Severity: Minor
                            Found in src/main/resources/static/js/jQuery.js - About 1 hr to fix

                              Function data has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      data: function(key, value) {
                                          var i, name, data,
                                              elem = this[0],
                                              attrs = elem && elem.attributes;
                              
                              Severity: Minor
                              Found in src/main/resources/static/js/jQuery.js - About 1 hr to fix

                                Function leverageNative has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function leverageNative(el, type, expectSync) {
                                
                                        // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
                                        if (!expectSync) {
                                            if (dataPriv.get(el, type) === undefined) {
                                Severity: Minor
                                Found in src/main/resources/static/js/jQuery.js - About 1 hr to fix

                                  Function cancelUpload has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      value: function cancelUpload(file) {
                                        if (file.status === Dropzone.UPLOADING) {
                                          var groupedFiles = this._getFilesWithXhr(file.xhr);
                                          for (var _iterator20 = groupedFiles, _isArray20 = true, _i21 = 0, _iterator20 = _isArray20 ? _iterator20 : _iterator20[Symbol.iterator]();;) {
                                            var _ref19;
                                  Severity: Minor
                                  Found in src/main/resources/static/js/dropzone.js - About 1 hr to fix

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

                                        jQuery.extend = jQuery.fn.extend = function() {
                                            var options, name, src, copy, copyIsArray, clone,
                                                target = arguments[0] || {},
                                                i = 1,
                                                length = arguments.length,
                                    Severity: Minor
                                    Found in src/main/resources/static/js/jQuery.js - About 1 hr to fix

                                      Function setupHiddenFileInput has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              var setupHiddenFileInput = function setupHiddenFileInput() {
                                                if (_this3.hiddenFileInput) {
                                                  _this3.hiddenFileInput.parentNode.removeChild(_this3.hiddenFileInput);
                                                }
                                                _this3.hiddenFileInput = document.createElement("input");
                                      Severity: Minor
                                      Found in src/main/resources/static/js/dropzone.js - About 1 hr to fix

                                        Function resize has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                resize: function resize(file, width, height, resizeMethod) {
                                                  var info = {
                                                    srcX: 0,
                                                    srcY: 0,
                                                    srcWidth: file.width,
                                        Severity: Minor
                                        Found in src/main/resources/static/js/dropzone.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language