opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Avoid too many return statements within this function.
Open

    return Math.ceil(time / unit.seconds) * unit.seconds;
Severity: Major
Found in cabot/static/arachnys/js/rickshaw.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return Date.UTC(parseInt(q[1], 10), parseInt(q[2], 10) - 1, parseInt(q[3], 10), parseInt(q[4], 10), parseInt(q[5], 10) + offsetmins);
    Severity: Major
    Found in cabot/static/arachnys/js/morris.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          else                        { return y }
      Severity: Major
      Found in cabot/static/arachnys/js/rickshaw.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                  return parseInt(boundaryOption, 10);
        Severity: Major
        Found in cabot/static/arachnys/js/morris.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

            else                      { return y }
          Severity: Major
          Found in cabot/static/arachnys/js/rickshaw.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return new Date(parseInt(q[1], 10), parseInt(q[2], 10) - 1, parseInt(q[3], 10), parseInt(q[4], 10), parseInt(q[5], 10)).getTime();
            Severity: Major
            Found in cabot/static/arachnys/js/morris.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  else if (abs_y < 1 && y > 0)    { return y.toFixed(2) }
              Severity: Major
              Found in cabot/static/arachnys/js/rickshaw.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return new Date(parseInt(date, 10), 0, 1).getTime();
                Severity: Major
                Found in cabot/static/arachnys/js/morris.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                    else if (abs_y === 0)         { return '' }
                  Severity: Major
                  Found in cabot/static/arachnys/js/rickshaw.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return ret.getTime() + parseInt(p[2], 10) * 604800000;
                    Severity: Major
                    Found in cabot/static/arachnys/js/morris.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return Math.ceil(time / unit.seconds) * unit.seconds;
                      Severity: Major
                      Found in cabot/static/arachnys/js/rickshaw.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            else if (abs_y === 0)           { return '' }
                        Severity: Major
                        Found in cabot/static/arachnys/js/rickshaw.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return Date.UTC(parseInt(r[1], 10), parseInt(r[2], 10) - 1, parseInt(r[3], 10), parseInt(r[4], 10), parseInt(r[5], 10) + offsetmins, isecs, msecs);
                          Severity: Major
                          Found in cabot/static/arachnys/js/morris.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return boundaryOption;
                            Severity: Major
                            Found in cabot/static/arachnys/js/morris.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return new Date(parseInt(r[1], 10), parseInt(r[2], 10) - 1, parseInt(r[3], 10), parseInt(r[4], 10), parseInt(r[5], 10), isecs, msecs).getTime();
                              Severity: Major
                              Found in cabot/static/arachnys/js/morris.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                  else if (abs_y < 1 && y > 0)  { return y.toFixed(2) }
                                Severity: Major
                                Found in cabot/static/arachnys/js/rickshaw.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return new Date(year, 0).getTime() / 1000;
                                  Severity: Major
                                  Found in cabot/static/arachnys/js/rickshaw.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        else if (abs_y >= 1024)         { return y / 1024 + "K" }
                                    Severity: Major
                                    Found in cabot/static/arachnys/js/rickshaw.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return jQuery.makeArray( selector, this );
                                      Severity: Major
                                      Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return this.constructor( context ).find( selector );
                                        Severity: Major
                                        Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language