bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

Function guessDate has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        guessDate: function (vDateStr, vFormat) {
            if (typeof vDateStr !== 'string') {
                return vDateStr;
            }
            var self = this, vParts = vDateStr.replace(self.separators, '\0').split('\0'), vPattern = /^[djmn]/g, len,
Severity: Major
Found in core/static/vendor/php-date-formatter/js/php-date-formatter.js - About 2 hrs to fix

    Function translate$5 has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function translate$5(number, withoutSuffix, key, isFuture) {
        var result = number + ' ';
        switch (key) {
            case 's':
                return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
    Severity: Major
    Found in core/static/vendor/moment/min/locales.js - About 2 hrs to fix

      Function place has 56 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  place = function () {
                      var position = (component || element).position(),
                          offset = (component || element).offset(),
                          vertical = options.widgetPositioning.vertical,
                          horizontal = options.widgetPositioning.horizontal,

        Function diffCleanupEfficiency has 56 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            DiffMatchPatch.prototype.diffCleanupEfficiency = function( diffs ) {
                var changes, equalities, equalitiesLength, lastequality,
                    pointer, preIns, preDel, postIns, postDel;
                changes = false;
                equalities = []; // Stack of indices where equalities are found.
        Severity: Major
        Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 2 hrs to fix

          Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function ajaxConvert( s, response, jqXHR, isSuccess ) {
            var conv2, current, conv, tmp, prev,
              converters = {},
              // Work with a copy of dataTypes in case we need to modify it for conversion
              dataTypes = s.dataTypes.slice();
          Severity: Major
          Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 2 hrs to fix

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

            function setGlobalEval( elems, refElements ) {
                var i = 0,
                    l = elems.length;
            
                for ( ; i < l; i++ ) {
            Severity: Major
            Found in core/static/vendor/jquery/src/manipulation/setGlobalEval.js and 2 other locations - About 2 hrs to fix
            core/static/vendor/jquery/dist/jquery.js on lines 4745..4756
            core/static/vendor/jquery/dist/jquery.slim.js on lines 4745..4756

            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 79.

            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 3 locations. Consider refactoring.
            Open

            function setGlobalEval( elems, refElements ) {
                var i = 0,
                    l = elems.length;
            
                for ( ; i < l; i++ ) {
            Severity: Major
            Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 2 hrs to fix
            core/static/vendor/jquery/dist/jquery.js on lines 4745..4756
            core/static/vendor/jquery/src/manipulation/setGlobalEval.js on lines 8..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 79.

            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 3 locations. Consider refactoring.
            Open

            function defaultParsingFlags() {
                // We need to deep clone this object.
                return {
                    empty           : false,
                    unusedTokens    : [],
            Severity: Major
            Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 2 hrs to fix
            core/static/vendor/moment/moment.js on lines 86..102
            core/static/vendor/moment/src/lib/create/parsing-flags.js on lines 1..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 79.

            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 3 locations. Consider refactoring.
            Open

            function setGlobalEval( elems, refElements ) {
                var i = 0,
                    l = elems.length;
            
                for ( ; i < l; i++ ) {
            Severity: Major
            Found in core/static/vendor/jquery/dist/jquery.js and 2 other locations - About 2 hrs to fix
            core/static/vendor/jquery/dist/jquery.slim.js on lines 4745..4756
            core/static/vendor/jquery/src/manipulation/setGlobalEval.js on lines 8..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 79.

            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 3 locations. Consider refactoring.
            Open

            function defaultParsingFlags() {
                // We need to deep clone this object.
                return {
                    empty           : false,
                    unusedTokens    : [],
            Severity: Major
            Found in core/static/vendor/moment/src/lib/create/parsing-flags.js and 2 other locations - About 2 hrs to fix
            core/static/vendor/moment/min/moment-with-locales.js on lines 80..96
            core/static/vendor/moment/moment.js on lines 86..102

            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 79.

            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 3 locations. Consider refactoring.
            Open

            function defaultParsingFlags() {
                // We need to deep clone this object.
                return {
                    empty           : false,
                    unusedTokens    : [],
            Severity: Major
            Found in core/static/vendor/moment/moment.js and 2 other locations - About 2 hrs to fix
            core/static/vendor/moment/min/moment-with-locales.js on lines 80..96
            core/static/vendor/moment/src/lib/create/parsing-flags.js on lines 1..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 79.

            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.fx.start = function() {
                if ( !timerId ) {
                    timerId = window.requestAnimationFrame ?
                        window.requestAnimationFrame( raf ) :
                        window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
            Severity: Major
            Found in core/static/vendor/jquery/src/effects.js and 1 other location - About 2 hrs to fix
            core/static/vendor/jquery/dist/jquery.js on lines 7387..7393

            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 79.

            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.fx.start = function() {
                if ( !timerId ) {
                    timerId = window.requestAnimationFrame ?
                        window.requestAnimationFrame( raf ) :
                        window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
            Severity: Major
            Found in core/static/vendor/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
            core/static/vendor/jquery/src/effects.js on lines 666..672

            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 79.

            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 2 locations. Consider refactoring.
            Open

            support.createHTMLDocument = ( function() {
                var body = document.implementation.createHTMLDocument( "" ).body;
                body.innerHTML = "<form></form><form></form>";
                return body.childNodes.length === 2;
            } )();
            Severity: Major
            Found in core/static/vendor/jquery/dist/jquery.js and 1 other location - About 2 hrs to fix
            core/static/vendor/jquery/dist/jquery.slim.js on lines 7734..7738

            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 79.

            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 2 locations. Consider refactoring.
            Open

            support.createHTMLDocument = ( function() {
                var body = document.implementation.createHTMLDocument( "" ).body;
                body.innerHTML = "<form></form><form></form>";
                return body.childNodes.length === 2;
            } )();
            Severity: Major
            Found in core/static/vendor/jquery/dist/jquery.slim.js and 1 other location - About 2 hrs to fix
            core/static/vendor/jquery/dist/jquery.js on lines 9729..9733

            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 79.

            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 init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                init = jQuery.fn.init = function( selector, context, root ) {
                    var match, elem;
            
                    // HANDLE: $(""), $(null), $(undefined), $(false)
                    if ( !selector ) {
            Severity: Major
            Found in core/static/vendor/jquery/dist/jquery.js - About 2 hrs to fix

              Function init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  init = jQuery.fn.init = function( selector, context, root ) {
                      var match, elem;
              
                      // HANDLE: $(""), $(null), $(undefined), $(false)
                      if ( !selector ) {
              Severity: Major
              Found in core/static/vendor/jquery/dist/jquery.slim.js - About 2 hrs to fix

                Function init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    init = jQuery.fn.init = function( selector, context, root ) {
                        var match, elem;
                
                        // HANDLE: $(""), $(null), $(undefined), $(false)
                        if ( !selector ) {
                Severity: Major
                Found in core/static/vendor/jquery/src/core/init.js - About 2 hrs to fix

                  Function show has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    Tooltip.prototype.show = function () {
                      var e = $.Event('show.bs.' + this.type)
                  
                      if (this.hasContent() && this.enabled) {
                        this.$element.trigger(e)
                  Severity: Major
                  Found in core/static/vendor/bootstrap/js/tooltip.js - About 2 hrs to fix

                    Function show has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      Tooltip.prototype.show = function () {
                        var e = $.Event('show.bs.' + this.type)
                    
                        if (this.hasContent() && this.enabled) {
                          this.$element.trigger(e)
                    Severity: Major
                    Found in core/static/vendor/bootstrap/dist/js/bootstrap.js - About 2 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language