sfstanley/citydogshare

View on GitHub

Showing 576 of 576 total issues

File jquery-ui.js has 12607 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! jQuery UI - v1.11.4 - 2015-03-11
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, draggable.js, droppable.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js, menu.js, progressbar.js, resizable.js, selectable.js, selectmenu.js, slider.js, sortable.js, spinner.js, tabs.js, tooltip.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */

Severity: Major
Found in app/assets/javascripts/jquery-ui.js - About 1 mo to fix

    File galleria-1.4.2.js has 4395 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * Galleria v 1.4.2 2014-08-07
     * http://galleria.io
     *
     * Licensed under the MIT license
    Severity: Major
    Found in app/assets/javascripts/galleria-1.4.2.js - About 1 wk to fix

      File moment.js has 2280 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      //! moment.js
      //! version : 2.10.2
      //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
      //! license : MIT
      //! momentjs.com
      Severity: Major
      Found in app/assets/javascripts/moment.js - About 6 days to fix

        Function datetimepicker has 1099 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            $.fn.datetimepicker = function (opt) {
                var KEY0 = 48,
                    KEY9 = 57,
                    _KEY0 = 96,
                    _KEY9 = 105,
        Severity: Major
        Found in app/assets/javascripts/jquery.datetimepicker.js - About 5 days to fix

          File jquery.datetimepicker.js has 1768 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
           * @preserve jQuery DateTimePicker plugin v2.4.1
           * @homepage http://xdsoft.net/jqplugins/datetimepicker/
           * (c) 2014, Chupurnov Valeriy.
           */
          Severity: Major
          Found in app/assets/javascripts/jquery.datetimepicker.js - About 4 days to fix

            Function Utils has 401 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                Utils = (function() {
            
                    return {
            
                        // legacy support for clearTimer
            Severity: Major
            Found in app/assets/javascripts/galleria-1.4.2.js - About 2 days to fix

              Function _init has 341 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _init: function() {
              
                      var self = this,
                          options = this._options;
              
              
              Severity: Major
              Found in app/assets/javascripts/galleria-1.4.2.js - About 1 day to fix

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

                    _adjustOffsetFromHelper: function(obj) {
                        if (typeof obj === "string") {
                            obj = obj.split(" ");
                        }
                        if ($.isArray(obj)) {
                Severity: Major
                Found in app/assets/javascripts/jquery-ui.js and 1 other location - About 1 day to fix
                app/assets/javascripts/jquery-ui.js on lines 6214..6233

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

                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

                    _adjustOffsetFromHelper: function(obj) {
                        if (typeof obj === "string") {
                            obj = obj.split(" ");
                        }
                        if ($.isArray(obj)) {
                Severity: Major
                Found in app/assets/javascripts/jquery-ui.js and 1 other location - About 1 day to fix
                app/assets/javascripts/jquery-ui.js on lines 14443..14462

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

                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 ( data.collisionHeight > outerHeight ) {
                                // element is initially over the top of within
                                if ( overTop > 0 && overBottom <= 0 ) {
                                    newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset;
                                    position.top += overTop - newOverBottom;
                Severity: Major
                Found in app/assets/javascripts/jquery-ui.js and 1 other location - About 1 day to fix
                app/assets/javascripts/jquery-ui.js on lines 1361..1386

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

                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 ( data.collisionWidth > outerWidth ) {
                                // element is initially over the left side of within
                                if ( overLeft > 0 && overRight <= 0 ) {
                                    newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset;
                                    position.left += overLeft - newOverRight;
                Severity: Major
                Found in app/assets/javascripts/jquery-ui.js and 1 other location - About 1 day to fix
                app/assets/javascripts/jquery-ui.js on lines 1398..1423

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

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

                            datetimepicker.setOptions = function (_options) {
                                options = $.extend(true, {}, options, _options);
                
                                if (_options.allowTimes && $.isArray(_options.allowTimes) && _options.allowTimes.length) {
                                    options.allowTimes = $.extend(true, [], _options.allowTimes);
                Severity: Major
                Found in app/assets/javascripts/jquery.datetimepicker.js - About 1 day to fix

                  Function _create has 203 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _create: function() {
                          // Some browsers only repeat keydown events, not keypress events,
                          // so we use the suppressKeyPress flag to determine if we've already
                          // handled the keydown event. #7269
                          // Unfortunately the code for & in keypress is the same as the up arrow,
                  Severity: Major
                  Found in app/assets/javascripts/jquery-ui.js - About 1 day to fix

                    Function Finger has 195 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    Galleria.Finger = (function() {
                    
                        var abs = M.abs;
                    
                        // test for translate3d support
                    Severity: Major
                    Found in app/assets/javascripts/galleria-1.4.2.js - About 7 hrs to fix

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

                                  if ( overLeft < 0 ) {
                                      newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth - outerWidth - withinOffset;
                                      if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {
                                          position.left += myOffset + atOffset + offset;
                                      }
                      Severity: Major
                      Found in app/assets/javascripts/jquery-ui.js and 1 other location - About 7 hrs to fix
                      app/assets/javascripts/jquery-ui.js on lines 1483..1493

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

                      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 ( overTop < 0 ) {
                                      newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset;
                                      if ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) {
                                          position.top += myOffset + atOffset + offset;
                                      }
                      Severity: Major
                      Found in app/assets/javascripts/jquery-ui.js and 1 other location - About 7 hrs to fix
                      app/assets/javascripts/jquery-ui.js on lines 1449..1459

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

                      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 (!o.axis || o.axis !== "y") {
                                      if (event.pageX - $(document).scrollLeft() < o.scrollSensitivity) {
                                          scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
                                      } else if ($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) {
                                          scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
                      Severity: Major
                      Found in app/assets/javascripts/jquery-ui.js and 1 other location - About 7 hrs to fix
                      app/assets/javascripts/jquery-ui.js on lines 6798..6804

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

                      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 (!o.axis || o.axis !== "x") {
                                      if (event.pageY - $(document).scrollTop() < o.scrollSensitivity) {
                                          scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
                                      } else if ($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) {
                                          scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
                      Severity: Major
                      Found in app/assets/javascripts/jquery-ui.js and 1 other location - About 7 hrs to fix
                      app/assets/javascripts/jquery-ui.js on lines 6806..6812

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

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

                          _show : function() {
                      
                              // shortcuts
                              var self = this,
                                  queue = this._queue[ 0 ],
                      Severity: Major
                      Found in app/assets/javascripts/galleria-1.4.2.js - About 7 hrs to fix

                        Function _createThumbnails has 177 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _createThumbnails : function( push ) {
                        
                                this.get( 'total' ).innerHTML = this.getDataLength();
                        
                                var src,
                        Severity: Major
                        Found in app/assets/javascripts/galleria-1.4.2.js - About 7 hrs to fix
                          Severity
                          Category
                          Status
                          Source
                          Language