talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

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

  def xml_build_behavior builder, options={}
    options={ :Delivery => {:Providers => {} } } if options.blank?
    builder.Behavior do |behavior|
      if options[:override]
        options[:override].call(behavior)
Severity: Minor
Found in app/models/alert.rb - About 1 hr to fix

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

      def get_version_list(params)
        # set some defaults
        params[:start] = 0 unless params[:start]
        params[:limit] =  30 unless params[:limit]
        params[:sort] = 'id' unless params[:sort]
    Severity: Minor
    Found in app/controllers/audits_controller.rb - About 1 hr to fix

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

        def play_music
          body = ""
          xml = ::Builder::XmlMarkup.new :target => body, :indent => 2
          xml.instruct!
          xml.ucsxml :version=>"1.1", :xmlns=>"http://ucs.tfcci.com" do |ucsxml|
      Severity: Minor
      Found in doc/21cc_spike.rb - About 1 hr to fix

        Function offset has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            jQuery.fn.offset = function() {
                if ( !this[0] ) return { top: 0, left: 0 };
                if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
                jQuery.offset.initialized || jQuery.offset.initialize();
        
        
        Severity: Minor
        Found in app/assets/javascripts/jquery.js - About 1 hr to fix

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

            initComponent: function(){
              this.items = [
                {xtype: 'dataview', itemId: 'dataview', region: 'center', margins: '5', store: new Ext.data.JsonStore({
                  restful: true,
                  url: '/reports.json',
          Severity: Minor
          Found in app/assets/javascripts/reports/view/Index.js - About 1 hr to fix

            Function _createUserSearchCombo has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _createUserSearchCombo: function(){
                    return { xtype: 'combo',
                            border: false,
                            queryParam: 'tag',
                            mode: 'remote',
            Severity: Minor
            Found in app/assets/javascripts/audience/UserSelectionGrid.js - About 1 hr to fix

              Function _createStore has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _createStore: function(config){
                      this.store = this.store || new Ext.ux.maximgb.tg.NestedSetStore({
                          leaf_field_name: 'leaf',
                          right_field_name: 'right',
                          left_field_name: 'left',
              Severity: Minor
              Found in app/assets/javascripts/audience/JurisdictionsTree.js - About 1 hr to fix

                Function createResponse has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var createResponse = function(cb, xhr){
                        var headerObj = {},
                            headerStr,
                            t,
                            s;
                Severity: Minor
                Found in app/assets/javascripts/ext/src/adapter/prototype-bridge.js - About 1 hr to fix

                  Function request has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          request : function(method, uri, cb, data, options){
                              var o = {
                                  method: method,
                                  parameters: data || '',
                                  timeout: cb.timeout,
                  Severity: Minor
                  Found in app/assets/javascripts/ext/src/adapter/prototype-bridge.js - About 1 hr to fix

                    Function createResponse has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var createResponse = function(cb, xhr){
                            var headerObj = {},
                                headerStr,
                                t,
                                s;
                    Severity: Minor
                    Found in app/assets/javascripts/ext/src/adapter/jquery-bridge.js - About 1 hr to fix

                      Function getBox has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          getBox : function(contentBox, local) {        
                              var me = this,
                                  xy,
                                  left,
                                  top,
                      Severity: Minor
                      Found in app/assets/javascripts/ext/src/core/Element.position-more.js - About 1 hr to fix

                        Function initButtonEl has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            initButtonEl : function(btn, btnEl){
                                this.el = btn;
                                this.setIcon(this.icon);
                                this.setText(this.text);
                                this.setIconClass(this.iconCls);
                        Severity: Minor
                        Found in app/assets/javascripts/ext/src/widgets/Button.js - About 1 hr to fix

                          Function nodup has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function nodup(cs){
                                  if(!cs){
                                      return [];
                                  }
                                  var len = cs.length, c, i, r = cs, cj, ri = -1;
                          Severity: Minor
                          Found in app/assets/javascripts/ext/src/ext-core/src/core/DomQuery.js - About 1 hr to fix

                            Function _tryPreloadAttach has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function _tryPreloadAttach() {
                                    var ret = false,
                                        notAvail = [],
                                        element, i, v, override,
                                        tryAgain = !loadComplete || (retryCount > 0);

                              Function createResponse has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  var createResponse = function(cb, xhr){
                                      var headerObj = {},
                                          headerStr,
                                          t,
                                          s;

                                Function updateAllColumnWidths has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    updateAllColumnWidths : function()
                                    {
                                        var tw = this.getTotalWidth(),
                                        clen = this.cm.getColumnCount(),
                                        ws = [],
                                Severity: Minor
                                Found in app/assets/javascripts/ext_extensions/TreeGrid/TreeGrid.js - About 1 hr to fix

                                  Function createResponse has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      var createResponse = function(cb, xhr){
                                          var headerObj = {},
                                              headerStr,
                                              t,
                                              s;

                                    Function updateAllColumnWidths has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        updateAllColumnWidths : function()
                                        {
                                            var tw = this.getTotalWidth(),
                                            clen = this.cm.getColumnCount(),
                                            ws = [],
                                    Severity: Minor
                                    Found in app/assets/javascripts/ext_extensions/TreeGrid/src/GridView.js - About 1 hr to fix

                                      Function _tryPreloadAttach has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function _tryPreloadAttach() {
                                              var ret = false,
                                                  notAvail = [],
                                                  element, i, v, override,
                                                  tryAgain = !loadComplete || (retryCount > 0);
                                      Severity: Minor
                                      Found in app/assets/javascripts/ext/adapter/ext/ext-base-debug.js - About 1 hr to fix

                                        Function request has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                request : function(method, uri, cb, data, options){
                                                    var o = {
                                                        method: method,
                                                        parameters: data || '',
                                                        timeout: cb.timeout,
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language