bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

        formatDate: function(date, format, language){
            if (!date)
                return '';
            if (typeof format === 'string')
                format = DPGlobal.parseFormat(format);

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

      Collapse.prototype.hide = function () {
        if (this.transitioning || !this.$element.hasClass('in')) return
    
        var startEvent = $.Event('hide.bs.collapse')
        this.$element.trigger(startEvent)
    Severity: Minor
    Found in core/static/vendor/bootstrap/dist/js/bootstrap.js - About 1 hr to fix

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

        ScrollSpy.prototype.refresh = function () {
          var that          = this
          var offsetMethod  = 'offset'
          var offsetBase    = 0
      
      
      Severity: Minor
      Found in core/static/vendor/bootstrap/js/scrollspy.js - About 1 hr to fix

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

          offset: function( options ) {
            if ( arguments.length ) {
              return options === undefined ?
                this :
                this.each(function( i ) {
        Severity: Minor
        Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

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

              function next() {
                $active
                  .removeClass('active')
                  .find('> .dropdown-menu > .active')
                    .removeClass('active')
          Severity: Minor
          Found in core/static/vendor/bootstrap/js/tab.js - About 1 hr to fix

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

              Collapse.prototype.hide = function () {
                if (this.transitioning || !this.$element.hasClass('in')) return
            
                var startEvent = $.Event('hide.bs.collapse')
                this.$element.trigger(startEvent)
            Severity: Minor
            Found in core/static/vendor/bootstrap/js/collapse.js - About 1 hr to fix

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

                off: function( types, selector, fn ) {
                  var handleObj, type;
                  if ( types && types.preventDefault && types.handleObj ) {
                    // ( event )  dispatched jQuery.Event
                    handleObj = types.handleObj;
              Severity: Minor
              Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

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

                  ScrollSpy.prototype.refresh = function () {
                    var that          = this
                    var offsetMethod  = 'offset'
                    var offsetBase    = 0
                
                
                Severity: Minor
                Found in core/static/vendor/bootstrap/dist/js/bootstrap.js - About 1 hr to fix

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

                      "*": [ function( prop, value ) {
                        var tween = this.createTween( prop, value ),
                          target = tween.cur(),
                          parts = rfxnum.exec( value ),
                          unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
                  Severity: Minor
                  Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

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

                        function next() {
                          $active
                            .removeClass('active')
                            .find('> .dropdown-menu > .active')
                              .removeClass('active')
                    Severity: Minor
                    Found in core/static/vendor/bootstrap/dist/js/bootstrap.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                          if ( support.matchesSelector && documentIsHTML &&
                              !compilerCache[ expr + " " ] &&
                              ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                              ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                      
                      
                      Severity: Major
                      Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                            if ( support.matchesSelector && documentIsHTML &&
                                !compilerCache[ expr + " " ] &&
                                ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                                ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                        
                        
                        Severity: Major
                        Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                              if ( support.matchesSelector && documentIsHTML &&
                                  !compilerCache[ expr + " " ] &&
                                  ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                                  ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
                          
                          
                          Severity: Major
                          Found in core/static/vendor/jquery/external/sizzle/dist/sizzle.js - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                    if (!this._loaded || (!e._simulated &&
                                            ((this.dragging && this.dragging.moved()) ||
                                             (this.boxZoom  && this.boxZoom.moved()))) ||
                                                L.DomEvent._skipped(e)) { return; }
                            Severity: Major
                            Found in core/static/vendor/leaflet/dist/leaflet-src.js - About 1 hr to fix

                              Function _fill_yearsView has 8 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                      _fill_yearsView: function(selector, cssClass, factor, step, currentYear, startYear, endYear, callback){

                                Function _fill_yearsView has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                        _fill_yearsView: function(selector, cssClass, factor, step, currentYear, startYear, endYear, callback){
                                Severity: Major
                                Found in core/static/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js - About 1 hr to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                              if ((options.initTime || options.defaultSelect || datetimepicker.data('changed')) && current_time.getHours() === parseInt(h, 10) && ((!isALlowTimesInit && options.step > 59) || current_time.getMinutes() === parseInt(m, 10))) {
                                                                  if (options.defaultSelect || datetimepicker.data('changed')) {
                                                                      classes.push('xdsoft_current');
                                                                  } else if (options.initTime) {
                                                                      classes.push('xdsoft_init_time');
                                  Severity: Major
                                  Found in core/static/vendor/datetimepicker/jquery.datetimepicker.js - About 1 hr to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                                if ((options.initTime || options.defaultSelect || datetimepicker.data('changed')) && current_time.getHours() === parseInt(h, 10) && ((!isALlowTimesInit && options.step > 59) || current_time.getMinutes() === parseInt(m, 10))) {
                                                                    if (options.defaultSelect || datetimepicker.data('changed')) {
                                                                        classes.push('xdsoft_current');
                                                                    } else if (options.initTime) {
                                                                        classes.push('xdsoft_init_time');

                                      Consider simplifying this complex logical expression.
                                      Open

                                                          } else if (e.type === 'mousedown' || e.type === 'mouseup' || e.type === 'mousemove' || e.type === 'mouseover' || e.type === 'mouseout' || e.type === 'mouseenter' || e.type === 'mouseleave') {
                                                              out.x = e.clientX;
                                                              out.y = e.clientY;
                                                          }
                                      Severity: Major
                                      Found in core/static/vendor/datetimepicker/jquery.datetimepicker.js - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                            } else if (e.type === 'mousedown' || e.type === 'mouseup' || e.type === 'mousemove' || e.type === 'mouseover' || e.type === 'mouseout' || e.type === 'mouseenter' || e.type === 'mouseleave') {
                                                                out.x = e.clientX;
                                                                out.y = e.clientY;
                                                            }
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language