sfstanley/citydogshare

View on GitHub

Showing 576 of 576 total issues

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

    prependChild : function( parentID, childID ) {
        this.$( parentID ).prepend( this.get( childID ) || childID );
        return this;
    },
Severity: Minor
Found in app/assets/javascripts/galleria-1.4.2.js and 1 other location - About 40 mins to fix
app/assets/javascripts/galleria-1.4.2.js on lines 4585..4588

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

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

                            var splittedHours   = +([$(this).val()[0], $(this).val()[1]].join('')),
Severity: Minor
Found in app/assets/javascripts/jquery.datetimepicker.js and 1 other location - About 40 mins to fix
app/assets/javascripts/jquery.datetimepicker.js on lines 1083..1083

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

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

                    if (currentTime === undefined || currentTime === null) {
                        _xdsoft_datetime.currentTime = _xdsoft_datetime.now();
                        currentTime = _xdsoft_datetime.currentTime;
                    }
Severity: Minor
Found in app/assets/javascripts/jquery.datetimepicker.js and 1 other location - About 40 mins to fix
app/assets/javascripts/jquery.datetimepicker.js on lines 1624..1627

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

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

        var complete = (function( data, next, active, queue, thumb ) {
Severity: Minor
Found in app/assets/javascripts/galleria-1.4.2.js - About 35 mins to fix

    Function galleriaOut has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        galleriaOut: function (_, t, b, c, d) {
    Severity: Minor
    Found in app/assets/javascripts/galleria-1.4.2.js - About 35 mins to fix

      Function list has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          function list (format, index, field, count, setter) {
      Severity: Minor
      Found in app/assets/javascripts/moment.js - About 35 mins to fix

        Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            init : function (scope, libraries, method, options, response) {
        Severity: Minor
        Found in app/assets/javascripts/foundation.js - About 35 mins to fix

          Function substituteTimeAgo has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
          Severity: Minor
          Found in app/assets/javascripts/moment.js - About 35 mins to fix

            Function _dialogDatepicker has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                _dialogDatepicker: function(input, date, onSelect, settings, pos) {
            Severity: Minor
            Found in app/assets/javascripts/jquery-ui.js - About 35 mins to fix

              Function easeout has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      this.easeout = function (x, t, b, c, d) {
              Severity: Minor
              Found in app/assets/javascripts/galleria-1.4.2.js - About 35 mins to fix

                Function dayOfYearFromWeeks has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    function dayOfYearFromWeeks(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek) {
                Severity: Minor
                Found in app/assets/javascripts/moment.js - About 35 mins to fix

                  Function createLocalOrUTC has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      function createLocalOrUTC (input, format, locale, strict, isUTC) {
                  Severity: Minor
                  Found in app/assets/javascripts/moment.js - About 35 mins to fix

                    Function galleriaIn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        galleriaIn: function (_, t, b, c, d) {
                    Severity: Minor
                    Found in app/assets/javascripts/galleria-1.4.2.js - About 35 mins to fix

                      Function galleria has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          galleria: function (_, t, b, c, d) {
                      Severity: Minor
                      Found in app/assets/javascripts/galleria-1.4.2.js - About 35 mins to fix

                        Function easing has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                    easing: function(x,t,b,c,d) {
                        Severity: Minor
                        Found in app/assets/javascripts/galleria-1.4.2.js - About 35 mins to fix

                          Function switchClass has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              switchClass: function( remove, add, speed, easing, callback) {
                          Severity: Minor
                          Found in app/assets/javascripts/jquery-ui.js - About 35 mins to fix

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

                                detachKeyboard : function() {
                                    this._keyboard.detach.apply( this._keyboard, Utils.array( arguments ) );
                                    return this;
                                },
                            Severity: Minor
                            Found in app/assets/javascripts/galleria-1.4.2.js and 2 other locations - About 35 mins to fix
                            app/assets/javascripts/galleria-1.4.2.js on lines 4299..4302
                            app/assets/javascripts/galleria-1.4.2.js on lines 4310..4313

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

                            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

                                                        window.setTimeout(function() {
                                                            fullscreen.scale();
                                                            self.$('container').css('opacity', 1);
                                                        }, 50);
                            Severity: Minor
                            Found in app/assets/javascripts/galleria-1.4.2.js and 1 other location - About 35 mins to fix
                            app/assets/javascripts/galleria-1.4.2.js on lines 1695..1698

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

                            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

                                openLightbox: function() {
                                    this._lightbox.show.apply( this._lightbox, Utils.array( arguments ) );
                                    return this;
                                },
                            Severity: Minor
                            Found in app/assets/javascripts/galleria-1.4.2.js and 2 other locations - About 35 mins to fix
                            app/assets/javascripts/galleria-1.4.2.js on lines 4310..4313
                            app/assets/javascripts/galleria-1.4.2.js on lines 4568..4571

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

                            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

                                                sortable.offset.parent.top -= draggable.offset.parent.top -
                                                    sortable.offset.parent.top;
                            Severity: Minor
                            Found in app/assets/javascripts/jquery-ui.js and 1 other location - About 35 mins to fix
                            app/assets/javascripts/jquery-ui.js on lines 6650..6651

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

                            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