talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

Function bindStore has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    bindStore : function(store, initial){
        if(!initial && this.store){
            if(store !== this.store && this.store.autoDestroy){
                this.store.destroy();
            }else{
Severity: Minor
Found in app/assets/javascripts/ext/src/widgets/DataView.js - About 1 hr to fix

    Function buildExtractors has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        buildExtractors : function() {
            if(this.ef){
                return;
            }
            var s = this.meta, Record = this.recordType,
    Severity: Minor
    Found in app/assets/javascripts/ext/src/data/JsonReader.js - About 1 hr to fix

      Function onWrite has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  proxy.onWrite = proxy.onWrite.createInterceptor(function(action, o, response, rs) {
                      var reader = o.reader;
                      var res = new Ext.data.Response({
                          action: action,
                          raw: response
      Severity: Minor
      Found in app/assets/javascripts/ext/src/data/Api.js - About 1 hr to fix

        Function singleSort has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            singleSort: function(fieldName, dir) {
                var field = this.fields.get(fieldName);
                if (!field) {
                    return false;
                }
        Severity: Minor
        Found in app/assets/javascripts/ext/src/data/Store.js - About 1 hr to fix

          Function mask has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                      mask : function(msg, msgCls) {
                          var me  = this,
                              dom = me.dom,
                              dh  = Ext.DomHelper,
                              EXTELMASKMSG = "ext-el-mask-msg",
          Severity: Minor
          Found in app/assets/javascripts/ext/src/core/Element.fx-more.js - About 1 hr to fix

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

                constructor : function(attributes){
                    attributes = attributes || {};
                    if(Ext.isString(attributes)){
                        attributes = {text: attributes};
                    }
            Severity: Minor
            Found in app/assets/javascripts/ext/src/widgets/tree/TreeNode.js - About 1 hr to fix

              Function filterBy has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  filterBy : function(fn, scope, startNode){
                      startNode = startNode || this.tree.root;
                      if(this.autoClear){
                          this.clear();
                      }
              Severity: Minor
              Found in app/assets/javascripts/ext/src/widgets/tree/TreeFilter.js - About 1 hr to fix

                Function updateToolbar has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    updateToolbar: function(){
                
                        if(this.readOnly){
                            return;
                        }
                Severity: Minor
                Found in app/assets/javascripts/ext/src/widgets/form/HtmlEditor.js - About 1 hr to fix

                  Function onSetValue has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      onSetValue: function(id, value){
                          if(arguments.length == 1){
                              if(Ext.isArray(id)){
                                  Ext.each(id, function(val, idx){
                                      if (Ext.isObject(val) && val.setValue){ // array of checkbox components to be checked
                  Severity: Minor
                  Found in app/assets/javascripts/ext/src/widgets/form/CheckboxGroup.js - About 1 hr to fix

                    Function initEvents has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        initEvents : function(){
                            Ext.Window.superclass.initEvents.call(this);
                            if(this.animateTarget){
                                this.setAnimateTarget(this.animateTarget);
                            }
                    Severity: Minor
                    Found in app/assets/javascripts/ext/src/widgets/Window.js - About 1 hr to fix

                      Function insertRows has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          insertRows : function(dm, firstRow, lastRow, isUpdate) {
                              var last = dm.getCount() - 1;
                              if( !isUpdate && firstRow === 0 && lastRow >= last) {
                                  this.fireEvent('beforerowsinserted', this, firstRow, lastRow);
                                      this.refresh();
                      Severity: Minor
                      Found in app/assets/javascripts/ext/src/widgets/grid/GridView.js - About 1 hr to fix

                        Function parseAnchor has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            parseAnchor : function(a, start, cstart) {
                                if (a && a != 'none') {
                                    var last;
                                    // standard anchor
                                    if (this.parseAnchorRE.test(a)) {
                        Severity: Minor
                        Found in app/assets/javascripts/ext/src/widgets/layout/AnchorLayout.js - About 1 hr to fix

                          Function initTab has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              initTab : function(item, index){
                                  var before = this.strip.dom.childNodes[index],
                                      p = this.getTemplateArgs(item),
                                      el = before ?
                                           this.itemTpl.insertBefore(before, p) :
                          Severity: Minor
                          Found in app/assets/javascripts/ext/src/widgets/TabPanel.js - About 1 hr to fix

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

                                render : function(ct, p){
                                    Ext.layout.BorderLayout.SplitRegion.superclass.render.call(this, ct, p);
                            
                                    var ps = this.position;
                            
                            
                            Severity: Minor
                            Found in app/assets/javascripts/ext/src/widgets/layout/BorderLayout.js - About 1 hr to fix

                              Function onStartProxyDrag has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  onStartProxyDrag : function(x, y){
                                      this.fireEvent("beforeresize", this);
                                      this.overlay =  Ext.DomHelper.append(document.body,  {cls: "x-drag-overlay", html: " "}, true);
                                      this.overlay.unselectable();
                                      this.overlay.setSize(Ext.lib.Dom.getViewWidth(true), Ext.lib.Dom.getViewHeight(true));
                              Severity: Minor
                              Found in app/assets/javascripts/ext/src/widgets/SplitBar.js - About 1 hr to fix

                                Function setConfig has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    setConfig : function(config, initial) {
                                        var i, c, len;
                                        
                                        if (!initial) { // cleanup
                                            delete this.totalWidth;
                                Severity: Minor
                                Found in app/assets/javascripts/ext/src/widgets/grid/ColumnModel.js - About 1 hr to fix

                                  Function load has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      load: function(fileList, callback, scope, preserveOrder) {
                                          var scope       = scope || this,
                                              head        = document.getElementsByTagName("head")[0],
                                              fragment    = document.createDocumentFragment(),
                                              numFiles    = fileList.length,
                                  Severity: Minor
                                  Found in app/assets/javascripts/ext/src/ext-core/src/core/Loader.js - About 1 hr to fix

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

                                        init: function( selector, context ) {
                                            // Make sure that a selection was provided
                                            selector = selector || document;
                                    
                                            // Handle $(DOMElement)
                                    Severity: Minor
                                    Found in app/assets/javascripts/jquery-tooltip/lib/jquery.js - About 1 hr to fix

                                      Function initTab has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          initTab : function(item, index){
                                              var before = this.strip.dom.childNodes[index],
                                                  p = this.getTemplateArgs(item),
                                                  el = before ?
                                                       this.itemTpl.insertBefore(before, p) :

                                        Method import has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          def import
                                            fields = [ :last_name, :first_name, :display_name, :jurisdiction, :mobile, :fax, :phone, :email ]
                                        
                                            csvfile = params[:users][:csvfile]
                                            users = []
                                        Severity: Minor
                                        Found in app/controllers/admin/user_batch_controller.rb - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language