talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

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

        runTasks = function(){
            var rqLen = removeQueue.length,
                now = new Date().getTime();                                
        
            if(rqLen > 0){
Severity: Minor
Found in app/assets/javascripts/ext/src/ext-core/src/util/TaskMgr.js - About 1 hr to fix

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

            serializeForm : function(form) {
                var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements, 
                    hasSubmit = false, 
                    encoder = encodeURIComponent, 
                    name, 

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

              runTasks = function(){
                  var rqLen = removeQueue.length,
                      now = new Date().getTime();                                
              
                  if(rqLen > 0){

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

                runTasks = function(){
                    var rqLen = removeQueue.length,
                        now = new Date().getTime();                                
                
                    if(rqLen > 0){
        Severity: Minor
        Found in app/assets/javascripts/ext/adapter/yui/ext-yui-adapter-debug.js - About 1 hr to fix

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

                  runTasks = function(){
                      var rqLen = removeQueue.length,
                          now = new Date().getTime();                                
                  
                      if(rqLen > 0){

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

                    runTasks = function(){
                        var rqLen = removeQueue.length,
                            now = new Date().getTime();                                
                    
                        if(rqLen > 0){
            Severity: Minor
            Found in app/assets/javascripts/ext/adapter/ext/ext-base-debug.js - About 1 hr to fix

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

                      serializeForm : function(form) {
                          var fElements = form.elements || (document.forms[form] || Ext.getDom(form)).elements, 
                              hasSubmit = false, 
                              encoder = encodeURIComponent, 
                              name, 
              Severity: Minor
              Found in app/assets/javascripts/ext/adapter/ext/ext-base-debug.js - About 1 hr to fix

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

                    remove: function (record) {
                        if (Ext.isArray(record)) {
                            Ext.each(record, function (r) {
                                this.remove(r);
                            }, this);
                Severity: Minor
                Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 1 hr to fix

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

                      setActiveTab : function(item){
                          item = this.getComponent(item);
                          if(this.fireEvent('beforetabchange', this, item, this.activeTab) === false){
                              return;
                          }

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

                        init:function(component){
                            var originalSetValue = component.setValue;
                            var negValue = this.uncheckedValue;
                    
                            var buildInputElement = function(el, name){
                    Severity: Minor
                    Found in app/assets/javascripts/ext_extensions/SubmitFalse.js - About 1 hr to fix

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

                        feed_click: function(dv, i, n, e){
                          var r = dv.getStore().getAt(i);
                          if(this.tip && this.tip.isVisible()){
                            this.tip.destroy();
                          }
                      Severity: Minor
                      Found in app/assets/javascripts/dashboard/cms/portlets/rss.js - About 1 hr to fix

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

                            createScrollers : function(){
                                
                                this.header.addClass('x-tab-scrolling-' + this.tabPosition);
                                var w = this.tabWidth,
                                    sw = this.stripWrap;

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

                              initComponent: function()
                              {
                                  // We don't really care what they sent in, we're going to redefine the items and layout and a bunch of other config options
                                  this.ajaxPanel = new Ext.AjaxPanel({
                                      maxWidth: 1024,
                          Severity: Minor
                          Found in app/assets/javascripts/ext_extensions/CenteredAjaxPanel.js - About 1 hr to fix

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

                              def build_ivr(message_hash)
                                msg = ''
                                provider = message.Behavior.Delivery.Providers.select{|p| p.device == 'Console' && p.name == 'talho'}.first
                                ivr_name = provider.ivr
                                @ivr = message.IVRTree.select{|ivr| ivr.name == ivr_name}.first
                            Severity: Minor
                            Found in app/models/service/talho/console/message.rb - About 1 hr to fix

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

                              var rule = dominoes.rule = dataHolder( function( id ) {
                              
                                  var rules = this,
                                      running = FALSE,
                                      callbacks = [],
                              Severity: Minor
                              Found in app/assets/javascripts/lib/dominoes-1.0-rc2.js - About 1 hr to fix

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

                                        if ( s.data && type == "GET" ) {
                                            s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
                                
                                            // IE likes to send both get and post data, prevent this
                                            s.data = null;
                                Severity: Major
                                Found in app/assets/javascripts/jquery.js and 1 other location - About 1 hr to fix
                                app/assets/javascripts/jquery-tooltip/lib/jquery.js on lines 2592..2597

                                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

                                    onCellDeselect : function(row, col) {
                                        var cell = this.getCell(row, col);
                                        if (cell) {
                                            this.fly(cell).removeClass('x-grid3-cell-selected');
                                        }
                                Severity: Major
                                Found in app/assets/javascripts/ext/src/widgets/grid/GridView.js and 1 other location - About 1 hr to fix
                                app/assets/javascripts/ext/src/widgets/grid/GridView.js on lines 2152..2157

                                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 ( s.data && s.type.toLowerCase() == "get" ) {
                                            s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
                                
                                            // IE likes to send both get and post data, prevent this
                                            s.data = null;
                                Severity: Major
                                Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js and 1 other location - About 1 hr to fix
                                app/assets/javascripts/jquery.js on lines 3457..3462

                                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

                                        this.edge = this.strip.createChild({tag:'li', cls:'x-tab-edge', cn: [{tag: 'span', cls: 'x-tab-strip-text', cn: ' '}]});
                                Severity: Major
                                Found in app/assets/javascripts/ext/src/widgets/TabPanel.js and 1 other location - About 1 hr to fix
                                app/assets/javascripts/ext_extensions/PillPanel.js on lines 22..30

                                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

                                    onCellSelect : function(row, col) {
                                        var cell = this.getCell(row, col);
                                        if (cell) {
                                            this.fly(cell).addClass('x-grid3-cell-selected');
                                        }
                                Severity: Major
                                Found in app/assets/javascripts/ext/src/widgets/grid/GridView.js and 1 other location - About 1 hr to fix
                                app/assets/javascripts/ext/src/widgets/grid/GridView.js on lines 2160..2165

                                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

                                Severity
                                Category
                                Status
                                Source
                                Language