Strider-CD/strider

View on GitHub

Showing 367 of 1,006 total issues

Avoid too many return statements within this function.
Open

    return val;
Severity: Major
Found in apps/strider/lib/utils/index.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return val;
    Severity: Major
    Found in apps/strider/dist-lib/utils/index.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return 'passed';
      Severity: Major
      Found in apps/strider/lib/jobs.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

          if (!b.finished || !b.finished.getTime) return 1;
        Severity: Major
        Found in apps/strider/lib/jobs.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return ret;
          Severity: Major
          Found in apps/strider/lib/utils/index.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return error(400, 'provider.repo_id is required');
            Severity: Major
            Found in apps/strider/dist-lib/routes/api/repo.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                if (job.type !== TEST_ONLY && job.deploy_exitcode !== 0) return 'failed';
              Severity: Major
              Found in apps/strider/lib/jobs.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return val;
                Severity: Major
                Found in apps/strider/dist-lib/utils/index.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return validateAgainstSchema(val, schema);
                  Severity: Major
                  Found in apps/strider/dist-lib/utils/index.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return error(400, 'Project type specified is not available; one or more required plugins is not installed');
                    Severity: Major
                    Found in apps/strider/dist-lib/routes/api/repo.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        return null;
                      Severity: Major
                      Found in apps/strider/lib/utils/index.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return {};
                        Severity: Major
                        Found in apps/strider/dist-lib/utils/index.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                            if ('object' !== typeof schema) return;
                          Severity: Major
                          Found in apps/strider/lib/utils/index.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return;
                            Severity: Major
                            Found in apps/strider/dist-lib/utils/index.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return error(400, 'Invalid project type specified');
                              Severity: Major
                              Found in apps/strider/dist-lib/routes/api/repo.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return ret;
                                Severity: Major
                                Found in apps/strider/dist-lib/utils/index.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                    if (b.status === 'running') return 1;
                                  Severity: Major
                                  Found in apps/strider/lib/jobs.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        if (val.enum) return val.enum[0];
                                    Severity: Major
                                    Found in apps/strider/lib/utils/index.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return defaultVal(val.type);
                                      Severity: Major
                                      Found in apps/strider/lib/utils/index.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return data(test, params, req, function(err, data) {
                                              if (err) return res.send(`Failed to load data: ${err.message}`);
                                              send(data);
                                            });
                                        Severity: Major
                                        Found in apps/strider/lib/views-test.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language