bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

Function computeStyleTests has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function computeStyleTests() {
    // Minified: var b,c,d,j
    var div, body, container, contents;

    body = document.getElementsByTagName( "body" )[ 0 ];
Severity: Minor
Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

    Function backdrop has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      Modal.prototype.backdrop = function (callback) {
        var that = this
        var animate = this.$element.hasClass('fade') ? 'fade' : ''
    
        if (this.isShown && this.options.backdrop) {
    Severity: Minor
    Found in core/static/vendor/bootstrap/dist/js/bootstrap.js - About 1 hr to fix

      Function backdrop has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        Modal.prototype.backdrop = function (callback) {
          var that = this
          var animate = this.$element.hasClass('fade') ? 'fade' : ''
      
          if (this.isShown && this.options.backdrop) {
      Severity: Minor
      Found in core/static/vendor/bootstrap/js/modal.js - About 1 hr to fix

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

        jQuery._evalUrl = function( url ) {
            return jQuery.ajax( {
                url: url,
        
                // Make this explicit, since user can override this through ajaxSetup (#11264)
        Severity: Major
        Found in core/static/vendor/jquery/dist/jquery.js and 1 other location - About 1 hr to fix
        core/static/vendor/jquery/src/manipulation/_evalUrl.js on lines 7..19

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 66.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 3 locations. Consider refactoring.
        Open

        export function makeGetSet (unit, keepTime) {
            return function (value) {
                if (value != null) {
                    set(this, unit, value);
                    hooks.updateOffset(this, keepTime);
        Severity: Major
        Found in core/static/vendor/moment/src/lib/moment/get-set.js and 2 other locations - About 1 hr to fix
        core/static/vendor/moment/min/moment-with-locales.js on lines 528..538
        core/static/vendor/moment/moment.js on lines 534..544

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 66.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

        jQuery._evalUrl = function( url ) {
            return jQuery.ajax( {
                url: url,
        
                // Make this explicit, since user can override this through ajaxSetup (#11264)
        Severity: Major
        Found in core/static/vendor/jquery/src/manipulation/_evalUrl.js and 1 other location - About 1 hr to fix
        core/static/vendor/jquery/dist/jquery.js on lines 9303..9315

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 66.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 3 locations. Consider refactoring.
        Open

        function makeGetSet (unit, keepTime) {
            return function (value) {
                if (value != null) {
                    set$1(this, unit, value);
                    hooks.updateOffset(this, keepTime);
        Severity: Major
        Found in core/static/vendor/moment/moment.js and 2 other locations - About 1 hr to fix
        core/static/vendor/moment/min/moment-with-locales.js on lines 528..538
        core/static/vendor/moment/src/lib/moment/get-set.js on lines 7..17

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 66.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Similar blocks of code found in 3 locations. Consider refactoring.
        Open

        function makeGetSet (unit, keepTime) {
            return function (value) {
                if (value != null) {
                    set$1(this, unit, value);
                    hooks.updateOffset(this, keepTime);
        Severity: Major
        Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 1 hr to fix
        core/static/vendor/moment/moment.js on lines 534..544
        core/static/vendor/moment/src/lib/moment/get-set.js on lines 7..17

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 66.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Function dispatch has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            dispatch: function( nativeEvent ) {
        
                // Make a writable jQuery.Event from the native event object
                var event = jQuery.event.fix( nativeEvent );
        
        
        Severity: Minor
        Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

          Function adjustCSS has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function adjustCSS( elem, prop, valueParts, tween ) {
              var adjusted,
                  scale = 1,
                  maxIterations = 20,
                  currentValue = tween ?
          Severity: Minor
          Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

            Function dispatch has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                dispatch: function( nativeEvent ) {
            
                    // Make a writable jQuery.Event from the native event object
                    var event = jQuery.event.fix( nativeEvent );
            
            
            Severity: Minor
            Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

              Function adjustCSS has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function adjustCSS( elem, prop, valueParts, tween ) {
                  var adjusted,
                      scale = 1,
                      maxIterations = 20,
                      currentValue = tween ?
              Severity: Minor
              Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

                Function dispatch has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    dispatch: function( nativeEvent ) {
                
                        // Make a writable jQuery.Event from the native event object
                        var event = jQuery.event.fix( nativeEvent );
                
                
                Severity: Minor
                Found in core/static/vendor/jquery/src/event.js - About 1 hr to fix

                  Function adjustCSS has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function adjustCSS( elem, prop, valueParts, tween ) {
                      var adjusted,
                          scale = 1,
                          maxIterations = 20,
                          currentValue = tween ?
                  Severity: Minor
                  Found in core/static/vendor/jquery/src/css/adjustCSS.js - About 1 hr to fix

                    Function updateNavArrows has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            updateNavArrows: function(){
                                if (!this._allow_update)
                                    return;
                    
                                var d = new Date(this.viewDate),

                      Function updateNavArrows has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              updateNavArrows: function(){
                                  if (!this._allow_update)
                                      return;
                      
                                  var d = new Date(this.viewDate),
                      Severity: Minor
                      Found in core/static/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js - About 1 hr to fix

                        Function getViewportOffset has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            getViewportOffset: function (element) {
                        
                                var top = 0,
                                    left = 0,
                                    el = element,
                        Severity: Minor
                        Found in core/static/vendor/leaflet/dist/leaflet-src.js - About 1 hr to fix

                          Function finish has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              finish: function() {
                                  config.current = this;
                                  if ( config.requireExpects && this.expected === null ) {
                                      this.pushFailure( "Expected number of assertions to be defined, but expect() was " +
                                          "not called.", this.stack );
                          Severity: Minor
                          Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 1 hr to fix

                            Function each has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              each: function( obj, callback, args ) {
                                var value,
                                  i = 0,
                                  length = obj.length,
                                  isArray = isArraylike( obj );
                            Severity: Minor
                            Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

                              Function activate has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                Tab.prototype.activate = function (element, container, callback) {
                                  var $active    = container.find('> .active')
                                  var transition = callback
                                    && $.support.transition
                                    && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
                              Severity: Minor
                              Found in core/static/vendor/bootstrap/dist/js/bootstrap.js - About 1 hr to fix
                                Severity
                                Category
                                Status
                                Source
                                Language