talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

Function Anim has 80 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Ext.lib.Anim = function(){

    var easings = {
        easeOut: function(pos) {
            return 1-Math.pow(1-pos,2);
Severity: Major
Found in app/assets/javascripts/ext/src/adapter/prototype-bridge.js - About 3 hrs to fix

    Function Anim has 80 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    Ext.lib.Anim = function(){
    
        var easings = {
            easeOut: function(pos) {
                return 1-Math.pow(1-pos,2);

      File ext-lang-de.js has 299 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * Ext JS Library 3.3.0
       * Copyright(c) 2006-2010 Ext JS, Inc.
       * licensing@extjs.com
       * http://www.extjs.com/license
      Severity: Minor
      Found in app/assets/javascripts/ext/src/locale/ext-lang-de.js - About 3 hrs to fix

        `` has 27 functions (exceeds 20 allowed). Consider refactoring.
        Open

        Ext.extend(Ext.dd.DragSource, Ext.dd.DDProxy, {
            /**
             * @cfg {String} ddGroup
             * A named drag drop group to which this object belongs.  If a group is specified, then this object will only
             * interact with other drag drop objects in the same group (defaults to undefined).
        Severity: Minor
        Found in app/assets/javascripts/ext/src/dd/DragSource.js - About 3 hrs to fix

          MultiSlider has 27 functions (exceeds 20 allowed). Consider refactoring.
          Open

          Ext.slider.MultiSlider = Ext.extend(Ext.BoxComponent, {
              /**
               * @cfg {Number} value The value to initialize the slider with. Defaults to minValue.
               */
              /**
          Severity: Minor
          Found in app/assets/javascripts/ext/src/widgets/Slider.js - About 3 hrs to fix

            Class ApplicationController has 27 methods (exceeds 20 allowed). Consider refactoring.
            Open

            class ApplicationController < ActionController::Base
              include CachingPresenter::InstantiationMethods
              include Clearance::Authentication
            
              helper :all # include all helpers, all the time
            Severity: Minor
            Found in app/controllers/application_controller.rb - About 3 hrs to fix

              File ext-lang-en.js has 298 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*!
               * Ext JS Library 3.3.0
               * Copyright(c) 2006-2010 Ext JS, Inc.
               * licensing@extjs.com
               * http://www.extjs.com/license
              Severity: Minor
              Found in app/assets/javascripts/ext/src/locale/ext-lang-en.js - About 3 hrs to fix

                File ext-base-event.js has 298 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*!
                 * Ext JS Library 3.3.0
                 * Copyright(c) 2006-2010 Ext JS, Inc.
                 * licensing@extjs.com
                 * http://www.extjs.com/license
                Severity: Minor
                Found in app/assets/javascripts/ext/src/ext-core/src/adapter/ext-base-event.js - About 3 hrs to fix

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                              t.show = function(){
                                  var w = triggerField.wrap.getWidth();
                                  this.dom.style.display = '';
                                  triggerField.el.setWidth(w-triggerField.trigger.getWidth());
                                  triggerField['hidden' + triggerIndex] = false;
                  Severity: Major
                  Found in app/assets/javascripts/ext/src/widgets/form/TriggerField.js and 1 other location - About 3 hrs to fix
                  app/assets/javascripts/ext/src/widgets/form/TriggerField.js on lines 351..356

                  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 98.

                  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

                      constructor : function(c) {
                          c.tpl = c.tpl || new Ext.XTemplate('{' + c.dataIndex + ':number("' + (c.format || this.format) + '")}');       
                          Ext.list.NumberColumn.superclass.constructor.call(this, c);
                      }
                  Severity: Major
                  Found in app/assets/javascripts/ext/src/widgets/list/Column.js and 1 other location - About 3 hrs to fix
                  app/assets/javascripts/ext/src/widgets/list/Column.js on lines 109..112

                  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 98.

                  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

                              t.hide = function(){
                                  var w = triggerField.wrap.getWidth();
                                  this.dom.style.display = 'none';
                                  triggerField.el.setWidth(w-triggerField.trigger.getWidth());
                                  triggerField['hidden' + triggerIndex] = true;
                  Severity: Major
                  Found in app/assets/javascripts/ext/src/widgets/form/TriggerField.js and 1 other location - About 3 hrs to fix
                  app/assets/javascripts/ext/src/widgets/form/TriggerField.js on lines 357..362

                  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 98.

                  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

                      constructor : function(c) {
                          c.tpl = c.tpl || new Ext.XTemplate('{' + c.dataIndex + ':date("' + (c.format || this.format) + '")}');      
                          Ext.list.DateColumn.superclass.constructor.call(this, c);
                      }
                  Severity: Major
                  Found in app/assets/javascripts/ext/src/widgets/list/Column.js and 1 other location - About 3 hrs to fix
                  app/assets/javascripts/ext/src/widgets/list/Column.js on lines 92..95

                  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 98.

                  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

                  File yui-bridge.js has 297 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*!
                   * Ext JS Library 3.3.0
                   * Copyright(c) 2006-2010 Ext JS, Inc.
                   * licensing@extjs.com
                   * http://www.extjs.com/license
                  Severity: Minor
                  Found in app/assets/javascripts/ext/src/adapter/yui-bridge.js - About 3 hrs to fix

                    Function initComponent has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      initComponent: function(){
                        this.setTitle(this.orgId ? 'Edit Organization' : 'New Organization');
                        this.items = [
                          {xtype: 'container', itemId: 'container', width: 350, layout: 'form', defaults: {anchor: '100%'}, items: [
                            {xtype: 'textfield', fieldLabel: 'Name', name: 'organization[name]', allowBlank: false},
                    Severity: Major
                    Found in app/assets/javascripts/admin/organizations/view/New.js - About 3 hrs to fix

                      Identical blocks of code found in 2 locations. Consider refactoring.
                      Open

                          onItemIconChanged : function(item, iconCls, oldCls){
                              var el = this.getTabEl(item);
                              if(el){
                                  el = Ext.get(el);
                                  el.child('span.x-tab-strip-text').replaceClass(oldCls, iconCls);
                      app/assets/javascripts/ext/src/widgets/TabPanel.js on lines 673..680

                      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 97.

                      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

                      Identical blocks of code found in 2 locations. Consider refactoring.
                      Open

                          onItemIconChanged : function(item, iconCls, oldCls){
                              var el = this.getTabEl(item);
                              if(el){
                                  el = Ext.get(el);
                                  el.child('span.x-tab-strip-text').replaceClass(oldCls, iconCls);
                      Severity: Major
                      Found in app/assets/javascripts/ext/src/widgets/TabPanel.js and 1 other location - About 3 hrs to fix
                      app/assets/javascripts/ext_extensions/VerticalTabPanel/Ext.ux.tot2ivn.VrTabPanel.js on lines 516..523

                      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 97.

                      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 (data.moderator_audience)
                                {
                                  var audiencePanel = this.getComponent('audience_panel');
                                  audiencePanel.load(data.moderator_audience.jurisdictions || [], data.moderator_audience.roles || [], data.moderator_audience.users || []);
                                  audiencePanel.audienceId = data.moderator_audience.id;
                      Severity: Major
                      Found in app/assets/javascripts/forums/view/forums/Edit.js and 1 other location - About 3 hrs to fix
                      app/assets/javascripts/forums/view/forums/New.js on lines 70..75

                      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 97.

                      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 (overflow && overflow != 'hidden' &&!this.adjustmentPass) {
                                  var newTargetSize = this.getLayoutTargetSize();
                                  if (newTargetSize.width != previousTargetSize.width || newTargetSize.height != previousTargetSize.height){
                                      this.adjustmentPass = true;
                                      this.onLayout(container, target);
                      Severity: Major
                      Found in app/assets/javascripts/ext/src/widgets/layout/BoxLayout.js and 1 other location - About 3 hrs to fix
                      app/assets/javascripts/ext/src/widgets/layout/AnchorLayout.js on lines 202..208

                      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 97.

                      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 (overflow && overflow != 'hidden' && !this.adjustmentPass) {
                                  var newTargetSize = this.getLayoutTargetSize();
                                  if (newTargetSize.width != size.width || newTargetSize.height != size.height){
                                      this.adjustmentPass = true;
                                      this.onLayout(container, target);
                      app/assets/javascripts/ext/src/widgets/layout/BoxLayout.js on lines 231..237

                      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 97.

                      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 (data.audience)
                                {
                                  var audiencePanel = this.getComponent('audience_panel');
                                  audiencePanel.load(data.audience.jurisdictions || [], data.audience.roles || [], data.audience.users || []);
                                  audiencePanel.audienceId = data.audience.id;
                      Severity: Major
                      Found in app/assets/javascripts/forums/view/forums/New.js and 1 other location - About 3 hrs to fix
                      app/assets/javascripts/forums/view/forums/Edit.js on lines 48..53

                      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 97.

                      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

                      Severity
                      Category
                      Status
                      Source
                      Language