bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

            hide = function () {
                var transitioning = false;
                if (!widget) {
                    return picker;
                }

    Function clipPolygon has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    L.PolyUtil.clipPolygon = function (points, bounds) {
        var clippedPoints,
            edges = [1, 4, 2, 8],
            i, j, k,
            a, b,
    Severity: Minor
    Found in core/static/vendor/leaflet/dist/leaflet-src.js - About 1 hr to fix

      Function invalidateSize has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          invalidateSize: function (options) {
              if (!this._loaded) { return this; }
      
              options = L.extend({
                  animate: false,
      Severity: Minor
      Found in core/static/vendor/leaflet/dist/leaflet-src.js - About 1 hr to fix

        Function object has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    "object" : function(b, a) {
                        var i, j, loop;
                        var eq = true; // unless we can proove it
                        var aProperties = [], bProperties = []; // collection of
                                                                // strings
        Severity: Minor
        Found in core/static/vendor/bootstrap-datepicker/tests/assets/qunit.js - About 1 hr to fix

          Function diffCommonOverlap has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              DiffMatchPatch.prototype.diffCommonOverlap = function( text1, text2 ) {
                  var text1Length, text2Length, textLength,
                      best, length, pattern, found;
                  // Cache the text lengths to prevent multiple calls.
                  text1Length = text1.length;
          Severity: Minor
          Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 1 hr to fix

            Function applyPlacement has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              Tooltip.prototype.applyPlacement = function (offset, placement) {
                var $tip   = this.tip()
                var width  = $tip[0].offsetWidth
                var height = $tip[0].offsetHeight
            
            
            Severity: Minor
            Found in core/static/vendor/bootstrap/dist/js/bootstrap.js - About 1 hr to fix

              Function applyPlacement has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                Tooltip.prototype.applyPlacement = function (offset, placement) {
                  var $tip   = this.tip()
                  var width  = $tip[0].offsetWidth
                  var height = $tip[0].offsetHeight
              
              
              Severity: Minor
              Found in core/static/vendor/bootstrap/js/tooltip.js - About 1 hr to fix

                Function configFromStringAndArray has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                export function configFromStringAndArray(config) {
                    var tempConfig,
                        bestMoment,
                
                        scoreToBeat,
                Severity: Minor
                Found in core/static/vendor/moment/src/lib/create/from-string-and-array.js - About 1 hr to fix

                  Function configFromStringAndArray has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function configFromStringAndArray(config) {
                      var tempConfig,
                          bestMoment,
                  
                          scoreToBeat,
                  Severity: Minor
                  Found in core/static/vendor/moment/moment.js - About 1 hr to fix

                    Function configFromStringAndArray has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function configFromStringAndArray(config) {
                        var tempConfig,
                            bestMoment,
                    
                            scoreToBeat,
                    Severity: Minor
                    Found in core/static/vendor/moment/min/moment-with-locales.js - About 1 hr to fix

                      Function removeClass has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          removeClass: function( value ) {
                              var classes, elem, cur, curValue, clazz, j, finalValue,
                                  i = 0;
                      
                              if ( jQuery.isFunction( value ) ) {
                      Severity: Minor
                      Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

                        Function speed has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        jQuery.speed = function( speed, easing, fn ) {
                            var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
                                complete: fn || !fn && easing ||
                                    jQuery.isFunction( speed ) && speed,
                                duration: speed,
                        Severity: Minor
                        Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

                          Function removeClass has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              removeClass: function( value ) {
                                  var classes, elem, cur, curValue, clazz, j, finalValue,
                                      i = 0;
                          
                                  if ( jQuery.isFunction( value ) ) {
                          Severity: Minor
                          Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

                            Function removeClass has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                removeClass: function( value ) {
                                    var classes, elem, cur, curValue, clazz, j, finalValue,
                                        i = 0;
                            
                                    if ( jQuery.isFunction( value ) ) {
                            Severity: Minor
                            Found in core/static/vendor/jquery/src/attributes/classes.js - About 1 hr to fix

                              Function speed has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              jQuery.speed = function( speed, easing, fn ) {
                                  var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
                                      complete: fn || !fn && easing ||
                                          jQuery.isFunction( speed ) && speed,
                                      duration: speed,
                              Severity: Minor
                              Found in core/static/vendor/jquery/src/effects.js - About 1 hr to fix

                                Function datetimepicker has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    $.fn.datetimepicker = function (options) {
                                        options = options || {};
                                
                                        var args = Array.prototype.slice.call(arguments, 1),
                                            isInstance = true,

                                  Function _onDragEnd has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      _onDragEnd: function (e) {
                                          var map = this._map,
                                              options = map.options,
                                              delay = +new Date() - this._lastTime,
                                  
                                  
                                  Severity: Minor
                                  Found in core/static/vendor/leaflet/dist/leaflet-src.js - About 1 hr to fix

                                    Function dateUpdated has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            dateUpdated: function(e){
                                                // `this.updating` is a workaround for preventing infinite recursion
                                                // between `changeDate` triggering and `setUTCDate` calling.  Until
                                                // there is a better mechanism.
                                                if (this.updating)
                                    Severity: Minor
                                    Found in core/static/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js - About 1 hr to fix

                                      Function updateDecades has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                                  updateDecades = function () {
                                                      var decadesView = widget.find('.datepicker-decades'),
                                                          decadesViewHeader = decadesView.find('th'),
                                                          startDecade = moment({ y: viewDate.year() - (viewDate.year() % 100) - 1 }),
                                                          endDecade = startDecade.clone().add(100, 'y'),

                                        Function dateUpdated has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                dateUpdated: function(e){
                                                    // `this.updating` is a workaround for preventing infinite recursion
                                                    // between `changeDate` triggering and `setUTCDate` calling.  Until
                                                    // there is a better mechanism.
                                                    if (this.updating)
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language