hummingbird-me/hummingbird

View on GitHub

Showing 859 of 859 total issues

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

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

        _updateVirtualBoundaries: function(forceAspectRatio) {
            var pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b,
                o = this.options;
    
            b = {
    Severity: Minor
    Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

          stop: function( event ) {
              var that = $(this).data("ui-resizable"),
                  o = that.options,
                  pr = that._proportionallyResizeElements,
                  ista = pr.length && (/textarea/i).test(pr[0].nodeName),
      Severity: Minor
      Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

          graphData: function() {
            var data = this.get('model'),
                labels = Object.keys(data["registrations"]["total"]),
                confirmed = [],
                total = [];
        Severity: Minor
        Found in frontend/app/controllers/kotodama.js - About 1 hr to fix

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

              refresh: function() {
                  //See #8237 & #8828
                  var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" );
          
                  if ( isDisabled !== this.options.disabled ) {
          Severity: Minor
          Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                _setupHeightStyle: function( heightStyle ) {
                    var maxHeight,
                        parent = this.element.parent();
            
                    if ( heightStyle === "fill" ) {
            Severity: Minor
            Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                performSearch: function() {
                  if (this.get('loading')) {
                    Ember.run.later(this, this.performSearch, 100);
                    return;
                  }
              Severity: Minor
              Found in frontend/app/controllers/onboarding/library.js - About 1 hr to fix

                Method stats has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  def stats
                    stats = {}
                
                    stats[:activeaccs] = User.where('last_library_update >= ?', 1.day.ago).count
                    stats[:feedposts] = Story.where('created_at >= ?', 1.day.ago).count
                Severity: Minor
                Found in app/controllers/admin_controller.rb - About 1 hr to fix

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

                  module.exports = function(environment) {
                    var ENV = {
                      modulePrefix: 'frontend',
                      environment: environment,
                      baseURL: '/',
                  Severity: Minor
                  Found in frontend/config/environment.js - About 1 hr to fix

                    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/old/jquery-ui-custom-1.10.3.js and 1 other location - About 1 hr to fix
                    app/assets/javascripts/old/jquery-ui-custom-1.10.3.js on lines 4805..4808

                    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 (input == null || (typeof input !== 'string' && input.constructor !== Handlebars.AST.ProgramNode)) {
                        throw new Handlebars.Exception("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
                      }
                    Severity: Major
                    Found in app/assets/javascripts/old/handlebars-1.0.0.js and 1 other location - About 1 hr to fix
                    app/assets/javascripts/old/handlebars-1.0.0.js on lines 2151..2153

                    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/old/jquery-ui-custom-1.10.3.js and 1 other location - About 1 hr to fix
                    app/assets/javascripts/old/jquery-ui-custom-1.10.3.js on lines 4820..4823

                    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 (input == null || (typeof input !== 'string' && input.constructor !== Handlebars.AST.ProgramNode)) {
                        throw new Handlebars.Exception("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + input);
                      }
                    Severity: Major
                    Found in app/assets/javascripts/old/handlebars-1.0.0.js and 1 other location - About 1 hr to fix
                    app/assets/javascripts/old/handlebars-1.0.0.js on lines 2137..2139

                    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

                    Function retrieve has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        , retrieve: function () {
                          if ( this.storage.has( this.path ) ) {
                    
                            // if data expired, destroy it!
                            if ( this.options.expires ) {
                    Severity: Minor
                    Found in app/assets/javascripts/old/garlic.js - About 1 hr to fix

                      Function equals has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        equals: function(other) {
                          var len = this.opcodes.length;
                          if (other.opcodes.length !== len) {
                            return false;
                          }
                      Severity: Minor
                      Found in app/assets/javascripts/old/handlebars-1.0.0.js - About 1 hr to fix

                        Function block has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          block: function(block) {
                            var mustache = block.mustache,
                                program = block.program,
                                inverse = block.inverse;
                        
                        
                        Severity: Minor
                        Found in app/assets/javascripts/old/handlebars-1.0.0.js - About 1 hr to fix

                          Function focus has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              focus: function( event, item ) {
                                  var nested, focused;
                                  this.blur( event, event && event.type === "focus" );
                          
                                  this._scrollIntoView( item );
                          Severity: Minor
                          Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                            Function _mouseStop has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _mouseStop: function(event) {
                            
                                    this.resizing = false;
                                    var pr, ista, soffseth, soffsetw, s, left, top,
                                        o = this.options, that = this;
                            Severity: Minor
                            Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

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

                                  resize: function (event, ui) {
                                      var that = $(this).data("ui-resizable"),
                                          o = that.options,
                                          os = that.originalSize,
                                          op = that.originalPosition,
                              Severity: Minor
                              Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 hr to fix

                                Function create has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    create: function() {
                                      var group = this.store.createRecord('group', {
                                        name: this.get('name'),
                                        bio: this.get('bio'),
                                        about: this.get('about')
                                Severity: Minor
                                Found in frontend/app/controllers/modals/create-group.js - About 1 hr to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language