hummingbird-me/hummingbird

View on GitHub

Showing 419 of 859 total issues

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

  function operate(input, direct, method) {
    var node = input[0];
      state = /er/.test(method) ? _indeterminate : /bl/.test(method) ? _disabled : _checked,
      active = method == _update ? {
        checked: node[_checked],
Severity: Minor
Found in app/assets/javascripts/old/jquery.icheck.js - About 1 hr to fix

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

                offsetString = function(offset) {
                    try {
                        return $.datepicker.parseDate($.datepicker._get(inst, "dateFormat"),
                            offset, $.datepicker._getFormatConfig(inst));
                    }
    Severity: Minor
    Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

          _destroy: function() {
              var contents;
      
              // clean up main element
              this.element
      Severity: Minor
      Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

            _attachHandlers: function(inst) {
                var stepMonths = this._get(inst, "stepMonths"),
                    id = "#" + inst.id.replace( /\\\\/g, "\\" );
                inst.dpDiv.find("[data-handler]").map(function () {
                    var handler = {
        Severity: Minor
        Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

            changes: function() {
              var html = [];
              var objectChanges = this.get('model.objectChanges');
              var code;
          
          
          Severity: Minor
          Found in frontend/app/controllers/edit-item.js - About 1 hr to fix

            Function _touchStart has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            Flipsnap.prototype._touchStart = function(event) {
              var self = this;
            
              if (self.disableTouch || self._eventType || gestureStart) {
                return;
            Severity: Minor
            Found in public/2014/assets/js/flipsnap.js - About 1 hr to fix

              Function _touchStart has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              Flipsnap.prototype._touchStart = function(event) {
                var self = this;
              
                if (self.disableTouch || self._eventType || gestureStart) {
                  return;
              Severity: Minor
              Found in public/2013/assets/js/flipsnap.js - About 1 hr to fix

                Function init has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    this.init = function() {
                      var percent, scaleBy;
                
                      _this.options = $.extend({}, $.easyPieChart.defaultOptions, options);
                      percent = parseInt(_this.$el.data('percent'), 10);
                Severity: Minor
                Found in app/assets/javascripts/old/jquery.easy-pie-chart.js - About 1 hr to fix

                  Function close has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      close: function( event ) {
                          var that = this,
                              target = $( event ? event.currentTarget : this.element ),
                              tooltip = this._find( target );
                  
                  
                  Severity: Minor
                  Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                        _mouseStart: function(event) {
                    
                            var curleft, curtop, cursor,
                                o = this.options,
                                iniPos = this.element.position(),
                    Severity: Minor
                    Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                      Function _createButtons has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          _createButtons: function() {
                              var that = this,
                                  buttons = this.options.buttons;
                      
                              // if we already have a button pane, remove it
                      Severity: Minor
                      Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                            refreshPositions: function(fast) {
                        
                                //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
                                if(this.offsetParent && this.helper) {
                                    this.offset.parent = this._getParentOffset();
                        Severity: Minor
                        Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                          Function _determineButtonType has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _determineButtonType: function() {
                                  var ancestor, labelSelector, checked;
                          
                                  if ( this.element.is("[type=checkbox]") ) {
                                      this.type = "checkbox";
                          Severity: Minor
                          Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                            Function open has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                open: function( event ) {
                                    var that = this,
                                        target = $( event ? event.target : this.element )
                                            // we need closest here due to mouseover bubbling,
                                            // but always pointing at the same event target
                            Severity: Minor
                            Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                              Function _makeDraggable has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Function didInsertElement has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  didInsertElement: function() {
                                    var bloodhound, _this = this;
                                    this.$().val(this.get('value'));
                                    bloodhound = new Bloodhound({
                                      datumTokenizer: function(d) {
                                Severity: Minor
                                Found in frontend/app/components/waifu-selector.js - About 1 hr to fix

                                  Method data has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    def data
                                      if @data.nil?
                                        @data = []
                                  
                                        # wrap+flatten+compact to ensure we get an array with no nils
                                  Severity: Minor
                                  Found in lib/my_anime_list_import.rb - About 1 hr to fix

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

                                        function _handleTTL(){
                                            var curtime, i, TTL, CRC32, nextExpire = Infinity, changed = false, deleted = [];
                                    
                                            clearTimeout(_ttl_timeout);
                                    
                                    
                                    Severity: Minor
                                    Found in app/assets/javascripts/old/jstorage.js - About 1 hr to fix

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

                                      FastClick.prototype.onTouchStart = function(event) {
                                          'use strict';
                                          var targetElement, touch, selection;
                                      
                                          // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
                                      Severity: Minor
                                      Found in public/2014/assets/js/fastclick.js - About 1 hr to fix

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

                                        FastClick.prototype.onTouchStart = function(event) {
                                            'use strict';
                                            var targetElement, touch, selection;
                                        
                                            // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
                                        Severity: Minor
                                        Found in public/2013/assets/js/fastclick.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language