estimancy/projestimate

View on GitHub

Showing 836 of 1,675 total issues

Avoid deeply nested control flow statements.
Open

                                for (j = 1; j < cell.colSpan; j++) {
                                    c.sortList.push([i + j, o]);
                                }
Severity: Major
Found in app/assets/javascripts/pager.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                if (wo.filter_formatter && $.isFunction(wo.filter_formatter[i])) {
                                    t = wo.filter_formatter[i]( c.$filters.eq(i), i );
                                    // no element returned, so lets go find it
                                    if (t && t.length === 0) { t = c.$filters.eq(i).children('input'); }
                                    // element not in DOM, so lets attach it
    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 === 2) {
                                          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

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

                    ts.sortNumeric = function(table, a, b, col, mx, d) {
        Severity: Minor
        Found in app/assets/javascripts/pager.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                          if (month === 0) {
                                              month = 11;
                                              year -= 1;
                                          } else {
                                              month -= 1;
          Severity: Major
          Found in app/assets/javascripts/bootstrap-datepicker.js - About 45 mins to fix

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

              contextPrototype.arc = function(aX, aY, aRadius,
                                              aStartAngle, aEndAngle, aClockwise) {
            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 ( 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language