talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

BoxComponent has 21 functions (exceeds 20 allowed). Consider refactoring.
Open

Ext.BoxComponent = Ext.extend(Ext.Component, {

    // Configs below are used for all Components when rendered by BoxLayout.
    /**
     * @cfg {Number} flex
Severity: Minor
Found in app/assets/javascripts/ext/src/widgets/BoxComponent.js - About 2 hrs to fix

    GridPanel has 21 functions (exceeds 20 allowed). Consider refactoring.
    Open

    Ext.grid.GridPanel = Ext.extend(Ext.Panel, {
        /**
         * @cfg {String} autoExpandColumn
         * <p>The <tt>{@link Ext.grid.Column#id id}</tt> of a {@link Ext.grid.Column column} in
         * this grid that should expand to fill unused space. This value specified here can not
    Severity: Minor
    Found in app/assets/javascripts/ext/src/widgets/grid/GridPanel.js - About 2 hrs to fix

      Function attr has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          attr: function( elem, name, value ) {
              // don't set attributes on text and comment nodes
              if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
                  return undefined;
      
      
      Severity: Major
      Found in app/assets/javascripts/jquery.js - About 2 hrs to fix

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

            initComponent: function(){
                this.file_actions = new Talho.ux.Documents.FileActions({});
        
                this.on('afterrender', function(){this.file_actions.download_frame_target = this.getEl();}, this, {delay: 1});
        
        
        Severity: Major
        Found in app/assets/javascripts/documents/DocumentSearch.js - About 2 hrs to fix

          Function createSWF has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function createSWF(attObj, parObj, id) {
                  var r, el = getElementById(id);
                  if (ua.wk && ua.wk < 312) { return r; }
                  if (el) {
                      if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content
          Severity: Major
          Found in app/assets/javascripts/ext/src/widgets/chart/swfobject.js - About 2 hrs to fix

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

                delegateContextMenu : function(e, t){
                    if(this.beforeEvent(e)){
                        if(this.getNodeTarget(e)){
                            this.onNodeContextMenu(e, this.getNode(e));
                        }
            app/assets/javascripts/ext/src/widgets/tree/TreeEventModel.js on lines 113..121

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

            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

                onScrollLeft : function(){
                    var pos = this.getScrollPos(),
                        s = Math.max(0, pos - this.getScrollIncrement());
                    if(s != pos){
                        this.scrollTo(s, this.animScroll);
            Severity: Major
            Found in app/assets/javascripts/ext/src/widgets/TabPanel.js and 1 other location - About 2 hrs to fix
            app/assets/javascripts/ext_extensions/VerticalTabPanel/Ext.ux.tot2ivn.VrTabPanel.js on lines 898..904

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

            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

                delegateDblClick : function(e, t){
                    if(this.beforeEvent(e)){
                        if(this.getNodeTarget(e)){
                            this.onNodeDblClick(e, this.getNode(e));
                        }
            app/assets/javascripts/ext/src/widgets/tree/TreeEventModel.js on lines 123..131

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

            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

                            for(var i = 0, len = e.before.length; i < len; i++){
                                b = e.before[i];
                                makeCall(b.fn, b.scope, args);
                                if (cancel) {
                                    return returnValue;
            Severity: Major
            Found in app/assets/javascripts/ext/src/util/Observable-more.js and 1 other location - About 2 hrs to fix
            app/assets/javascripts/ext/src/util/Observable-more.js on lines 63..69

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

            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

                            for(var i = 0, len = e.after.length; i < len; i++){
                                b = e.after[i];
                                makeCall(b.fn, b.scope, args);
                                if (cancel) {
                                    return returnValue;
            Severity: Major
            Found in app/assets/javascripts/ext/src/util/Observable-more.js and 1 other location - About 2 hrs to fix
            app/assets/javascripts/ext/src/util/Observable-more.js on lines 51..57

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

            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 (config.mode == 'editTopic' || config.mode == 'editComment') {
                  config.url = String.format('/forums/{0}/topics/{1}.json',config.forumId, config.topicId);
                  config.edit = true;
                  config.method = 'PUT';
                }
            Severity: Major
            Found in app/assets/javascripts/forums/view/topics/New.js and 1 other location - About 2 hrs to fix
            app/assets/javascripts/forums/view/topics/New.js on lines 14..18

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

            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

                onscrollTop : function(){
                    var pos = this.getScrollPos(),
                        s = Math.max(0, pos - this.getScrollIncrement());
                    if(s != pos){
                        this.scrollTo(s, this.animScroll);
            app/assets/javascripts/ext/src/widgets/TabPanel.js on lines 1025..1031

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

            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 (config.mode ==  'newComment' || config.mode == 'quoteComment') {
                  config.url = String.format('/forums/{0}/topics/{1}.json',config.forumId, config.topicId);
                  config.edit = false;
                  config.method = 'PUT';
                }
            Severity: Major
            Found in app/assets/javascripts/forums/view/topics/New.js and 1 other location - About 2 hrs to fix
            app/assets/javascripts/forums/view/topics/New.js on lines 19..23

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

            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 ext-lang-it.js has 256 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-it.js - About 2 hrs to fix

              File ext-lang-da.js has 256 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-da.js - About 2 hrs to fix

                File ext-lang-he.js has 256 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-he.js - About 2 hrs to fix

                  File ext-lang-no_NB.js has 256 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-no_NB.js - About 2 hrs to fix

                    File ext-lang-no_NN.js has 256 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-no_NN.js - About 2 hrs to fix

                      File ext-lang-th.js has 256 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-th.js - About 2 hrs to fix

                        File ToolbarLayout.js has 256 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/widgets/layout/ToolbarLayout.js - About 2 hrs to fix
                          Severity
                          Category
                          Status
                          Source
                          Language