hummingbird-me/hummingbird

View on GitHub

Showing 419 of 859 total issues

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

    drag: function( event ) {

        var i = $(this).data("ui-draggable"), o = i.options, scrolled = false;

        if(i.scrollParent[0] !== document && i.scrollParent[0].tagName !== "HTML") {
Severity: Minor
Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

        _resetButton: function() {
            if ( this.type === "input" ) {
                if ( this.options.label ) {
                    this.element.val( this.options.label );
                }
    Severity: Minor
    Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

          _createTitlebar: function() {
              var uiDialogTitle;
      
              this.uiDialogTitlebar = $("<div>")
                  .addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix")
      Severity: Minor
      Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

        Function _toggle has 35 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/old/jquery-ui-custom-1.10.3.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/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                _hideDatepicker: function(input) {
                    var showAnim, duration, postProcess, onClose,
                        inst = this._curInst;
            
                    if (!inst || (input && inst !== $.data(input, PROP_NAME))) {
            Severity: Minor
            Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                  _dialogDatepicker: function(input, date, onSelect, settings, pos) {
                      var id, browserWidth, browserHeight, scrollX, scrollY,
                          inst = this._dialogInst; // internal instance
              
                      if (!inst) {
              Severity: Minor
              Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.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/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                  Function start has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      start: function(options) {
                        if (History.started) throw new Error("Backbone.history has already been started");
                        History.started = true;
                  
                        // Figure out the initial configuration. Do we need an iframe?
                  Severity: Minor
                  Found in app/assets/javascripts/old/backbone-1.0.0.js - About 1 hr to fix

                    Function setupController has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      setupController: function(controller){
                    
                        // Every object will be mapped to contain a value for fkey (the query key)
                        // and fval (the query value). These values will be sent to the server to
                        // request the respective search results.
                    Severity: Minor
                    Found in frontend/app/routes/filter-anime.js - About 1 hr to fix

                      Function _position has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              _position: function() {
                                  var position = this.options.position,
                                      myAt = [],
                                      offset = [ 0, 0 ],
                                      isVisible;
                      Severity: Minor
                      Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                        Function _slide has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _slide: function( event, index, newVal ) {
                                var otherVal,
                                    newValues,
                                    allowed;
                        
                        
                        Severity: Minor
                        Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                              _eventHandler: function( event ) {
                                  var options = this.options,
                                      active = this.active,
                                      anchor = $( event.currentTarget ),
                                      tab = anchor.closest( "li" ),
                          Severity: Minor
                          Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                                _create: function() {
                                    var that = this,
                                        options = this.options;
                            
                                    this.running = false;
                            Severity: Minor
                            Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                              Function start has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  start: function() {
                                      var element, p, co, ch, cw, width, height,
                                          that = $(this).data("ui-resizable"),
                                          o = that.options,
                                          el = that.element,
                              Severity: Minor
                              Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                                Function setLibraryRating has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    setLibraryRating: function(userRating, media){
                                
                                      if(media.get('libraryEntry') != null){
                                        this.updateLibraryEntry(media, userRating);
                                        return;
                                Severity: Minor
                                Found in frontend/app/controllers/onboarding/library.js - About 1 hr to fix

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

                                    $.fn.garlic = function ( option, fn ) {
                                      var options = $.extend(true, {}, $.fn.garlic.defaults, option, this.data() )
                                        , storage = new Storage()
                                        , returnValue = false;
                                  
                                  
                                  Severity: Minor
                                  Found in app/assets/javascripts/old/garlic.js - About 1 hr to fix

                                    Function top has 33 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/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                                      $.ui.intersect = function(draggable, droppable, toleranceMode) {
                                      
                                          if (!droppable.offset) {
                                              return false;
                                          }
                                      Severity: Minor
                                      Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                                            _keydown: function( event ) {
                                                /*jshint maxcomplexity:15*/
                                                if ( event.altKey || event.ctrlKey ) {
                                                    return;
                                                }
                                        Severity: Minor
                                        Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language