talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

Function onData has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    onData: function(opt, success, xhr){
        if(success){
            var events = this.getEvents(xhr);
            for(var i = 0, len = events.length; i < len; i++){
                var e = events[i],
Severity: Minor
Found in app/assets/javascripts/ext/src/direct/RemotingProvider.js - About 1 hr to fix

    Function prepareEdit has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      prepareEdit: function(groupId){
        // reset the group form
        this.create_group_form_panel.getForm().reset();
        this.audience_panel.clear();
    
    
    Severity: Minor
    Found in app/assets/javascripts/groups/view/create_edit.js - About 1 hr to fix

      Function _createStoreAndDataView has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        _createStoreAndDataView: function(){
          this.store = new Ext.data.Store({
            autoDestroy: true,
            autoLoad: false,
            autoSave: false,
      Severity: Minor
      Found in app/assets/javascripts/profile/DevicesControl.js - About 1 hr to fix

        Function Instance has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        Ext.util.TextMetrics.Instance = function(bindTo, fixedWidth){
            var ml = new Ext.Element(document.createElement('div'));
            document.body.appendChild(ml.dom);
            ml.position('absolute');
            ml.setLeftTop(-1000, -1000);
        Severity: Minor
        Found in app/assets/javascripts/ext/src/util/TextMetrics.js - About 1 hr to fix

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

              initComponent : function(){
                  this.showFunc = false;
                  this.toggleFunc = function() {
                      this.showFunc = !this.showFunc;
                      this.refreshNodes(this.currentObject);
          Severity: Minor
          Found in app/assets/javascripts/ext/src/debug.js - About 1 hr to fix

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

              constructor: function(config){
                Ext.apply(this, config);
            
                // Add flash msg at top and buttons at the bottom
                var panel_items = [
            Severity: Minor
            Found in app/assets/javascripts/profile/ProfileBase.js - About 1 hr to fix

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

                  onRender : function(ct, position){
                      this.el = new Ext.Layer({
                          shadow: this.shadow,
                          cls: "x-editor",
                          parentEl : ct,
              Severity: Minor
              Found in app/assets/javascripts/ext/src/widgets/Editor.js - About 1 hr to fix

                Function createMonthPicker has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    createMonthPicker : function(){
                        if(!this.monthPicker.dom.firstChild){
                            var buf = ['<table border="0" cellspacing="0">'];
                            for(var i = 0; i < 6; i++){
                                buf.push(
                Severity: Minor
                Found in app/assets/javascripts/ext/src/widgets/DatePicker.js - About 1 hr to fix

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

                      initComponent: function() {
                          var labels = [],
                              items  = this.items,
                              item;
                  
                  
                  Severity: Minor
                  Found in app/assets/javascripts/ext/src/widgets/form/CompositeField.js - About 1 hr to fix

                    Function getTuples has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        getTuples: function() {
                            var newStore = new Ext.data.Store({});
                            
                            newStore.data = this.store.data.clone();
                            newStore.fields = this.store.fields;
                    Severity: Minor
                    Found in app/assets/javascripts/ext/src/widgets/grid/PivotAxis.js - About 1 hr to fix

                      Function extend has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              extend : function(){
                                  // inline overrides
                                  var io = function(o){
                                      for(var m in o){
                                          this[m] = o[m];

                        Function extend has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                extend : function(){
                                    // inline overrides
                                    var io = function(o){
                                        for(var m in o){
                                            this[m] = o[m];
                        Severity: Minor
                        Found in app/assets/javascripts/ext/src/ext-core/src/core/Ext.js - About 1 hr to fix

                          Function fireEvent has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              fireEvent : function(){
                                  var a = Array.prototype.slice.call(arguments, 0),
                                      ename = a[0].toLowerCase(),
                                      me = this,
                                      ret = TRUE,
                          Severity: Minor
                          Found in app/assets/javascripts/ext/src/ext-core/src/util/Observable.js - About 1 hr to fix

                            Function removeAll has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    removeAll : function(el){
                                        el = Ext.getDom(el);
                                        var id = getId(el),
                                            ec = Ext.elCache[id] || {},
                                            es = ec.events || {},
                            Severity: Minor
                            Found in app/assets/javascripts/ext/src/ext-core/src/core/EventManager.js - About 1 hr to fix

                              Function getId has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                   function getId(el){
                                      var id = false,
                                          i = 0,
                                          len = specialElCache.length,
                                          skip = false,
                              Severity: Minor
                              Found in app/assets/javascripts/ext/src/ext-core/src/core/EventManager.js - About 1 hr to fix

                                Function extend has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        extend : function(){
                                            // inline overrides
                                            var io = function(o){
                                                for(var m in o){
                                                    this[m] = o[m];

                                  Function extend has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          extend : function(){
                                              // inline overrides
                                              var io = function(o){
                                                  for(var m in o){
                                                      this[m] = o[m];
                                  Severity: Minor
                                  Found in app/assets/javascripts/ext/adapter/ext/ext-base-debug.js - About 1 hr to fix

                                    Function extend has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            extend : function(){
                                                // inline overrides
                                                var io = function(o){
                                                    for(var m in o){
                                                        this[m] = o[m];
                                    Severity: Minor
                                    Found in app/assets/javascripts/ext/adapter/yui/ext-yui-adapter-debug.js - About 1 hr to fix

                                      Function addPostsView has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        addPostsView: function(){
                                          this.store = new Ext.data.JsonStore({
                                            fields: ['id', 'name', 'content', 'poster_name', 'forum_name', 'poster_id', 'forum_id', {name: 'created_at', type: 'date'}, 'poster_avatar'],
                                            restful: true,
                                            url: '/forums/topics/recent_posts.json',
                                      Severity: Minor
                                      Found in app/assets/javascripts/dashboard/cms/portlets/forum.js - About 1 hr to fix

                                        Function saveDashboard has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          saveDashboard: function(){
                                            var params = {
                                              columns: this.portal.columnCount,
                                              config: this.portal.getConfig()
                                            };
                                        Severity: Minor
                                        Found in app/assets/javascripts/dashboard/cms/admin_controller.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language