bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

Function DateArray has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var DateArray = (function(){
        var extras = {
            get: function(i){
                return this.slice(i)[0];
            },

    Function DateArray has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var DateArray = (function(){
            var extras = {
                get: function(i){
                    return this.slice(i)[0];
                },
    Severity: Minor
    Found in core/static/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js - About 1 hr to fix

      Function datepickerPlugin has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var datepickerPlugin = function(option){
              var args = Array.apply(null, arguments);
              args.shift();
              var internal_return;
              this.each(function(){

        Function box has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                var box = page.evaluate(function(){
                    var lefts, rights, tops, bottoms,
                        padding = 10, // px
                        selection, show;
        
        

          Function done has 37 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function done() {
              if ( config.doneTimer && window.clearTimeout ) {
                  window.clearTimeout( config.doneTimer );
                  config.doneTimer = null;
              }
          Severity: Minor
          Found in core/static/vendor/jquery-expander/test/qunit/qunit.js - About 1 hr to fix

            Function _shift has 37 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            Tokenizer.prototype._shift = function () {
              // returning null signals EOF
              // returning undefined means the line was ignored
              if (this._next !== undefined) {
                var result = this._next;
            Severity: Minor
            Found in core/static/vendor/bootstrap/grunt/bs-lessdoc-parser.js - About 1 hr to fix

              Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function ajaxHandleResponses( s, jqXHR, responses ) {
                var firstDataType, ct, finalDataType, type,
                  contents = s.contents,
                  dataTypes = s.dataTypes;
              
              
              Severity: Minor
              Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

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

                jQuery.fx.stop = function() {
                    if ( window.cancelAnimationFrame ) {
                        window.cancelAnimationFrame( timerId );
                    } else {
                        window.clearInterval( timerId );
                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/effects.js on lines 674..682

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

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

                var symbolMap$8 = {
                    '1': '၁',
                    '2': '၂',
                    '3': '၃',
                    '4': '၄',
                Severity: Major
                Found in core/static/vendor/moment/min/moment-with-locales.js and 3 other locations - About 1 hr to fix
                core/static/vendor/moment/min/locales.js on lines 430..441
                core/static/vendor/moment/min/locales.js on lines 5408..5419
                core/static/vendor/moment/min/moment-with-locales.js on lines 4720..4731

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

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

                var symbolMap$8 = {
                    '1': '၁',
                    '2': '၂',
                    '3': '၃',
                    '4': '၄',
                Severity: Major
                Found in core/static/vendor/moment/min/locales.js and 3 other locations - About 1 hr to fix
                core/static/vendor/moment/min/locales.js on lines 430..441
                core/static/vendor/moment/min/moment-with-locales.js on lines 4720..4731
                core/static/vendor/moment/min/moment-with-locales.js on lines 9694..9705

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

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

                var symbolMap$2 = {
                    '1': '١',
                    '2': '٢',
                    '3': '٣',
                    '4': '٤',
                Severity: Major
                Found in core/static/vendor/moment/min/locales.js and 3 other locations - About 1 hr to fix
                core/static/vendor/moment/min/locales.js on lines 5408..5419
                core/static/vendor/moment/min/moment-with-locales.js on lines 4720..4731
                core/static/vendor/moment/min/moment-with-locales.js on lines 9694..9705

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

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

                var symbolMap$2 = {
                    '1': '١',
                    '2': '٢',
                    '3': '٣',
                    '4': '٤',
                Severity: Major
                Found in core/static/vendor/moment/min/moment-with-locales.js and 3 other locations - About 1 hr to fix
                core/static/vendor/moment/min/locales.js on lines 430..441
                core/static/vendor/moment/min/locales.js on lines 5408..5419
                core/static/vendor/moment/min/moment-with-locales.js on lines 9694..9705

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

                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.stop = function() {
                    if ( window.cancelAnimationFrame ) {
                        window.cancelAnimationFrame( timerId );
                    } else {
                        window.clearInterval( timerId );
                Severity: Major
                Found in core/static/vendor/jquery/src/effects.js and 1 other location - About 1 hr to fix
                core/static/vendor/jquery/dist/jquery.js on lines 7395..7403

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

                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

                                if (element.is('input')) {
                                    input.off({
                                        'focus': show
                                    });
                                } else if (component) {
                core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 1344..1351

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

                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

                        if (containerPos.x + containerWidth + paddingBR.x > size.x) { // right
                            dx = containerPos.x + containerWidth - size.x + paddingBR.x;
                        }
                Severity: Major
                Found in core/static/vendor/leaflet/dist/leaflet-src.js and 1 other location - About 1 hr to fix
                core/static/vendor/leaflet/dist/leaflet-src.js on lines 4089..4091

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

                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

                            js: {
                                files: [{
                                    src: 'js/bootstrap-datepicker.js',
                                    dest: 'js/bootstrap-datepicker.js'
                                }],
                Severity: Major
                Found in core/static/vendor/bootstrap-datepicker/Gruntfile.js and 1 other location - About 1 hr to fix
                core/static/vendor/bootstrap-datepicker/Gruntfile.js on lines 196..207

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

                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

                                if (element.is('input')) {
                                    input.on({
                                        'focus': show
                                    });
                                } else if (component) {
                core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 1363..1370

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

                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

                            npm: {
                                files: [{
                                    src: 'package.json',
                                    dest: 'package.json'
                                }],
                Severity: Major
                Found in core/static/vendor/bootstrap-datepicker/Gruntfile.js and 1 other location - About 1 hr to fix
                core/static/vendor/bootstrap-datepicker/Gruntfile.js on lines 184..195

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

                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

                        if (containerPos.y + containerHeight + paddingBR.y > size.y) { // bottom
                            dy = containerPos.y + containerHeight - size.y + paddingBR.y;
                        }
                Severity: Major
                Found in core/static/vendor/leaflet/dist/leaflet-src.js and 1 other location - About 1 hr to fix
                core/static/vendor/leaflet/dist/leaflet-src.js on lines 4083..4085

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

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

                export function defineLocale (name, config) {
                    if (config !== null) {
                        var parentConfig = baseConfig;
                        config.abbr = name;
                        if (locales[name] != null) {
                Severity: Minor
                Found in core/static/vendor/moment/src/lib/locale/locales.js - About 1 hr to fix
                  Severity
                  Category
                  Status
                  Source
                  Language