estimancy/projestimate

View on GitHub

Showing 1,675 of 1,675 total issues

Avoid deeply nested control flow statements.
Open

                                    if ( wo.filter_regex.child.test(r) || (searchFiltered && wo.filter_regex.filtered.test(r)) ) { continue; }
Severity: Major
Found in app/assets/javascripts/pager.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                            if (all === ''){
                                                ft.addClass('hideme');
                                            }
    Severity: Major
    Found in app/assets/javascripts/pager.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                      if (!f[j].sortDisabled) {
                                          f.eq(j).addClass(css[list[i][1]]);
                                          // add sorted class to footer, if it exists
                                          if ($t.length) {
                                              $t.filter('[data-column="' + list[i][0] + '"]').eq(j).addClass(css[list[i][1]]);
      Severity: Major
      Found in app/assets/javascripts/pager.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                    if(base.authority !== null && base.path === '') {
                                        t.path = '/'+r.path;
                                    } else {
                                        t.path = base.path.replace(/[^\/]+$/,'')+r.path;
                                    }
        Severity: Major
        Found in app/assets/javascripts/jscolor.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                      if (t) {
                                          t.attr('placeholder', $th.data('placeholder') || $th.attr('data-placeholder') || '');
                                      }
          Severity: Major
          Found in app/assets/javascripts/pager.js - About 45 mins to fix

            Function createRadialGradient has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              contextPrototype.createRadialGradient = function(aX0, aY0, aR0,
                                                               aX1, aY1, aR1) {
            Severity: Minor
            Found in app/assets/javascripts/jit-2.0.1-excanvas.js - About 45 mins to fix

              Function transform has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                contextPrototype.transform = function(m11, m12, m21, m22, dx, dy) {
              Severity: Minor
              Found in app/assets/javascripts/jit-2.0.1-excanvas.js - About 45 mins to fix

                Function setTransform has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  contextPrototype.setTransform = function(m11, m12, m21, m22, dx, dy) {
                Severity: Minor
                Found in app/assets/javascripts/jit-2.0.1-excanvas.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                      if (t){
                                                          arry.push( $.trim(c.supportsTextContent ? t.textContent : $(t).text()) );
                                                      }
                  Severity: Major
                  Found in app/assets/javascripts/pager.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                    if (this.o.minViewMode === 1) {
                                                        this._setDate(UTCDate(year, month, day,0,0,0,0));
                                                    }
                    Severity: Major
                    Found in app/assets/javascripts/bootstrap-datepicker.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                          for (i = 0; i < cols; i++){
                                                              // ignore if filter is empty or disabled
                                                              if (v[i]){
                                                                  // check if column data should be from the cell or from parsed data
                                                                  if (wo.filter_useParsedData || parsed[i]){
                      Severity: Major
                      Found in app/assets/javascripts/pager.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                        if (bw.ie4 || bw.ie5) y = y + eval(scrolled);
                        Severity: Major
                        Found in app/assets/javascripts/ChartNew.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  if(config.inGraphDataXPosition==1) { xPos=yAxisPosX + yStart[j] + 1 +config.inGraphDataPaddingX; } 
                                                  else if(config.inGraphDataXPosition==2) { xPos=yAxisPosX + yStart[j] + (HorizontalCalculateOffset(data.datasets[i].data[j], calculatedScale, valueHop) + (config.barStrokeWidth / 2))/2+config.inGraphDataPaddingX ;}
                                                  else if(config.inGraphDataXPosition==3) { xPos=yAxisPosX + yStart[j] + HorizontalCalculateOffset(data.datasets[i].data[j], calculatedScale, valueHop) + (config.barStrokeWidth / 2) +config.inGraphDataPaddingX ;}
                          Severity: Major
                          Found in app/assets/javascripts/ChartNew.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if (drawLegendOnData) ctx.strokeStyle = data.datasets[orderi].strokeColor;
                                                    else ctx.strokeStyle = data[orderi].color;
                            Severity: Major
                            Found in app/assets/javascripts/ChartNew.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if(config.inGraphDataYPosition==1) { yPos=xAxisPosY - yStart[j] - config.inGraphDataPaddingY; }
                                                      else if(config.inGraphDataYPosition==2) { yPos=xAxisPosY -(calculateOffset(config, data.datasets[i].data[j], calculatedScale, scaleHop) + (config.barStrokeWidth / 2) )/2 - yStart[j] - config.inGraphDataPaddingY; }
                                                      else if(config.inGraphDataYPosition==3) { yPos=xAxisPosY -calculateOffset(config, data.datasets[i].data[j], calculatedScale, scaleHop) + (config.barStrokeWidth / 2)  - yStart[j] - config.inGraphDataPaddingY; }
                              Severity: Major
                              Found in app/assets/javascripts/ChartNew.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                        if (typeof (data.labels[j]) == "string") lgtxt2 = data.labels[j].trim();
                                                        else lgtxt2 = "";
                                Severity: Major
                                Found in app/assets/javascripts/ChartNew.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if(config.inGraphDataYPosition==1) { yPos=barOffset + barWidth - config.inGraphDataPaddingY; }
                                                          else if(config.inGraphDataYPosition==2) { yPos=barOffset + barWidth/2- config.inGraphDataPaddingY; }
                                                          else if(config.inGraphDataYPosition==3) { yPos=barOffset- config.inGraphDataPaddingY; }
                                  Severity: Major
                                  Found in app/assets/javascripts/ChartNew.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                  unless ext_ancestry.nil?
                                                    ext_ancestry_list = ext.ancestry.split('/')
                                                    ext_ancestry_list.each do |ancestor|
                                                      ext_ancestor_uuid = ExternalMasterDatabase::ExternalWbsActivityElement.find_by_id(ancestor).uuid
                                                      ancestors << WbsActivityElement.find_by_uuid(ext_ancestor_uuid).id
                                    Severity: Major
                                    Found in app/models/home.rb - About 45 mins to fix

                                      Function calculateScale has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          function calculateScale(config, maxSteps, minSteps, maxValue, minValue, labelTemplateString) {
                                      Severity: Minor
                                      Found in app/assets/javascripts/ChartNew.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                          if (mxlb<maxL)maxL=mxlb;
                                        Severity: Major
                                        Found in app/assets/javascripts/ChartNew.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language