hummingbird-me/hummingbird

View on GitHub

Showing 419 of 859 total issues

Function template has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  template: function(templateSpec) {
    // Just add water
    var container = {
      escapeExpression: Handlebars.Utils.escapeExpression,
      invokePartial: Handlebars.VM.invokePartial,
Severity: Minor
Found in app/assets/javascripts/old/handlebars-1.0.0.js - About 1 hr to fix

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

    Flipsnap.prototype.refresh = function() {
      var self = this;
    
      // setting max point
      self._maxPoint = (self.maxPoint === undefined) ? (function() {
    Severity: Minor
    Found in public/2013/assets/js/flipsnap.js - About 1 hr to fix

      Function fitVids has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        $.fn.fitVids = function( options ) {
          var settings = {
            customSelector: null
          };
      
      
      Severity: Minor
      Found in public/2013/assets/js/jquery.fitvids.js - About 1 hr to fix

        Function fitVids has 44 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          $.fn.fitVids = function( options ) {
            var settings = {
              customSelector: null
            };
        
        
        Severity: Minor
        Found in public/2014/assets/js/jquery.fitvids.js - About 1 hr to fix

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

          Flipsnap.prototype.refresh = function() {
            var self = this;
          
            // setting max point
            self._maxPoint = (self.maxPoint === undefined) ? (function() {
          Severity: Minor
          Found in public/2014/assets/js/flipsnap.js - About 1 hr to fix

            Function resize has 44 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                resize: function( event ) {
                    var woset, hoset, isParent, isOffsetRelative,
                        that = $(this).data("ui-resizable"),
                        o = that.options,
                        co = that.containerOffset, cp = that.position,
            Severity: Minor
            Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

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

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

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

                      _destroy: function() {
                          if ( this.xhr ) {
                              this.xhr.abort();
                          }
                  
                  
                  Severity: Minor
                  Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                    Method metadata has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      def metadata
                        meta = {
                          external_id: @mal_id,
                          title: {
                            canonical: @main_noko.css('h1').children[0].text.strip,
                    Severity: Minor
                    Found in lib/mal_import.rb - About 1 hr to fix

                      Method present_story has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          def present_story(story, current_user, title_language_preference)
                            json = {
                              id: story.id,
                              story_type: story.story_type,
                              user: present_miniuser(story.user),
                      Severity: Minor
                      Found in app/api/api_v1.rb - About 1 hr to fix

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

                            _create: function() {
                              var opts = this.options;
                              var elem = $(this.element);
                        
                              // get the multiselect instance
                        Severity: Minor
                        Found in app/assets/javascripts/old/multiselect-filter.js - About 1 hr to fix

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

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

                            Function show has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              , show: function () {
                                  var $tip
                                    , pos
                                    , actualWidth
                                    , actualHeight
                            Severity: Minor
                            Found in app/assets/javascripts/old/bootstrap-tooltip.js - About 1 hr to fix

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

                                  _create: function() {
                                    var el = this.element.hide();
                                    var o = this.options;
                              
                                    this.speed = $.fx.speeds._default; // default speed for effects
                              Severity: Minor
                              Found in app/assets/javascripts/old/multiselect.js - About 1 hr to fix

                                Function suggester has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                export default function suggester(context) {
                                  context.textcomplete([
                                    { // emoji
                                      emojis: PreloadStore.get("emoji"),
                                      match: /(^|\s):(\w*)$/,
                                Severity: Minor
                                Found in frontend/app/utils/suggester.js - About 1 hr to fix

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

                                      _mouseDrag: function(event) {
                                  
                                          //Increase performance, avoid regex
                                          var data,
                                              el = this.helper, props = {},
                                  Severity: Minor
                                  Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                                    Function _createWrapper has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        _createWrapper: function() {
                                            this.uiDialog = $("<div>")
                                                .addClass( "ui-dialog ui-widget ui-widget-content ui-corner-all ui-front " +
                                                    this.options.dialogClass )
                                                .hide()
                                    Severity: Minor
                                    Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                                      Function loadPosts has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        loadPosts: function() {
                                          var self = this;
                                      
                                          ajax({
                                            url: this.get('apiCall'),
                                      Severity: Minor
                                      Found in frontend/app/components/community-widget.js - About 1 hr to fix

                                        Method upcoming has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          def upcoming
                                            hide_cover_image
                                        
                                            season_months = {
                                              'winter' => [12, 1, 2],
                                        Severity: Minor
                                        Found in app/controllers/anime_controller.rb - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language