talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

Function constructor has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  constructor: function(config){
    Ext.apply(this, config);
    
    var index = new Talho.Admin.Apps.view.Index({
      listeners: {
Severity: Minor
Found in app/assets/javascripts/admin/apps/Controller.js - About 1 hr to fix

    Function ATTR has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            ATTR: function(elem, match){
                var name = match[1],
                    result = Expr.attrHandle[ name ] ?
                        Expr.attrHandle[ name ]( elem ) :
                        elem[ name ] != null ?
    Severity: Minor
    Found in app/assets/javascripts/jquery.js - About 1 hr to fix

      Function constructor has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          constructor: function(config){
              Ext.apply(this, config);
      
              var blank_store = new Ext.data.Store({});
      
      
      Severity: Minor
      Found in app/assets/javascripts/documents/Documents.js - About 1 hr to fix

        Function show_message has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          show_message: function(json){
            var fm = this.getPanel().getEl().select("#flash-msg").first();
            var msg = "";
            if (json.flash != null) {
              msg += json.flash;
        Severity: Minor
        Found in app/assets/javascripts/profile/ProfileBase.js - About 1 hr to fix

          Function fn has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function fn(m, name, format, args, math){
                      if(name.substr(0, 4) == 'xtpl'){
                          return "'"+ sep +'this.applySubTemplate('+name.substr(4)+', values, parent, xindex, xcount)'+sep+"'";
                      }
                      var v;
          Severity: Minor
          Found in app/assets/javascripts/ext/src/util/XTemplate.js - About 1 hr to fix

            Function constructor has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              constructor: function(config){
                this.devices_control = new Talho.ux.DevicesControl(config.url + ".json", this);
            
                this.infobox = new Ext.Container({
                  layout: 'column',
            Severity: Minor
            Found in app/assets/javascripts/profile/EditDevices.js - About 1 hr to fix

              Function isOverTarget has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      isOverTarget: function(pt, oTarget, intersect) {
                          // use cache if available
                          var loc = this.locationCache[oTarget.id];
                          if (!loc || !this.useCache) {
                              loc = this.getLocation(oTarget);
              Severity: Minor
              Found in app/assets/javascripts/ext/src/dd/DDCore.js - About 1 hr to fix

                Function insertSibling has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        insertSibling: function(el, where, returnDom){
                            var me = this,
                                rt,
                                isAfter = (where || 'before').toLowerCase() == 'after',
                                insertEl;
                Severity: Minor
                Found in app/assets/javascripts/ext/src/core/Element.insertion-more.js - About 1 hr to fix

                  Function doRequest has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      doRequest : function(action, rs, params, reader, cb, scope, arg) {
                          var  o = {
                              method: (this.api[action]) ? this.api[action]['method'] : undefined,
                              request: {
                                  callback : cb,
                  Severity: Minor
                  Found in app/assets/javascripts/ext/src/data/HttpProxy.js - About 1 hr to fix

                    Function expand has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        expand : function(deep, anim, callback, scope){
                            if(!this.expanded){
                                if(this.fireEvent('beforeexpand', this, deep, anim) === false){
                                    return;
                                }
                    Severity: Minor
                    Found in app/assets/javascripts/ext/src/widgets/tree/TreeNode.js - About 1 hr to fix

                      Function collapse has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          collapse : function(deep, anim, callback, scope){
                              if(this.expanded && !this.isHiddenRoot()){
                                  if(this.fireEvent('beforecollapse', this, deep, anim) === false){
                                      return;
                                  }
                      Severity: Minor
                      Found in app/assets/javascripts/ext/src/widgets/tree/TreeNode.js - About 1 hr to fix

                        Function createCSS has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function createCSS(sel, decl, media, newStyle) {
                                if (ua.ie && ua.mac) { return; }
                                var h = doc.getElementsByTagName("head")[0];
                                if (!h) { return; } // to also support badly authored HTML pages that lack a head element
                                var m = (media && typeof media == "string") ? media : "screen";
                        Severity: Minor
                        Found in app/assets/javascripts/ext/src/widgets/chart/swfobject.js - About 1 hr to fix

                          Function doLayout has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              doLayout : function(shallow, force){
                                  var rendered = this.rendered,
                                      forceLayout = force || this.forceLayout;
                          
                                  if(this.collapsed || !this.canLayout()){
                          Severity: Minor
                          Found in app/assets/javascripts/ext/src/widgets/Container.js - About 1 hr to fix

                            Function afterShow has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                afterShow : function(isAnim){
                                    if (this.isDestroyed){
                                        return false;
                                    }
                                    this.proxy.hide();
                            Severity: Minor
                            Found in app/assets/javascripts/ext/src/widgets/Window.js - About 1 hr to fix

                              Function expand has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  expand : function(){
                                      if(this.isExpanded() || !this.hasFocus){
                                          return;
                                      }
                              
                              
                              Severity: Minor
                              Found in app/assets/javascripts/ext/src/widgets/form/Combo.js - About 1 hr to fix

                                Function onRender has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    onRender : function(ct, position){
                                        if(!this.el){
                                            var cfg = this.getAutoCreate();
                                
                                            if(!cfg.name){
                                Severity: Minor
                                Found in app/assets/javascripts/ext/src/widgets/form/Field.js - About 1 hr to fix

                                  Function render has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      render : function(ct, p){
                                          this.panel = p;
                                          p.el.enableDisplayMode();
                                          this.targetEl = ct;
                                          this.el = p.el;
                                  Severity: Minor
                                  Found in app/assets/javascripts/ext/src/widgets/layout/BorderLayout.js - About 1 hr to fix

                                    Function setActiveTab has 28 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;
                                            }
                                    Severity: Minor
                                    Found in app/assets/javascripts/ext/src/widgets/TabPanel.js - About 1 hr to fix

                                      Function renderItem has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          renderItem : function(c, position, target){
                                              if (!this.itemTpl) {
                                                  this.itemTpl = Ext.layout.MenuLayout.prototype.itemTpl = new Ext.XTemplate(
                                                      '<li id="{itemId}" class="{itemCls}">',
                                                          '<tpl if="needsIcon">',
                                      Severity: Minor
                                      Found in app/assets/javascripts/ext/src/widgets/layout/MenuLayout.js - About 1 hr to fix

                                        Function renderVerticalRows has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            renderVerticalRows: function() {
                                                var headers  = this.buildHeaders(),
                                                    colCount = headers.length,
                                                    rowCells = [],
                                                    rows     = [],
                                        Severity: Minor
                                        Found in app/assets/javascripts/ext/src/widgets/grid/PivotAxis.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language