bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

Avoid deeply nested control flow statements.
Open

                        while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
                            cur = cur.replace( " " + clazz + " ", " " );
                        }
Severity: Major
Found in core/static/vendor/jquery/src/attributes/classes.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        if ( (nid = context.getAttribute( "id" )) ) {
                            nid = nid.replace( rcssescape, fcssescape );
                        } else {
                            context.setAttribute( "id", (nid = expando) );
                        }
    Severity: Major
    Found in core/static/vendor/jquery/external/sizzle/dist/sizzle.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if ( Expr.relative[ tokens[j].type ] ) {
                              break;
                          }
      Severity: Major
      Found in core/static/vendor/jquery/external/sizzle/dist/sizzle.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                        if (!(keyMap[keyBindKeys[index2]] in pressedModifiers)) {
                                            allModifiersPressed = false;
                                            break;
                                        }

          Avoid deeply nested control flow statements.
          Open

                                      if ( !(unmatched[i] || setMatched[i]) ) {
                                          setMatched[i] = pop.call( results );
                                      }
          Severity: Major
          Found in core/static/vendor/jquery/external/sizzle/dist/sizzle.js - About 45 mins to fix

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

                _createButton: function (html, title, className, container, fn, context) {
            Severity: Minor
            Found in core/static/vendor/leaflet/dist/leaflet-src.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      if ((listeners[j].action === fn) && (!context || (listeners[j].context === context))) {
                                          removed = listeners.splice(j, 1);
                                          // set the old action to a no-op, because it is possible
                                          // that the listener is being iterated over as part of a dispatch
                                          removed[0].action = L.Util.falseFn;
              Severity: Major
              Found in core/static/vendor/leaflet/dist/leaflet-src.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    if ( !selector ) {
                                        push.apply( results, seed );
                                        return results;
                                    }
                Severity: Major
                Found in core/static/vendor/jquery/external/sizzle/dist/sizzle.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                            if (newViewDate)
                                                this._trigger('changeMonth', this.viewDate);
                  Severity: Major
                  Found in core/static/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                          else if (e.keyCode === 37 || e.keyCode === 39){
                                              newViewDate = this.moveAvailableDate(focusDate, dir, 'moveDay');
                                          }
                                          else if (!this.weekOfDateIsDisabled(focusDate)){
                                              newViewDate = this.moveAvailableDate(focusDate, dir, 'moveWeek');
                    Severity: Major
                    Found in core/static/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                  if (e.keyCode === 38 || e.keyCode === 40) {
                                    dir = dir * 4;
                                  }
                      Severity: Major
                      Found in core/static/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                    if (e.keyCode === 38 || e.keyCode === 40) {
                                      dir = dir * 4;
                                    }
                        Severity: Major
                        Found in core/static/vendor/bootstrap-datepicker/dist/js/bootstrap-datepicker.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  if ( commonlength !== 0 ) {
                                                      diffs[ pointer ][ 1 ] = textInsert.substring( textInsert.length -
                                                              commonlength ) + diffs[ pointer ][ 1 ];
                                                      textInsert = textInsert.substring( 0, textInsert.length -
                                                          commonlength );
                          Severity: Major
                          Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 45 mins to fix

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

                            function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                            Severity: Minor
                            Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if ( x1 >= x2 ) {
                                                          // Overlap detected.
                                                          return this.diffBisectSplit( text1, text2, x1, y1, deadline );
                                                      }
                              Severity: Major
                              Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                    if ( hasOwn.call( val.value, j ) ) {
                                                        urlConfigHtml += "<option value='" + escapeText( j ) + "'" +
                                                            ( config[ val.id ] === j ?
                                                                ( selection = true ) && " selected='selected'" : "" ) +
                                                            ">" + escapeText( val.value[ j ] ) + "</option>";
                                Severity: Major
                                Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if ( commonlength !== 0 ) {
                                                              if ( ( pointer - countDelete - countInsert ) > 0 &&
                                                                      diffs[ pointer - countDelete - countInsert - 1 ][ 0 ] ===
                                                                      DIFF_EQUAL ) {
                                                                  diffs[ pointer - countDelete - countInsert - 1 ][ 1 ] +=
                                  Severity: Major
                                  Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                              if (newViewDate)
                                                                  this._trigger('changeMonth', this.viewDate);
                                    Severity: Major
                                    Found in core/static/vendor/bootstrap-datepicker/dist/js/bootstrap-datepicker.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                            else if (e.keyCode === 37 || e.keyCode === 39){
                                                                newViewDate = this.moveAvailableDate(focusDate, dir, 'moveDay');
                                                            }
                                                            else if (!this.weekOfDateIsDisabled(focusDate)){
                                                                newViewDate = this.moveAvailableDate(focusDate, dir, 'moveWeek');
                                      Severity: Major
                                      Found in core/static/vendor/bootstrap-datepicker/dist/js/bootstrap-datepicker.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                if ( x1 >= x2 ) {
                                                                    // Overlap detected.
                                                                    return this.diffBisectSplit( text1, text2, x1, y1, deadline );
                                                                }
                                        Severity: Major
                                        Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language