hummingbird-me/hummingbird

View on GitHub

Showing 419 of 859 total issues

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

    _createRange: function() {
        var options = this.options,
            classes = "";

        if ( options.range ) {
Severity: Minor
Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

        _updateDatepicker: function(inst) {
            this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
            instActive = inst; // for delegate hover events
            inst.dpDiv.empty().append(this._generateHTML(inst));
            this._attachHandlers(inst);
    Severity: Minor
    Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

          _setOption: function( key, value ) {
              if ( key === "culture" || key === "numberFormat" ) {
                  var prevValue = this._parse( this.element.val() );
                  this.options[ key ] = value;
                  this.element.val( this._format( prevValue ) );
      Severity: Minor
      Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

            _refresh: function() {
                this._setupDisabled( this.options.disabled );
                this._setupEvents( this.options.event );
                this._setupHeightStyle( this.options.heightStyle );
        
        
        Severity: Minor
        Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

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

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

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

                  _initialActive: function() {
                      var active = this.options.active,
                          collapsible = this.options.collapsible,
                          locationHash = location.hash.substring( 1 );
              
              
              Severity: Minor
              Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.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/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                    updateSectionContents: function () {
                      var agg, filter, sortAsc, sortProperty;
                      agg = {};
                      filter = this.get('filter').toLowerCase();
                      sortProperty = this.get('sortBy');
                  Severity: Minor
                  Found in frontend/app/controllers/user/library.js - About 1 hr to fix

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

                      updateSectionContents: function () {
                        var agg, filter, sortAsc, sortProperty;
                        agg = {};
                        filter = this.get('filter').toLowerCase();
                        sortProperty = this.get('sortBy');
                    Severity: Minor
                    Found in frontend/app/controllers/user/manga-library.js - About 1 hr to fix

                      Method find_for_facebook_oauth has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        def self.find_for_facebook_oauth(auth, signed_in_resource=nil)
                          # Try to find a user already associated with the Facebook ID.
                          user = User.where(facebook_id: auth.uid).first
                          return user if user
                      
                      
                      Severity: Minor
                      Found in app/models/user.rb - About 1 hr to fix

                        Method follow has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          def follow
                            authenticate_user!
                            user = User.find(params[:user_id])
                        
                            if user != current_user
                        Severity: Minor
                        Found in app/controllers/users_controller.rb - About 1 hr to fix

                          Method import! has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            def import!
                              en, jp = fetch_series(all: true), fetch_series(lang: 'ja') || {}
                              raise MissingDataError.new if en.nil? || en[:episode].blank?
                          
                              # Save the jp anime title.
                          Severity: Minor
                          Found in lib/the_tvdb_import.rb - 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 = uuid++;
                                    this.eventNamespace = "." + this.widgetName + this.uuid;
                            Severity: Minor
                            Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                                  function murmurhash2_32_gc(str, seed) {
                                      var
                                          l = str.length,
                                          h = seed ^ l,
                                          i = 0,
                              Severity: Minor
                              Found in app/assets/javascripts/old/jstorage.js - About 1 hr to fix

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

                                  compile: function(environment, options, context, asObject) {
                                    this.environment = environment;
                                    this.options = options || {};
                                
                                    Handlebars.log(Handlebars.logger.DEBUG, this.environment.disassemble() + "\n\n");
                                Severity: Minor
                                Found in app/assets/javascripts/old/handlebars-1.0.0.js - About 1 hr to fix

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

                                    replaceStack: function(callback) {
                                      var prefix = '',
                                          inline = this.isInline(),
                                          stack;
                                  
                                  
                                  Severity: Minor
                                  Found in app/assets/javascripts/old/handlebars-1.0.0.js - About 1 hr to fix

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

                                      didInsertElement: function() {
                                        return Ember.run.next((function() {
                                          var a, b, x, y,
                                              imageHeight = this.$("#preview").height(),
                                              imageWidth = this.$("#preview").width(),
                                    Severity: Minor
                                    Found in frontend/app/views/modals/crop-cover.js - About 1 hr to fix

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

                                        formattedAirDates: function() {
                                          var format, formattedFinishedAiring, formattedStartedAiring, result;
                                      
                                          if (this.get('startedAiring')) {
                                            format = this.get('startedAiringDateKnown') ? "D MMM YYYY" : "MMM YYYY";
                                      Severity: Minor
                                      Found in frontend/app/models/anime.js - About 1 hr to fix

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

                                            _create: function() {
                                                var selectees,
                                                    that = this;
                                        
                                                this.element.addClass("ui-selectable");
                                        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