bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

function getSetRelativeTimeRounding (roundingFunction) {
    if (roundingFunction === undefined) {
        return round;
    }
    if (typeof(roundingFunction) === 'function') {
Severity: Minor
Found in core/static/vendor/moment/min/moment-with-locales.js and 1 other location - About 55 mins to fix
core/static/vendor/moment/moment.js on lines 4124..4133

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

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 createDate has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

function createDate (y, m, d, h, M, s, ms) {
Severity: Major
Found in core/static/vendor/moment/moment.js - About 50 mins to fix

    Function createDate has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    export function createDate (y, m, d, h, M, s, ms) {
    Severity: Major
    Found in core/static/vendor/moment/src/lib/create/date-from-array.js - About 50 mins to fix

      Function createDate has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      function createDate (y, m, d, h, M, s, ms) {
      Severity: Major
      Found in core/static/vendor/moment/min/moment-with-locales.js - About 50 mins to fix

        Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
        Severity: Major
        Found in core/static/vendor/jquery/dist/jquery.js - About 50 mins to fix

          Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
          Severity: Major
          Found in core/static/vendor/jquery/dist/jquery.slim.js - About 50 mins to fix

            Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
            Severity: Major
            Found in core/static/vendor/jquery/src/core/access.js - About 50 mins to fix

              Function _animateZoom has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  _animateZoom: function (center, zoom, origin, scale, delta, backwards, forTouchZoom) {
              Severity: Major
              Found in core/static/vendor/leaflet/dist/leaflet-src.js - About 50 mins to fix

                Function date has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    var date = function date(y,m,d,h,i,s,j){
                Severity: Major
                Found in core/static/vendor/bootstrap-datepicker/tests/assets/mock.js - About 50 mins to fix

                  Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
                  Severity: Major
                  Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 50 mins to fix

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

                    addParseToken('YYYY', function (input, array) {
                        array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
                    });
                    Severity: Major
                    Found in core/static/vendor/moment/moment.js and 2 other locations - About 50 mins to fix
                    core/static/vendor/moment/min/moment-with-locales.js on lines 1085..1087
                    core/static/vendor/moment/src/lib/units/year.js on lines 43..45

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

                    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

                    addFormatToken('Y', 0, 0, function () {
                        var y = this.year();
                        return y <= 9999 ? '' + y : '+' + y;
                    });
                    Severity: Major
                    Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 50 mins to fix
                    core/static/vendor/moment/moment.js on lines 1061..1064
                    core/static/vendor/moment/src/lib/units/year.js on lines 13..16

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

                    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

                    addFormatToken('Y', 0, 0, function () {
                        var y = this.year();
                        return y <= 9999 ? '' + y : '+' + y;
                    });
                    Severity: Major
                    Found in core/static/vendor/moment/src/lib/units/year.js and 2 other locations - About 50 mins to fix
                    core/static/vendor/moment/min/moment-with-locales.js on lines 1055..1058
                    core/static/vendor/moment/moment.js on lines 1061..1064

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

                    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

                    addFormatToken('Y', 0, 0, function () {
                        var y = this.year();
                        return y <= 9999 ? '' + y : '+' + y;
                    });
                    Severity: Major
                    Found in core/static/vendor/moment/moment.js and 2 other locations - About 50 mins to fix
                    core/static/vendor/moment/min/moment-with-locales.js on lines 1055..1058
                    core/static/vendor/moment/src/lib/units/year.js on lines 13..16

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

                    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

                    addParseToken('YYYY', function (input, array) {
                        array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
                    });
                    Severity: Major
                    Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 50 mins to fix
                    core/static/vendor/moment/moment.js on lines 1091..1093
                    core/static/vendor/moment/src/lib/units/year.js on lines 43..45

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

                    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

                    addParseToken('YYYY', function (input, array) {
                        array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
                    });
                    Severity: Major
                    Found in core/static/vendor/moment/src/lib/units/year.js and 2 other locations - About 50 mins to fix
                    core/static/vendor/moment/min/moment-with-locales.js on lines 1085..1087
                    core/static/vendor/moment/moment.js on lines 1091..1093

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

                    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

                    export default function absFloor (number) {
                        if (number < 0) {
                            // -0 -> 0
                            return Math.ceil(number) || 0;
                        } else {
                    Severity: Major
                    Found in core/static/vendor/moment/src/lib/utils/abs-floor.js and 2 other locations - About 50 mins to fix
                    core/static/vendor/moment/min/moment-with-locales.js on lines 247..254
                    core/static/vendor/moment/moment.js on lines 253..260

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

                    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 absFloor (number) {
                        if (number < 0) {
                            // -0 -> 0
                            return Math.ceil(number) || 0;
                        } else {
                    Severity: Major
                    Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 50 mins to fix
                    core/static/vendor/moment/moment.js on lines 253..260
                    core/static/vendor/moment/src/lib/utils/abs-floor.js on lines 1..8

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

                    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 absFloor (number) {
                        if (number < 0) {
                            // -0 -> 0
                            return Math.ceil(number) || 0;
                        } else {
                    Severity: Major
                    Found in core/static/vendor/moment/moment.js and 2 other locations - About 50 mins to fix
                    core/static/vendor/moment/min/moment-with-locales.js on lines 247..254
                    core/static/vendor/moment/src/lib/utils/abs-floor.js on lines 1..8

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

                    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

                                    decrementHours: function () {
                                        var newDate = date.clone().subtract(1, 'h');
                                        if (isValid(newDate, 'h')) {
                                            setValue(newDate);
                                        }
                    core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 1054..1059
                    core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 1068..1073
                    core/static/vendor/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js on lines 1089..1094

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

                    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

                    Severity
                    Category
                    Status
                    Source
                    Language