talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

Function rowselect has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                    'rowselect': function(sm, row, record){
                        if(!this._fileGrid){
                            this._fileGrid = this.getPanel().getComponent('file_grid_holder').getComponent('file_grid');
                        }
                        if(!this._iconView){
Severity: Minor
Found in app/assets/javascripts/documents/Documents.js - About 1 hr to fix

    Function _createUserSearchStore has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _createUserSearchStore: function(){
            this.user_search_store = new Ext.data.JsonStore({
                proxy: new Ext.data.HttpProxy({
                    url: '/search/show_clean.json',
                    api: {read: {url: '/search/show_clean.json', method:'POST'}}
    Severity: Minor
    Found in app/assets/javascripts/audience/UserSelectionGrid.js - About 1 hr to fix

      Function execute has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          execute : function(action, rs, options, /* private */ batch) {
              // blow up if action not Ext.data.CREATE, READ, UPDATE, DESTROY
              if (!Ext.data.Api.isAction(action)) {
                  throw new Ext.data.Api.Error('execute', action);
              }
      Severity: Minor
      Found in app/assets/javascripts/ext/src/data/Store.js - About 1 hr to fix

        Function encodeValue has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            encodeValue : function(v){
                var enc,
                    flat = '',
                    i = 0,
                    len,
        Severity: Minor
        Found in app/assets/javascripts/ext/src/state/Provider.js - About 1 hr to fix

          Function renderElements has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              renderElements : function(n, a, targetNode, bulkRender){
                  // add some indent caching, this helps performance when rendering a large tree
                  this.indentMarkup = n.parentNode ? n.parentNode.ui.getChildIndent() : '';
          
                  var cb = Ext.isBoolean(a.checked),
          Severity: Minor
          Found in app/assets/javascripts/ext/src/widgets/tree/TreeNodeUI.js - About 1 hr to fix

            Function getErrors has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                getErrors: function(value) {
                    var errors = Ext.form.DateField.superclass.getErrors.apply(this, arguments);
            
                    value = this.formatDate(value || this.processValue(this.getRawValue()));
            
            
            Severity: Minor
            Found in app/assets/javascripts/ext/src/widgets/form/DateField.js - About 1 hr to fix

              Function setVisible has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  setVisible : function(v, a, d, c, e){
                      if(v){
                          this.showAction();
                      }
                      if(a && v){
              Severity: Minor
              Found in app/assets/javascripts/ext/src/widgets/Layer.js - About 1 hr to fix

                Function sync has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    sync : function(doShow){
                        var shadow = this.shadow;
                        if(!this.updating && this.isVisible() && (shadow || this.useShim)){
                            var shim = this.getShim(),
                                w = this.getWidth(),
                Severity: Minor
                Found in app/assets/javascripts/ext/src/widgets/Layer.js - About 1 hr to fix

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

                      onRender : function(ct, position){
                          var tpl = new Ext.Template(
                              '<div class="{cls}-wrap">',
                                  '<div class="{cls}-inner">',
                                      '<div class="{cls}-bar">',
                  Severity: Minor
                  Found in app/assets/javascripts/ext/src/widgets/ProgressBar.js - About 1 hr to fix

                    Function renderHeaders has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        renderHeaders : function() {
                            var colModel   = this.cm,
                                templates  = this.templates,
                                headerTpl  = templates.hcell,
                                properties = {},
                    Severity: Minor
                    Found in app/assets/javascripts/ext/src/widgets/grid/GridView.js - About 1 hr to fix

                      Function constrainScroll has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          constrainScroll : function(y){
                              var max, full = this.ul.setHeight('auto').getHeight(),
                                  returnY = y, normalY, parentEl, scrollTop, viewHeight;
                              if(this.floating){
                                  parentEl = Ext.fly(this.el.dom.parentNode);
                      Severity: Minor
                      Found in app/assets/javascripts/ext/src/widgets/menu/Menu.js - About 1 hr to fix

                        Function cb has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                    function cb(){
                                        var me = this,
                                            // bogus response object
                                            r = {responseText : '',
                                                 responseXML : null,
                        Severity: Minor
                        Found in app/assets/javascripts/ext/src/ext-core/src/data/Connection.js - About 1 hr to fix

                          Function initExtCss has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              var initExtCss = function() {
                                  // find the body element
                                  var bd = document.body || document.getElementsByTagName('body')[0];
                                  if (!bd) {
                                      return false;
                          Severity: Minor
                          Found in app/assets/javascripts/ext/src/ext-core/src/core/EventManager.js - About 1 hr to fix

                            Function onreadystatechange has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    var onreadystatechange = function(isTimeout){
                                        // The transfer is complete and the data is available, or the request timed out
                                        if ( !requestDone && xml && (xml.readyState == 4 || isTimeout == "timeout") ) {
                                            requestDone = true;
                                            
                            Severity: Minor
                            Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js - About 1 hr to fix

                              Function trigger has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  trigger: function(type, data, elem, donative, extra) {
                                      // Clone the incoming data, if any
                                      data = jQuery.makeArray(data || []);
                              
                                      // Handle a global trigger
                              Severity: Minor
                              Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js - About 1 hr to fix

                                Function showTooltip has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    showTooltip: function(msg){
                                        if (this.showToolTips !== true){
                                          return;
                                        }
                                        var t = this.tooltip;
                                Severity: Minor
                                Found in app/assets/javascripts/ext_extensions/RowEditor.js - About 1 hr to fix

                                  Function isPaging has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      isPaging: function (params) {
                                          var pn = this.paramNames,
                                              start = params[pn.start],
                                              limit = params[pn.limit];
                                          if ((typeof start != 'number') || (typeof limit != 'number')) {
                                  Severity: Minor
                                  Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 1 hr to fix

                                    Function FileUploaderBasic has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    qq.FileUploaderBasic = function(o){
                                        this._options = {
                                            // set to true to see the server response
                                            debug: false,
                                            action: '/server/upload',
                                    Severity: Minor
                                    Found in app/assets/javascripts/lib/fileuploader.js - About 1 hr to fix

                                      Function _setupDragDrop has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          _setupDragDrop: function(){
                                              var self = this,
                                                  dropArea = this._find(this._element, 'drop');                        
                                      
                                              var dz = new qq.UploadDropZone({
                                      Severity: Minor
                                      Found in app/assets/javascripts/lib/fileuploader.js - About 1 hr to fix

                                        Method to_dsml has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          def to_dsml(builder=nil)
                                            builder=::Builder::XmlMarkup.new( :indent => 2) if builder.nil?
                                            builder.dsml(:entry, :dn => dn) do |entry|
                                              entry.dsml:objectclass do |oc|
                                                ocv="oc-value".to_sym
                                        Severity: Minor
                                        Found in app/models/user.rb - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language