estimancy/projestimate

View on GitHub

Showing 836 of 1,675 total issues

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

        hideFilters: function(table, c) {
            var $filterRow, $filterRow2, timer;
            $(table)
                .find('.' + ts.css.filterRow)
                .addClass('hideme')
Severity: Minor
Found in app/assets/javascripts/tablesorter.min.js - About 1 hr to fix

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

            this.getConnections = function(options, flat) {
                if (!options) {
                    options = {};
                } else if (options.constructor == String) {
                    options = { "scope": options };
    Severity: Minor
    Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 1 hr to fix

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

              this.detach = function(connection, ignoreTarget, forceDetach, fireEvent, originalEvent) {
                  var idx = _ju.findWithFunction(self.connections, function(c) { return c.id == connection.id}), 
                      actuallyDetached = false;
                  fireEvent = (fireEvent !== false);
                  if (idx >= 0) {        
      Severity: Minor
      Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 1 hr to fix

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

            fn.can_go_player_up = function(widget_grid_data) {
                var p_bottom_row = widget_grid_data.row + widget_grid_data.size_y - 1;
                var result = true;
                var upper_rows = [];
                var min_row = 10000;
        Severity: Minor
        Found in app/assets/javascripts/jquery.gridster.js - About 1 hr to fix

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

          function select_or_unselect_all_permissions(clicked_elt, cols_data_name, rows_data_name, rows_or_cols_name){
              var group_id = $(clicked_elt).data(cols_data_name);
              var permission_id = $(clicked_elt).data(rows_data_name);
              var rows_or_cols = $(clicked_elt).data("rows_or_cols_"+rows_or_cols_name);
              var at_least_one_selected = false;
          Severity: Minor
          Found in app/assets/javascripts/projestimate_script.js - About 1 hr to fix

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

                fn.scroll_in = function(axis, data) {
                    var dir_prop = dir_map[axis];
            
                    var area_size = 50;
                    var scroll_inc = 30;
            Severity: Minor
            Found in app/assets/javascripts/jquery.gridster.js - About 1 hr to fix

              Method validate_change_with_children has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                def validate_change_with_children
                  begin
                    wbs_activity = WbsActivity.find(params[:id])
                    wbs_activity_root_element = WbsActivityElement.where('wbs_activity_id = ? and is_root = ?', wbs_activity.id, true).first
              
              
              Severity: Minor
              Found in app/controllers/wbs_activities_controller.rb - About 1 hr to fix

                Function onClick has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  onClick: function(id, opt){
                    if (this.root != id && !this.busy) {
                      this.busy = true;
                      this.root = id;
                      var that = this;
                Severity: Minor
                Found in app/assets/javascripts/jit-2.0.1.js - About 1 hr to fix

                  Function createLabelContainer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      createLabelContainer: function(type, idLabel, dim) {
                        var NS = 'http://www.w3.org/2000/svg';
                        if(type == 'HTML' || type == 'Native') {
                          return $E('div', {
                            'id': idLabel,
                  Severity: Minor
                  Found in app/assets/javascripts/jit-2.0.1.js - About 1 hr to fix

                    Function onMouseMove has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      onMouseMove: function(e, win, event) {
                       var label, evt = $.event.get(e, win);
                       if(this.pressed) {
                         this.moved = true;
                         this.config.onDragMove(this.pressed, event, evt);
                    Severity: Minor
                    Found in app/assets/javascripts/jit-2.0.1.js - About 1 hr to fix

                      Function setId has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              this.setId = function(el, newId, doNotSetAttribute) {
                              
                                  var id = el.constructor == String ? el : _currentInstance.getId(el),
                                      sConns = _currentInstance.getConnections({source:id, scope:'*'}, true),
                                      tConns = _currentInstance.getConnections({target:id, scope:'*'}, true);
                      Severity: Minor
                      Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 1 hr to fix

                        Function selectEndpoints has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                this.selectEndpoints = function(params) {
                                    params = params || {};
                                    params.scope = params.scope || "*";
                                    var noElementFilters = !params.element && !params.source && !params.target,            
                                        elements = noElementFilters ? "*" : prepareList(params.element),
                        Severity: Minor
                        Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 1 hr to fix

                          Function _updateOffset has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  _updateOffset = function(params) {
                                      var timestamp = params.timestamp, recalc = params.recalc, offset = params.offset, elId = params.elId;
                                      if (_suspendDrawing && !timestamp) timestamp = _suspendedAt;
                                      if (!recalc) {
                                          if (timestamp && timestamp === offsetTimestamps[elId])
                          Severity: Minor
                          Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 1 hr to fix

                            Function opposite has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                                opposite:function(axis) {  
                                                    var pi = paintInfo,
                                                        idx = axis == "x" ? 0 : 1, 
                                                        areInProximity = {
                                                            "x":function() {                                    
                            Severity: Minor
                            Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 1 hr to fix

                              Function _applyStyles has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _applyStyles = function(parent, node, style, dimensions, uiComponent) {
                                      
                                      if (style.gradient) {
                                          _updateGradient(parent, node, style, dimensions, uiComponent);            
                                      }
                              Severity: Minor
                              Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 1 hr to fix

                                Function select_or_unselect_all has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function select_or_unselect_all(clicked_elt){
                                    var mp_id = $(clicked_elt).data("mp_id");
                                    var rows_or_cols = $(clicked_elt).data("rows_or_cols");
                                    var at_least_one_selected = false;
                                    var number_of_elt = 0;
                                Severity: Minor
                                Found in app/assets/javascripts/projestimate_script.js - About 1 hr to fix

                                  Function register_widget has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      fn.register_widget = function($el) {
                                          var isDOM = $el instanceof jQuery;
                                          var wgd = isDOM ? this.dom_to_coords($el) : $el;
                                          var posChanged = false;
                                          isDOM || ($el = wgd.el);
                                  Severity: Minor
                                  Found in app/assets/javascripts/jquery.gridster.js - About 1 hr to fix

                                    Function drawScale has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function drawScale() {
                                                for (var i = 0; i < calculatedScale.steps; i++) {
                                                    //If the line object is there
                                                    if (config.scaleShowLine) {
                                                        ctx.beginPath();
                                    Severity: Minor
                                    Found in app/assets/javascripts/ChartNew.js - About 1 hr to fix

                                      Method send_feedback has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        def send_feedback
                                          # No authorize required since everyone can send a feedback if the feature have been enabled using the allow_feedback admin settings.
                                          latest_record_version = Version.last.nil? ? Version.create(:comment => 'No update data has been save') : Version.last
                                          @latest_repo_update = latest_record_version.repository_latest_update #Home::latest_repo_update
                                          @latest_local_update = latest_record_version.local_latest_update
                                      Severity: Minor
                                      Found in app/controllers/users_controller.rb - About 1 hr to fix

                                        Method display_results_without_activities has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          def display_results_without_activities(module_project)
                                            res = String.new
                                            pbs_project_element = @pbs_project_element || current_component
                                        
                                            pemodule = Pemodule.find(module_project.pemodule.id)
                                        Severity: Minor
                                        Found in app/helpers/projects_helper.rb - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language