Showing 70 of 199 total issues

Avoid too many return statements within this function.
Open

      return AnswerStatus.OK;
Severity: Major
Found in api/lib/domain/services/solution-service-qroc.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return AnswerStatus.KO;
    Severity: Major
    Found in api/lib/domain/services/solution-service-qroc.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return AnswerStatus.KO;
      Severity: Major
      Found in api/lib/domain/services/solution-service-qroc.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return UNIMPLEMENTED;
        Severity: Major
        Found in api/lib/interfaces/serializer/json-api/AnswerStatusJsonApiAdapter.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return AnswerStatus.KO;
          Severity: Major
          Found in api/lib/domain/services/solution-service-qroc.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return pretreatedSolution;
            Severity: Major
            Found in api/lib/domain/services/solution-service-qrocm-dep.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return pretreatedSolution;
              Severity: Major
              Found in api/lib/domain/services/solution-service-qroc.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return _.includes(bestAnswerSoFar.adminAnswers, bestAnswerSoFar.userAnswer) ? bestAnswerSoFar : null;
                Severity: Major
                Found in api/lib/domain/services/solution-service-qrocm-dep.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return _.includes(bestAnswerSoFar.adminAnswers, bestAnswerSoFar.t2) ? bestAnswerSoFar : null;
                  Severity: Major
                  Found in api/lib/domain/services/solution-service-qrocm-dep.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return TIMEDOUT;
                    Severity: Major
                    Found in api/lib/interfaces/serializer/json-api/AnswerStatusJsonApiAdapter.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return t1(pretreatedSolution);
                      Severity: Major
                      Found in api/lib/domain/services/solution-service-qroc.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return AnswerStatus.OK;
                        Severity: Major
                        Found in api/lib/domain/services/solution-service-qroc.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return AnswerStatus.OK;
                          Severity: Major
                          Found in api/lib/domain/services/solution-service-qroc.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return t2(pretreatedSolution);
                            Severity: Major
                            Found in api/lib/domain/services/solution-service-qroc.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return bestAnswerSoFar.t3Ratio <= 0.25 ? bestAnswerSoFar : null;
                              Severity: Major
                              Found in api/lib/domain/services/solution-service-qrocm-dep.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return TIMEDOUT;
                                Severity: Major
                                Found in api/lib/interfaces/storage/database/AnswerStatusDatabaseAdapter.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return UNIMPLEMENTED;
                                  Severity: Major
                                  Found in api/lib/interfaces/storage/database/AnswerStatusDatabaseAdapter.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return AnswerStatus.KO;
                                    Severity: Major
                                    Found in api/lib/domain/services/solution-service-qroc.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return pretreatedSolution;
                                      Severity: Major
                                      Found in api/lib/domain/services/solution-service-qroc.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                return pretreatedSolution;
                                        Severity: Major
                                        Found in api/lib/domain/services/solution-service-qrocm-dep.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language