FanaHOVA/blazer

View on GitHub

Showing 544 of 841 total issues

Function _dispatchEvent has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function _dispatchEvent(sortable, rootEl, name, targetEl, fromEl, startIndex, newIndex) {
Severity: Major
Found in app/assets/javascripts/blazer/Sortable.js - About 50 mins to fix

    Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
    Severity: Major
    Found in app/assets/javascripts/blazer/jquery.js - About 50 mins to fix

      Function makeDate has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          function makeDate(y, m, d, h, M, s, ms) {
      Severity: Major
      Found in app/assets/javascripts/blazer/moment.js - About 50 mins to fix

        Avoid deeply nested control flow statements.
        Open

                    if ( (event.result = ret) === false ) {
                      event.preventDefault();
                      event.stopPropagation();
                    }
        Severity: Major
        Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                      if (moveVector === 1 || moveVector === -1) {
                        after = (moveVector === 1);
                      }
                      else if (floating) {
                        after = (target.previousElementSibling === dragEl) && !isWide || halfway && isWide;
          Severity: Major
          Found in app/assets/javascripts/blazer/Sortable.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                            if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
                              // Cache the index of each encountered element
                              if ( useCache ) {
                                (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
                              }
            Severity: Major
            Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                        if ( conv && s[ "throws" ] ) {
                          response = conv( response );
                        } else {
                          try {
                            response = conv( response );
              Severity: Major
              Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                              if ((scrollEl.offsetWidth < scrollEl.scrollWidth) ||
                                (scrollEl.offsetHeight < scrollEl.scrollHeight)
                              ) {
                                break;
                              }
                Severity: Major
                Found in app/assets/javascripts/blazer/Sortable.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                            if ( Expr.relative[ tokens[j].type ] ) {
                              break;
                            }
                  Severity: Major
                  Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                for ( match in context ) {
                                  // Properties of context are called as methods if possible
                                  if ( jQuery.isFunction( this[ match ] ) ) {
                                    this[ match ]( context[ match ] );
                    
                    
                    Severity: Major
                    Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                      if ( !status && options.isLocal && !options.crossDomain ) {
                                        status = responses.text ? 200 : 404;
                                      // IE - #1450: sometimes returns 1223 when it should be 204
                                      } else if ( status === 1223 ) {
                                        status = 204;
                      Severity: Major
                      Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                  if (element.data('params')) data = data + "&" + element.data('params');
                        Severity: Major
                        Found in app/assets/javascripts/blazer/jquery_ujs.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                  } else if ( copy !== undefined ) {
                                    target[ name ] = copy;
                                  }
                          Severity: Major
                          Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                        if ( matches[ sel ] === undefined ) {
                                          matches[ sel ] = handleObj.needsContext ?
                                            jQuery( sel, this ).index( cur ) >= 0 :
                                            jQuery.find( sel, this, null, [ cur ] ).length;
                                        }
                            Severity: Major
                            Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                        for ( conv2 in converters ) {
                              
                                          // If conv2 outputs current
                                          tmp = conv2.split( " " );
                                          if ( tmp[ 1 ] === current ) {
                              Severity: Major
                              Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                if ( typeof xhr.responseText === "string" ) {
                                                  responses.text = xhr.responseText;
                                                }
                                Severity: Major
                                Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                              if ( (elem = matcherOut[i]) ) {
                                                // Restore matcherIn since elem is not yet a final match
                                                temp.push( (matcherIn[i] = elem) );
                                              }
                                  Severity: Major
                                  Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

                                    Function init has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                      init: function( elem, options, prop, end, easing, unit ) {
                                    Severity: Minor
                                    Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                  if ( elem.id !== match[2] ) {
                                                    return rootjQuery.find( selector );
                                                  }
                                      Severity: Major
                                      Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                    if ( deleteExpando ) {
                                                      delete elem[ internalKey ];
                                        
                                                    } else if ( typeof elem.removeAttribute !== strundefined ) {
                                                      elem.removeAttribute( internalKey );
                                        Severity: Major
                                        Found in app/assets/javascripts/blazer/jquery.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language