zammad/zammad

View on GitHub
app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js

Summary

Maintainability
F
2 mos
Test Coverage

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

/*! jQuery UI - v1.11.4 - 2017-10-12
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, sortable.js, accordion.js, autocomplete.js, menu.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */

Severity: Major
Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 wk 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/app/lib/core/jquery-ui-1.11.4.js - About 1 day to fix

      Function position has 147 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      $.fn.position = function( options ) {
          if ( !options || !options.of ) {
              return _position.apply( this, arguments );
          }
      
      
      Severity: Major
      Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 5 hrs to fix

        Function _refresh has 76 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _refresh: function() {
                var maxHeight,
                    options = this.options,
                    heightStyle = options.heightStyle,
                    parent = this.element.parent();
        Severity: Major
        Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 3 hrs to fix

          Function drag has 76 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              drag: function( event, ui, draggable ) {
                  $.each( draggable.sortables, function() {
                      var innermostIntersecting = false,
                          sortable = this;
          
          
          Severity: Major
          Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 3 hrs to fix

            Function _mouseStart has 75 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _mouseStart: function(event, overrideHandle, noActivation) {
            
                    var i, body,
                        o = this.options;
            
            
            Severity: Major
            Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 3 hrs to fix

              Function _mouseDrag has 75 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _mouseDrag: function(event) {
                      var i, item, itemElement, intersection,
                          o = this.options,
                          scrolled = false;
              
              
              Severity: Major
              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 3 hrs to fix

                Function widget has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                $.widget = function( name, base, prototype ) {
                    var fullName, existingConstructor, constructor, basePrototype,
                        // proxiedPrototype allows the provided prototype to remain unmodified
                        // so that it can be used as a mixin for multiple widgets (#8876)
                        proxiedPrototype = {},
                Severity: Major
                Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 2 hrs to fix

                  Function _clear has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _clear: function(event, noPropagation) {
                  
                          this.reverting = false;
                          // We delay all events that have to be triggered to after the point where the placeholder has been removed and
                          // everything else normalized again
                  Severity: Major
                  Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 2 hrs to fix

                    Function _contactContainers has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _contactContainers: function(event) {
                            var i, j, dist, itemWithLeastDistance, posProperty, sizeProperty, cur, nearBottom, floating, axis,
                                innermostContainer = null,
                                innermostIndex = null;
                    
                    
                    Severity: Major
                    Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 2 hrs to fix

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

                          _create: function() {
                              this.activeMenu = this.element;
                      
                              // Flag used to prevent firing of the click handler
                              // as the event bubbles up through nested menus
                      Severity: Major
                      Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 2 hrs to fix

                        Function _keydown has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _keydown: function( event ) {
                                var match, prev, character, skip,
                                    preventDefault = true;
                        
                                switch ( event.keyCode ) {
                        Severity: Major
                        Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 2 hrs to fix

                          Function _generatePosition has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _generatePosition: function( event, constrainPosition ) {
                          
                                  var containment, co, top, left,
                                      o = this.options,
                                      scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] ),
                          Severity: Major
                          Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 2 hrs to fix

                            Function drag has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                drag: function( event, ui, inst ) {
                            
                                    var ts, bs, ls, rs, l, r, t, b, i, first,
                                        o = inst.options,
                                        d = o.snapTolerance,
                            Severity: Major
                            Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 2 hrs to fix

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

                                  _setContainment: function() {
                              
                                      var isUserScrollable, c, ce,
                                          o = this.options,
                                          document = this.document[ 0 ];
                              Severity: Major
                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 2 hrs to fix

                                Function keydown has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                            keydown: function( event ) {
                                                if ( this.element.prop( "readOnly" ) ) {
                                                    suppressKeyPress = true;
                                                    suppressInput = true;
                                                    suppressKeyPressRepeat = true;
                                Severity: Major
                                Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 2 hrs to fix

                                  Function _animate has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      _animate: function( toShow, toHide, data ) {
                                          var total, easing, duration,
                                              that = this,
                                              adjust = 0,
                                              boxSizing = toShow.css( "box-sizing" ),
                                  Severity: Major
                                  Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 2 hrs to fix

                                    Function _generatePosition has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        _generatePosition: function(event) {
                                    
                                            var top, left,
                                                o = this.options,
                                                pageX = event.pageX,
                                    Severity: Minor
                                    Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                      Function bridge has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      $.widget.bridge = function( name, object ) {
                                          var fullName = object.prototype.widgetFullName || name;
                                          $.fn[ name ] = function( options ) {
                                              var isMethodCall = typeof options === "string",
                                                  args = widget_slice.call( arguments, 1 ),
                                      Severity: Minor
                                      Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                        Function name has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            $.fn[ name ] = function( options ) {
                                                var isMethodCall = typeof options === "string",
                                                    args = widget_slice.call( arguments, 1 ),
                                                    returnValue = this;
                                        
                                        
                                        Severity: Minor
                                        Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                          Function refresh has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                              refresh: function() {
                                                  var menus, items,
                                                      that = this,
                                                      icon = this.options.icons.submenu,
                                                      submenus = this.element.find( this.options.menus );
                                          Severity: Minor
                                          Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                            Consider simplifying this complex logical expression.
                                            Open

                                                    if (this.floating && horizontalDirection) {
                                                        return ((horizontalDirection === "right" && isOverRightHalf) || (horizontalDirection === "left" && !isOverRightHalf));
                                                    } else {
                                                        return verticalDirection && ((verticalDirection === "down" && isOverBottomHalf) || (verticalDirection === "up" && !isOverBottomHalf));
                                                    }
                                            Severity: Critical
                                            Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                              Consider simplifying this complex logical expression.
                                              Open

                                                      if(!(/^(document|window|parent)$/).test(o.containment)) {
                                                          ce = $(o.containment)[0];
                                                          co = $(o.containment).offset();
                                                          over = ($(ce).css("overflow") !== "hidden");
                                              
                                              
                                              Severity: Critical
                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                Function _eventHandler has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    _eventHandler: function( event ) {
                                                        var options = this.options,
                                                            active = this.active,
                                                            clicked = $( event.currentTarget ),
                                                            clickedIsActive = clicked[ 0 ] === active[ 0 ],
                                                Severity: Minor
                                                Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                  Function _mouseDown has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                      _mouseDown: function(event) {
                                                          // don't let more than one widget handle mouseStart
                                                          if ( mouseHandled ) {
                                                              return;
                                                          }
                                                  Severity: Minor
                                                  Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                    Function intersect has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                    $.ui.intersect = (function() {
                                                        function isOverAxis( x, reference, size ) {
                                                            return ( x >= reference ) && ( x < ( reference + size ) );
                                                        }
                                                    
                                                    
                                                    Severity: Minor
                                                    Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                      Function _toggle has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                          _toggle: function( data ) {
                                                              var toShow = data.newPanel,
                                                                  toHide = this.prevShow.length ? this.prevShow : data.oldPanel;
                                                      
                                                              // handle activating a panel during the animation for another activation
                                                      Severity: Minor
                                                      Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                        Function _createPlaceholder has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                            _createPlaceholder: function(that) {
                                                                that = that || this;
                                                                var className,
                                                                    o = that.options;
                                                        
                                                        
                                                        Severity: Minor
                                                        Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                          Function drag has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                              drag: function( event, ui, i  ) {
                                                          
                                                                  var o = i.options,
                                                                      scrolled = false,
                                                                      scrollParent = i.scrollParentNotHidden[ 0 ],
                                                          Severity: Minor
                                                          Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                            Function _on has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                                _on: function( suppressDisabledCheck, element, handlers ) {
                                                                    var delegateElement,
                                                                        instance = this;
                                                            
                                                                    // no suppressDisabledCheck flag, shuffle arguments
                                                            Severity: Minor
                                                            Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

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

                                                                  drag: function( draggable, event ) {
                                                              
                                                                      // If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
                                                                      if ( draggable.options.refreshPositions ) {
                                                                          $.ui.ddmanager.prepareOffsets( draggable, event );
                                                              Severity: Minor
                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                Function _mouseStart has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                    _mouseStart: function(event) {
                                                                
                                                                        var o = this.options;
                                                                
                                                                        //Create and append the visible helper
                                                                Severity: Minor
                                                                Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                  Function cancel has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                      cancel: function() {
                                                                  
                                                                          if(this.dragging) {
                                                                  
                                                                              this._mouseUp({ target: null });
                                                                  Severity: Minor
                                                                  Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                    Function _mouseCapture has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                        _mouseCapture: function(event, overrideHandle) {
                                                                            var currentItem = null,
                                                                                validHandle = false,
                                                                                that = this;
                                                                    
                                                                    
                                                                    Severity: Minor
                                                                    Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                      Function refreshPositions has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                          refreshPositions: function(fast) {
                                                                      
                                                                              // Determine whether items are being displayed horizontally
                                                                              this.floating = this.items.length ?
                                                                                  this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
                                                                      Severity: Minor
                                                                      Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                        Function _keydown has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                            _keydown: function( event ) {
                                                                                if ( event.altKey || event.ctrlKey ) {
                                                                                    return;
                                                                                }
                                                                        
                                                                        
                                                                        Severity: Minor
                                                                        Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                          Function top has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                                  top: function( position, data ) {
                                                                                      var within = data.within,
                                                                                          withinOffset = within.offset.top + within.scrollTop,
                                                                                          outerHeight = within.height,
                                                                                          offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
                                                                          Severity: Minor
                                                                          Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                            Function _refreshItems has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                _refreshItems: function(event) {
                                                                            
                                                                                    this.items = [];
                                                                                    this.containers = [this];
                                                                            
                                                                            
                                                                            Severity: Minor
                                                                            Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                              Function option has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                              Open

                                                                                  option: function( key, value ) {
                                                                                      var options = key,
                                                                                          parts,
                                                                                          curOption,
                                                                                          i;
                                                                              Severity: Minor
                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                Function left has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                Open

                                                                                        left: function( position, data ) {
                                                                                            var within = data.within,
                                                                                                withinOffset = within.offset.left + within.scrollLeft,
                                                                                                outerWidth = within.width,
                                                                                                offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
                                                                                Severity: Minor
                                                                                Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                  Function _drop has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                      _drop: function( event, custom ) {
                                                                                  
                                                                                          var draggable = custom || $.ui.ddmanager.current,
                                                                                              childrenIntersection = false;
                                                                                  
                                                                                  
                                                                                  Severity: Minor
                                                                                  Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                    Function _destroy has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                        _destroy: function() {
                                                                                            // Destroy (sub)menus
                                                                                            this.element
                                                                                                .removeAttr( "aria-activedescendant" )
                                                                                                .find( ".ui-menu" ).addBack()
                                                                                    Severity: Minor
                                                                                    Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                      Function _createWidget has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      Open

                                                                                          _createWidget: function( options, element ) {
                                                                                              element = $( element || this.defaultElement || this )[ 0 ];
                                                                                              this.element = $( element );
                                                                                              this.uuid = widget_uuid++;
                                                                                              this.eventNamespace = "." + this.widgetName + this.uuid;
                                                                                      Severity: Minor
                                                                                      Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                        Function _initSource has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

                                                                                            _initSource: function() {
                                                                                                var array, url,
                                                                                                    that = this;
                                                                                                if ( Array.isArray( this.options.source ) ) {
                                                                                                    array = this.options.source;
                                                                                        Severity: Minor
                                                                                        Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                          Function left has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

                                                                                                  left: function( position, data ) {
                                                                                                      var within = data.within,
                                                                                                          withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
                                                                                                          outerWidth = within.width,
                                                                                                          collisionPosLeft = position.left - data.collisionPosition.marginLeft,
                                                                                          Severity: Minor
                                                                                          Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                            Function getDimensions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            Open

                                                                                            function getDimensions( elem ) {
                                                                                                var raw = elem[0];
                                                                                                if ( raw.nodeType === 9 ) {
                                                                                                    return {
                                                                                                        width: elem.width(),
                                                                                            Severity: Minor
                                                                                            Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                              Function _setOption has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  _setOption: function( key, value ) {
                                                                                                      if ( key === "active" ) {
                                                                                                          // _activate() will handle invalid values and update this.options
                                                                                                          this._activate( value );
                                                                                                          return;
                                                                                              Severity: Minor
                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                                Function top has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                Open

                                                                                                        top: function( position, data ) {
                                                                                                            var within = data.within,
                                                                                                                withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
                                                                                                                outerHeight = data.within.height,
                                                                                                                collisionPosTop = position.top - data.collisionPosition.marginTop,
                                                                                                Severity: Minor
                                                                                                Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                                  Consider simplifying this complex logical expression.
                                                                                                  Open

                                                                                                          if ( this.options.tolerance === "pointer" ||
                                                                                                              this.options.forcePointerForContainers ||
                                                                                                              (this.options.tolerance !== "pointer" && this.helperProportions[this.floating ? "width" : "height"] > item[this.floating ? "width" : "height"])
                                                                                                          ) {
                                                                                                              return isOverElement;
                                                                                                  Severity: Major
                                                                                                  Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                                    Consider simplifying this complex logical expression.
                                                                                                    Open

                                                                                                            if ((this.options.revert === "invalid" && !dropped) || (this.options.revert === "valid" && dropped) || this.options.revert === true || (_isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
                                                                                                                $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
                                                                                                                    if (that._trigger("stop", event) !== false) {
                                                                                                                        that._clear();
                                                                                                                    }
                                                                                                    Severity: Major
                                                                                                    Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                                      Consider simplifying this complex logical expression.
                                                                                                      Open

                                                                                                                  if (!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) {
                                                                                                                      (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                                                                                                                  }
                                                                                                      Severity: Major
                                                                                                      Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 1 hr to fix

                                                                                                        Consider simplifying this complex logical expression.
                                                                                                        Open

                                                                                                                    if (
                                                                                                                        inst.options.greedy &&
                                                                                                                        !inst.options.disabled &&
                                                                                                                        inst.options.scope === draggable.options.scope &&
                                                                                                                        inst.accept.call( inst.element[ 0 ], ( draggable.currentItem || draggable.element ) ) &&
                                                                                                        Severity: Major
                                                                                                        Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 40 mins to fix

                                                                                                          Avoid too many return statements within this function.
                                                                                                          Open

                                                                                                                  return true;
                                                                                                          Severity: Major
                                                                                                          Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 30 mins to fix

                                                                                                            Avoid too many return statements within this function.
                                                                                                            Open

                                                                                                                        return;
                                                                                                            Severity: Major
                                                                                                            Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js - About 30 mins to fix

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

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

                                                                                                              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 (Array.isArray(obj)) {
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 day to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4028..4047

                                                                                                              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.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/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 day to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1404..1429

                                                                                                              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.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/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 day to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1367..1392

                                                                                                              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 ( 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/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 7 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1455..1465

                                                                                                              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/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 7 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2517..2523

                                                                                                              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 ( 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/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 7 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1489..1499

                                                                                                              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/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 7 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2525..2531

                                                                                                              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

                                                                                                                  _over: function( event ) {
                                                                                                              
                                                                                                                      var draggable = $.ui.ddmanager.current;
                                                                                                              
                                                                                                                      // Bail if draggable and droppable are same element
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 7 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2817..2833

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

                                                                                                              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

                                                                                                                  _out: function( event ) {
                                                                                                              
                                                                                                                      var draggable = $.ui.ddmanager.current;
                                                                                                              
                                                                                                                      // Bail if draggable and droppable are same element
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 7 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2799..2815

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

                                                                                                              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

                                                                                                              $.ui.plugin.add("draggable", "zIndex", {
                                                                                                                  start: function( event, ui, instance ) {
                                                                                                                      var t = $( ui.helper ),
                                                                                                                          o = instance.options;
                                                                                                              
                                                                                                              
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 6 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2464..2479

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

                                                                                                              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

                                                                                                              $.ui.plugin.add("draggable", "opacity", {
                                                                                                                  start: function( event, ui, instance ) {
                                                                                                                      var t = $( ui.helper ),
                                                                                                                          o = instance.options;
                                                                                                                      if (t.css("opacity")) {
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 6 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2653..2670

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

                                                                                                              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((this.overflowOffset.top + this.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) {
                                                                                                                                  this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop + o.scrollSpeed;
                                                                                                                              } else if(event.pageY - this.overflowOffset.top < o.scrollSensitivity) {
                                                                                                                                  this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop - o.scrollSpeed;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 6 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3390..3394

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

                                                                                                              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((this.overflowOffset.left + this.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) {
                                                                                                                                  this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft + o.scrollSpeed;
                                                                                                                              } else if(event.pageX - this.overflowOffset.left < o.scrollSensitivity) {
                                                                                                                                  this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft - o.scrollSpeed;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 6 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3384..3388

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

                                                                                                              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(event.pageY - this.document.scrollTop() < o.scrollSensitivity) {
                                                                                                                                  scrolled = this.document.scrollTop(this.document.scrollTop() - o.scrollSpeed);
                                                                                                                              } else if(this.window.height() - (event.pageY - this.document.scrollTop()) < o.scrollSensitivity) {
                                                                                                                                  scrolled = this.document.scrollTop(this.document.scrollTop() + o.scrollSpeed);
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 6 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3404..3408

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

                                                                                                              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(event.pageX - this.document.scrollLeft() < o.scrollSensitivity) {
                                                                                                                                  scrolled = this.document.scrollLeft(this.document.scrollLeft() - o.scrollSpeed);
                                                                                                                              } else if(this.window.width() - (event.pageX - this.document.scrollLeft()) < o.scrollSensitivity) {
                                                                                                                                  scrolled = this.document.scrollLeft(this.document.scrollLeft() + o.scrollSpeed);
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 6 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3398..3402

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

                                                                                                              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 ( ( i.overflowOffset.top + scrollParent.offsetHeight ) - event.pageY < o.scrollSensitivity ) {
                                                                                                                                  scrollParent.scrollTop = scrolled = scrollParent.scrollTop + o.scrollSpeed;
                                                                                                                              } else if ( event.pageY - i.overflowOffset.top < o.scrollSensitivity ) {
                                                                                                                                  scrollParent.scrollTop = scrolled = scrollParent.scrollTop - o.scrollSpeed;
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 5 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2507..2513

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

                                                                                                              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 ( ( i.overflowOffset.left + scrollParent.offsetWidth ) - event.pageX < o.scrollSensitivity ) {
                                                                                                                                  scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft + o.scrollSpeed;
                                                                                                                              } else if ( event.pageX - i.overflowOffset.left < o.scrollSensitivity ) {
                                                                                                                                  scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft - o.scrollSpeed;
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 5 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2499..2505

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

                                                                                                              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

                                                                                                                              pageY = this.containment ? ( (top - this.offset.click.top >= this.containment[1] && top - this.offset.click.top <= this.containment[3]) ? top : ((top - this.offset.click.top >= this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 5 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4206..4206

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

                                                                                                              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

                                                                                                                              pageX = this.containment ? ( (left - this.offset.click.left >= this.containment[0] && left - this.offset.click.left <= this.containment[2]) ? left : ((left - this.offset.click.left >= this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 5 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4203..4203

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

                                                                                                              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

                                                                                                                              pageY = containment ? ((top - this.offset.click.top >= containment[1] || top - this.offset.click.top > containment[3]) ? top : ((top - this.offset.click.top >= containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 4 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2167..2167

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

                                                                                                              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

                                                                                                                              pageX = containment ? ((left - this.offset.click.left >= containment[0] || left - this.offset.click.left > containment[2]) ? left : ((left - this.offset.click.left >= containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 4 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2164..2164

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

                                                                                                              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 ( this._hasScroll() ) {
                                                                                                                          base = this.active.offset().top;
                                                                                                                          height = this.element.height();
                                                                                                                          this.active.prevAll( ".ui-menu-item" ).each(function() {
                                                                                                                              item = $( this );
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 4 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 5510..5522

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

                                                                                                              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 ( this._hasScroll() ) {
                                                                                                                          base = this.active.offset().top;
                                                                                                                          height = this.element.height();
                                                                                                                          this.active.nextAll( ".ui-menu-item" ).each(function() {
                                                                                                                              item = $( this );
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 4 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 5534..5545

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

                                                                                                              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

                                                                                                                          top: (
                                                                                                                              pageY -                                                                    // The absolute mouse position
                                                                                                                              this.offset.click.top    -                                                // Click offset (relative to the element)
                                                                                                                              this.offset.relative.top -                                                // Only for relative positioned nodes: Relative offset from element to offset parent
                                                                                                                              this.offset.parent.top +                                                // The offsetParent's offset without borders (offset + border)
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2187..2193

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

                                                                                                              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

                                                                                                                          left: (
                                                                                                                              pageX -                                                                    // The absolute mouse position
                                                                                                                              this.offset.click.left -                                                // Click offset (relative to the element)
                                                                                                                              this.offset.relative.left -                                                // Only for relative positioned nodes: Relative offset from element to offset parent
                                                                                                                              this.offset.parent.left +                                                // The offsetParent's offset without borders (offset + border)
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2180..2186

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

                                                                                                              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

                                                                                                                              co.left+(over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - (parseInt($(ce).css("paddingRight"),10) || 0) - this.helperProportions.width - this.margins.left,
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4131..4131

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

                                                                                                              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

                                                                                                                              co.top+(over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - (parseInt($(ce).css("paddingBottom"),10) || 0) - this.helperProportions.height - this.margins.top
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4130..4130

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

                                                                                                              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

                                                                                                                          left: (
                                                                                                                              pos.left +                                                                // The absolute mouse position
                                                                                                                              this.offset.relative.left * mod +                                        // Only for relative positioned nodes: Relative offset from element to offset parent
                                                                                                                              this.offset.parent.left * mod    -                                        // The offsetParent's offset without borders (offset + border)
                                                                                                                              ( ( this.cssPosition === "fixed" ? -this.offset.scroll.left : ( scrollIsRootNode ? 0 : this.offset.scroll.left ) ) * mod)
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2095..2100

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

                                                                                                              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

                                                                                                                          top: (
                                                                                                                              pos.top    +                                                                // The absolute mouse position
                                                                                                                              this.offset.relative.top * mod +                                        // Only for relative positioned nodes: Relative offset from element to offset parent
                                                                                                                              this.offset.parent.top * mod -                                        // The offsetParent's offset without borders (offset + border)
                                                                                                                              ( ( this.cssPosition === "fixed" ? -this.offset.scroll.top : ( scrollIsRootNode ? 0 : this.offset.scroll.top ) ) * mod)
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2101..2106

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

                                                                                                              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

                                                                                                                  _focusable: function( element ) {
                                                                                                                      this.focusable = this.focusable.add( element );
                                                                                                                      this._on( element, {
                                                                                                                          focusin: function( event ) {
                                                                                                                              $( event.currentTarget ).addClass( "ui-state-focus" );
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 771..781

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

                                                                                                              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

                                                                                                                  _hoverable: function( element ) {
                                                                                                                      this.hoverable = this.hoverable.add( element );
                                                                                                                      this._on( element, {
                                                                                                                          mouseenter: function( event ) {
                                                                                                                              $( event.currentTarget ).addClass( "ui-state-hover" );
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 783..793

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

                                                                                                              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 ( !axis || axis === "x" ) {
                                                                                                                              animation.left = cur.left - this.offset.parent.left - this.margins.left + (this.offsetParent[0] === this.document[0].body ? 0 : this.offsetParent[0].scrollLeft);
                                                                                                                          }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3508..3510

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

                                                                                                              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

                                                                                                                          ( isUserScrollable ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) -
                                                                                                                              ( parseInt( c.css( "borderBottomWidth" ), 10 ) || 0 ) -
                                                                                                                              ( parseInt( c.css( "paddingBottom" ), 10 ) || 0 ) -
                                                                                                                              this.helperProportions.height -
                                                                                                                              this.margins.top -
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2069..2074

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

                                                                                                              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

                                                                                                                          ( isUserScrollable ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) -
                                                                                                                              ( parseInt( c.css( "borderRightWidth" ), 10 ) || 0 ) -
                                                                                                                              ( parseInt( c.css( "paddingRight" ), 10 ) || 0 ) -
                                                                                                                              this.helperProportions.width -
                                                                                                                              this.margins.left -
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2075..2080

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

                                                                                                              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 ( !axis || axis === "y" ) {
                                                                                                                              animation.top = cur.top - this.offset.parent.top - this.margins.top + (this.offsetParent[0] === this.document[0].body ? 0 : this.offsetParent[0].scrollTop);
                                                                                                                          }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3505..3507

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

                                                                                                              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

                                                                                                                          left: (
                                                                                                                              pageX -                                                                // The absolute mouse position
                                                                                                                              this.offset.click.left -                                                // Click offset (relative to the element)
                                                                                                                              this.offset.relative.left    -                                            // Only for relative positioned nodes: Relative offset from element to offset parent
                                                                                                                              this.offset.parent.left +                                                // The offsetParent's offset without borders (offset + border)
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4212..4218

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

                                                                                                              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

                                                                                                                          top: (
                                                                                                                              pageY -                                                                // The absolute mouse position
                                                                                                                              this.offset.click.top -                                                    // Click offset (relative to the element)
                                                                                                                              this.offset.relative.top    -                                            // Only for relative positioned nodes: Relative offset from element to offset parent
                                                                                                                              this.offset.parent.top +                                                // The offsetParent's offset without borders (offset + border)
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4219..4225

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

                                                                                                              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

                                                                                                                          left: (
                                                                                                                              pos.left +                                                                // The absolute mouse position
                                                                                                                              this.offset.relative.left * mod +                                        // Only for relative positioned nodes: Relative offset from element to offset parent
                                                                                                                              this.offset.parent.left * mod    -                                        // The offsetParent's offset without borders (offset + border)
                                                                                                                              ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4147..4152

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

                                                                                                              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

                                                                                                                          top: (
                                                                                                                              pos.top    +                                                                // The absolute mouse position
                                                                                                                              this.offset.relative.top * mod +                                        // Only for relative positioned nodes: Relative offset from element to offset parent
                                                                                                                              this.offset.parent.top * mod -                                            // The offsetParent's offset without borders (offset + border)
                                                                                                                              ( ( this.cssPosition === "fixed" ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4153..4158

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

                                                                                                              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

                                                                                                                  _activate: function( event ) {
                                                                                                                      var draggable = $.ui.ddmanager.current;
                                                                                                                      if ( this.options.activeClass ) {
                                                                                                                          this.element.addClass( this.options.activeClass );
                                                                                                                      }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2789..2797

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

                                                                                                              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

                                                                                                                  _deactivate: function( event ) {
                                                                                                                      var draggable = $.ui.ddmanager.current;
                                                                                                                      if ( this.options.activeClass ) {
                                                                                                                          this.element.removeClass( this.options.activeClass );
                                                                                                                      }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 3 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2779..2787

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

                                                                                                              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 (!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) {
                                                                                                                              (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                                                                                                                          }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 2 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2578..2580

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

                                                                                                              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 (inst.snapElements[i].snapping) {
                                                                                                                                  (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 2 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2625..2627

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

                                                                                                              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

                                                                                                                          scroll = this.cssPosition === "absolute" && !(this.scrollParent[0] !== this.document[0] && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent,
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 2 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4169..4169

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

                                                                                                              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

                                                                                                                          scroll = this.cssPosition === "absolute" && !(this.scrollParent[0] !== this.document[0] && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 2 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4143..4143

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

                                                                                                              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 ( this.options.axis !== "y" && this.helper.css( "right" ) !== "auto" ) {
                                                                                                                          this.helper.width( this.helper.width() );
                                                                                                                          this.helper.css( "right", "auto" );
                                                                                                                      }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 2 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2215..2218

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

                                                                                                              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 ( this.options.axis !== "x" && this.helper.css( "bottom" ) !== "auto" ) {
                                                                                                                          this.helper.height( this.helper.height() );
                                                                                                                          this.helper.css( "bottom", "auto" );
                                                                                                                      }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 2 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2211..2214

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

                                                                                                              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(!p.height()) { p.height(that.currentItem.innerHeight() - parseInt(that.currentItem.css("paddingTop")||0, 10) - parseInt(that.currentItem.css("paddingBottom")||0, 10)); }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 2 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3874..3874

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

                                                                                                              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(!p.width()) { p.width(that.currentItem.innerWidth() - parseInt(that.currentItem.css("paddingLeft")||0, 10) - parseInt(that.currentItem.css("paddingRight")||0, 10)); }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 2 hrs to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3873..3873

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

                                                                                                              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

                                                                                                                              top = o.grid[1] ? this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1] : this.originalPageY;
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2166..2166

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

                                                                                                              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

                                                                                                                      return {
                                                                                                                          top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
                                                                                                                          left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
                                                                                                                      };
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4071..4074

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

                                                                                                              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

                                                                                                                      return {
                                                                                                                          top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
                                                                                                                          left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
                                                                                                                      };
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1977..1980

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

                                                                                                              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

                                                                                                                              left = o.grid[0] ? this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0] : this.originalPageX;
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2163..2163

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

                                                                                                              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

                                                                                                                              if(event.pageX - this.offset.click.left < this.containment[0]) {
                                                                                                                                  pageX = this.containment[0] + this.offset.click.left;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 3 other locations - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4190..4192
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4193..4195
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4196..4198

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

                                                                                                              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

                                                                                                                              if(event.pageX - this.offset.click.left > this.containment[2]) {
                                                                                                                                  pageX = this.containment[2] + this.offset.click.left;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 3 other locations - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4187..4189
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4190..4192
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4196..4198

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

                                                                                                              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

                                                                                                                              if(event.pageY - this.offset.click.top < this.containment[1]) {
                                                                                                                                  pageY = this.containment[1] + this.offset.click.top;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 3 other locations - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4187..4189
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4193..4195
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4196..4198

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

                                                                                                              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

                                                                                                                              if(event.pageY - this.offset.click.top > this.containment[3]) {
                                                                                                                                  pageY = this.containment[3] + this.offset.click.top;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 3 other locations - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4187..4189
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4190..4192
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4193..4195

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

                                                                                                              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.opacity) { // opacity option
                                                                                                                          if (this.helper.css("opacity")) {
                                                                                                                              this._storedOpacity = this.helper.css("opacity");
                                                                                                                          }
                                                                                                                          this.helper.css("opacity", o.opacity);
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3322..3327

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

                                                                                                              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.zIndex) { // zIndex option
                                                                                                                          if (this.helper.css("zIndex")) {
                                                                                                                              this._storedZIndex = this.helper.css("zIndex");
                                                                                                                          }
                                                                                                                          this.helper.css("zIndex", o.zIndex);
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3315..3320

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

                                                                                                              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

                                                                                                                              co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) + (parseInt($(ce).css("paddingTop"),10) || 0) - this.margins.top,
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4128..4128

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

                                                                                                              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

                                                                                                                              co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) + (parseInt($(ce).css("paddingLeft"),10) || 0) - this.margins.left,
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4129..4129

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

                                                                                                              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

                                                                                                                      left: function() {
                                                                                                                          $.ui.position.flip.left.apply( this, arguments );
                                                                                                                          $.ui.position.fit.left.apply( this, arguments );
                                                                                                                      },
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1507..1510

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

                                                                                                              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

                                                                                                                      top: function() {
                                                                                                                          $.ui.position.flip.top.apply( this, arguments );
                                                                                                                          $.ui.position.fit.top.apply( this, arguments );
                                                                                                                      }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1503..1506

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

                                                                                                              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

                                                                                                                  if ( options.at[ 1 ] === "bottom" ) {
                                                                                                                      basePosition.top += targetHeight;
                                                                                                                  } else if ( options.at[ 1 ] === "center" ) {
                                                                                                                      basePosition.top += targetHeight / 2;
                                                                                                                  }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 3 other locations - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1238..1242
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1266..1270
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1272..1276

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

                                                                                                              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

                                                                                                                      if ( options.my[ 1 ] === "bottom" ) {
                                                                                                                          position.top -= elemHeight;
                                                                                                                      } else if ( options.my[ 1 ] === "center" ) {
                                                                                                                          position.top -= elemHeight / 2;
                                                                                                                      }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 3 other locations - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1238..1242
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1244..1248
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1266..1270

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

                                                                                                              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

                                                                                                                      if ( options.my[ 0 ] === "right" ) {
                                                                                                                          position.left -= elemWidth;
                                                                                                                      } else if ( options.my[ 0 ] === "center" ) {
                                                                                                                          position.left -= elemWidth / 2;
                                                                                                                      }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 3 other locations - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1238..1242
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1244..1248
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1272..1276

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

                                                                                                              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

                                                                                                                  if ( options.at[ 0 ] === "right" ) {
                                                                                                                      basePosition.left += targetWidth;
                                                                                                                  } else if ( options.at[ 0 ] === "center" ) {
                                                                                                                      basePosition.left += targetWidth / 2;
                                                                                                                  }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 3 other locations - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1244..1248
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1266..1270
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1272..1276

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

                                                                                                              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 isOverElementHeight = (this.options.axis === "x") || this._isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height),
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3641..3641

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

                                                                                                              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

                                                                                                                          isOverElementWidth = (this.options.axis === "y") || this._isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width),
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3640..3640

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

                                                                                                              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

                                                                                                                              if (event.pageY - this.offset.click.top < containment[1]) {
                                                                                                                                  pageY = containment[1] + this.offset.click.top;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 3 other locations - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2147..2149
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2153..2155
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2156..2158

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

                                                                                                              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

                                                                                                                              if (event.pageX - this.offset.click.left > containment[2]) {
                                                                                                                                  pageX = containment[2] + this.offset.click.left;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 3 other locations - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2147..2149
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2150..2152
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2156..2158

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

                                                                                                              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

                                                                                                                              if (event.pageX - this.offset.click.left < containment[0]) {
                                                                                                                                  pageX = containment[0] + this.offset.click.left;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 3 other locations - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2150..2152
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2153..2155
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2156..2158

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

                                                                                                              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

                                                                                                                              if (event.pageY - this.offset.click.top > containment[3]) {
                                                                                                                                  pageY = containment[3] + this.offset.click.top;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 3 other locations - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2147..2149
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2150..2152
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2153..2155

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

                                                                                                              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

                                                                                                                              delayedTriggers.push((function(c) { return function(event) { c._trigger("update", event, this._uiHash(this));  }; }).call(this, this.currentContainer));
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4288..4288

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

                                                                                                              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

                                                                                                                              delayedTriggers.push((function(c) { return function(event) { c._trigger("receive", event, this._uiHash(this)); };  }).call(this, this.currentContainer));
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4289..4289

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

                                                                                                              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 isOverBottomHalf = this._isOverAxis(this.positionAbs.top + this.offset.click.top, item.top + (item.height/2), item.height),
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3659..3659

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

                                                                                                              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

                                                                                                                          isOverRightHalf = this._isOverAxis(this.positionAbs.left + this.offset.click.left, item.left + (item.width/2), item.width),
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3658..3658

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

                                                                                                              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

                                                                                                                  _getDragHorizontalDirection: function() {
                                                                                                                      var delta = this.positionAbs.left - this.lastPositionAbs.left;
                                                                                                                      return delta !== 0 && (delta > 0 ? "right" : "left");
                                                                                                                  },
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3671..3674

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

                                                                                                              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 (ls) {
                                                                                                                                  ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2620..2622

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

                                                                                                              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 (rs) {
                                                                                                                                  ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2596..2598

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

                                                                                                              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 (ts) {
                                                                                                                                  ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2614..2616

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

                                                                                                              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 (bs) {
                                                                                                                                  ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2590..2592

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

                                                                                                              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

                                                                                                                  _getDragVerticalDirection: function() {
                                                                                                                      var delta = this.positionAbs.top - this.lastPositionAbs.top;
                                                                                                                      return delta !== 0 && (delta > 0 ? "down" : "up");
                                                                                                                  },
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3676..3679

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

                                                                                                              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

                                                                                                                          left: p.left - ( parseInt(this.helper.css( "left" ), 10) || 0 ) + ( !scrollIsRootNode ? this.scrollParent.scrollLeft() : 0 )
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1993..1993

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

                                                                                                              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

                                                                                                                          top: p.top - ( parseInt(this.helper.css( "top" ), 10) || 0 ) + ( !scrollIsRootNode ? this.scrollParent.scrollTop() : 0 ),
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1994..1994

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

                                                                                                              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 (!this.containers[innermostIndex].containerCache.over) {
                                                                                                                              this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
                                                                                                                              this.containers[innermostIndex].containerCache.over = 1;
                                                                                                                          }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3925..3928

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

                                                                                                              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(this.containers[i].containerCache.over) {
                                                                                                                                  this.containers[i]._trigger("out", event, this._uiHash(this));
                                                                                                                                  this.containers[i].containerCache.over = 0;
                                                                                                                              }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3940..3943

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

                                                                                                              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

                                                                                                                              left = this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0];
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4202..4202

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

                                                                                                              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 ( parentInstance && c === "isout" ) {
                                                                                                                              parentInstance.isout = false;
                                                                                                                              parentInstance.isover = true;
                                                                                                                              parentInstance._over.call( parentInstance, event );
                                                                                                                          }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3041..3045

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

                                                                                                              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 ( parentInstance && c === "isover" ) {
                                                                                                                              parentInstance.isover = false;
                                                                                                                              parentInstance.isout = true;
                                                                                                                              parentInstance._out.call( parentInstance, event );
                                                                                                                          }
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 3052..3056

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

                                                                                                              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

                                                                                                                              top = this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1];
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 1 hr to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4205..4205

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

                                                                                                              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

                                                                                                                  _cacheHelperProportions: function() {
                                                                                                                      this.helperProportions = {
                                                                                                                          width: this.helper.outerWidth(),
                                                                                                                          height: this.helper.outerHeight()
                                                                                                                      };
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 55 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2008..2013

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

                                                                                                              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

                                                                                                                  _cacheHelperProportions: function() {
                                                                                                                      this.helperProportions = {
                                                                                                                          width: this.helper.outerWidth(),
                                                                                                                          height: this.helper.outerHeight()
                                                                                                                      };
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 55 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4099..4104

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

                                                                                                              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

                                                                                                                          orig = {
                                                                                                                              innerWidth: $.fn.innerWidth,
                                                                                                                              innerHeight: $.fn.innerHeight,
                                                                                                                              outerWidth: $.fn.outerWidth,
                                                                                                                              outerHeight: $.fn.outerHeight
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 55 mins to fix
                                                                                                              app/assets/javascripts/app/lib/flot/jquery.flot.selection.js on lines 167..167

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

                                                                                                              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 ( options.icons ) {
                                                                                                                              clicked.children( ".ui-accordion-header-icon" )
                                                                                                                                  .removeClass( options.icons.header )
                                                                                                                                  .addClass( options.icons.activeHeader );
                                                                                                                          }
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 55 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4801..4805

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

                                                                                                              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 ( options.icons ) {
                                                                                                                          active.children( ".ui-accordion-header-icon" )
                                                                                                                              .removeClass( options.icons.activeHeader )
                                                                                                                              .addClass( options.icons.header );
                                                                                                                      }
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 55 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4811..4815

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

                                                                                                              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

                                                                                                                              atOffset = data.at[ 1 ] === "top" ?
                                                                                                                                  data.targetHeight :
                                                                                                                                  data.at[ 1 ] === "bottom" ?
                                                                                                                                      -data.targetHeight :
                                                                                                                                      0,
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 50 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1446..1450

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

                                                                                                              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(!helper[0].style.height || o.forceHelperSize) {
                                                                                                                          helper.height(this.currentItem.height());
                                                                                                                      }
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 50 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4017..4019

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

                                                                                                              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(!helper[0].style.width || o.forceHelperSize) {
                                                                                                                          helper.width(this.currentItem.width());
                                                                                                                      }
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 50 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4020..4022

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

                                                                                                              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

                                                                                                                              atOffset = data.at[ 0 ] === "left" ?
                                                                                                                                  data.targetWidth :
                                                                                                                                  data.at[ 0 ] === "right" ?
                                                                                                                                      -data.targetWidth :
                                                                                                                                      0,
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 50 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1481..1485

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

                                                                                                              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

                                                                                                                      this.document
                                                                                                                          .off( "mousemove." + this.widgetName, this._mouseMoveDelegate )
                                                                                                                          .off( "mouseup." + this.widgetName, this._mouseUpDelegate );
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 2 other locations - About 40 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 911..913
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 967..969

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

                                                                                                              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

                                                                                                                          this.document
                                                                                                                              .off("mousemove." + this.widgetName, this._mouseMoveDelegate)
                                                                                                                              .off("mouseup." + this.widgetName, this._mouseUpDelegate);
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 2 other locations - About 40 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 967..969
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1012..1014

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

                                                                                                              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

                                                                                                                      this.document
                                                                                                                          .on( "mousemove." + this.widgetName, this._mouseMoveDelegate )
                                                                                                                          .on( "mouseup." + this.widgetName, this._mouseUpDelegate );
                                                                                                              Severity: Major
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 2 other locations - About 40 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 911..913
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1012..1014

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

                                                                                                              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

                                                                                                                              left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.scrollParent.scrollLeft()
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 40 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4083..4083

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

                                                                                                              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

                                                                                                                              top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(),
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 40 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4084..4084

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

                                                                                                              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(this.cssPosition === "absolute" && this.scrollParent[0] !== this.document[0] && $.contains(this.scrollParent[0], this.offsetParent[0])) {
                                                                                                                          po.left += this.scrollParent.scrollLeft();
                                                                                                                          po.top += this.scrollParent.scrollTop();
                                                                                                                      }
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 40 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 1968..1971

                                                                                                              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 (this.cssPosition === "absolute" && this.scrollParent[0] !== document && $.contains(this.scrollParent[0], this.offsetParent[0])) {
                                                                                                                          po.left += this.scrollParent.scrollLeft();
                                                                                                                          po.top += this.scrollParent.scrollTop();
                                                                                                                      }
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 40 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 4060..4063

                                                                                                              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

                                                                                                                                  sortable.offset.parent.left -= draggable.offset.parent.left -
                                                                                                                                      sortable.offset.parent.left;
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 35 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2371..2372

                                                                                                              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/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 35 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2369..2370

                                                                                                              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

                                                                                                                              if (ts) {
                                                                                                                                  ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top;
                                                                                                                              }
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 35 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2593..2595

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

                                                                                                              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 (ls) {
                                                                                                                                  ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left;
                                                                                                                              }
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 35 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2599..2601

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

                                                                                                              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 (bs) {
                                                                                                                                  ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top;
                                                                                                                              }
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 35 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2611..2613

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

                                                                                                              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 (rs) {
                                                                                                                                  ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left;
                                                                                                                              }
                                                                                                              Severity: Minor
                                                                                                              Found in app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js and 1 other location - About 35 mins to fix
                                                                                                              app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js on lines 2617..2619

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

                                                                                                              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

                                                                                                              There are no issues that match your filters.

                                                                                                              Category
                                                                                                              Status