estimancy/projestimate

View on GitHub

Showing 836 of 1,675 total issues

Avoid too many return statements within this function.
Open

                return this.dispatch(s, $C(0, -h),$C(0, 0),
                                     $C(0, 0), $C(-w, 0));
Severity: Major
Found in app/assets/javascripts/jit-2.0.1.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                    return b;
    Severity: Major
    Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  if (sourceEdge[3] >= 1 && targetEdge[3] <= 0) return [ midx + (sourceEdge[2] < 0.5 ? -1 * dx : dx), midy ];
      Severity: Major
      Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return { h: match[1], s: match[2], v: match[3] };
        Severity: Major
        Found in app/assets/javascripts/spectrum.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return {
                          r: parseIntFromHex(match[1]),
                          g: parseIntFromHex(match[2]),
                          b: parseIntFromHex(match[3]),
                          format: named ? "name" : "hex"
          Severity: Major
          Found in app/assets/javascripts/spectrum.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return false;
            Severity: Major
            Found in app/assets/javascripts/spectrum.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return {
                              r: parseIntFromHex(match[1] + '' + match[1]),
                              g: parseIntFromHex(match[2] + '' + match[2]),
                              b: parseIntFromHex(match[3] + '' + match[3]),
                              format: named ? "name" : "hex"
              Severity: Major
              Found in app/assets/javascripts/spectrum.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            else return a;
                Severity: Major
                Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              else return [ midx + (1 * dx) , midy + (-1 * dy) ];
                  Severity: Major
                  Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return { h: match[1], s: match[2], l: match[3], a: match[4] };
                    Severity: Major
                    Found in app/assets/javascripts/spectrum.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return {
                                      a: convertHexToDecimal(match[1]),
                                      r: parseIntFromHex(match[2]),
                                      g: parseIntFromHex(match[3]),
                                      b: parseIntFromHex(match[4]),
                      Severity: Major
                      Found in app/assets/javascripts/spectrum.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                        return edge; // we have to give them something.
                        Severity: Major
                        Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return _p;
                          Severity: Major
                          Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                            return b;        
                            Severity: Major
                            Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          else if (sourceEdge[2] >= 1 && targetEdge[2] <= 0) return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ];
                              Severity: Major
                              Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            else return [ midx + (-1 * dx) , midy + (-1 * dy) ];
                                Severity: Major
                                Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                      if ( xD < yD ) { return -1; }
                                  Severity: Major
                                  Found in app/assets/javascripts/pager.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                        if (isNaN(xF) !== isNaN(yF)) { return (isNaN(xF)) ? 1 : -1; }
                                    Severity: Major
                                    Found in app/assets/javascripts/pager.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  else if (sourceEdge[2] <= 0 && targetEdge[2] >= 1) return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ];
                                      Severity: Major
                                      Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    if (sourceEdge[3] <= 0 && targetEdge[3] >= 1) return [ midx + (sourceEdge[2] < 0.5 ? -1 * dx : dx), midy ];
                                        Severity: Major
                                        Found in app/assets/javascripts/jquery.jsPlumb-1.4.1-all.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language