wkdhkr/dedupper

View on GitHub

Showing 303 of 303 total issues

Avoid too many return statements within this function.
Open

    return null;
Severity: Major
Found in src/services/judgment/TypeLogic.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return this.rl.logResult(fileInfo, [TYPE_HOLD, null, TYPE_DEEP_LEARNING]);
    Severity: Major
    Found in src/services/judgment/JudgmentService.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return fileInfo;
      Severity: Major
      Found in src/services/fs/FileCacheService.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return this.rl.logResult(fileInfo, [TYPE_SAVE, null, TYPE_NO_PROBLEM]);
        Severity: Major
        Found in src/services/judgment/JudgmentService.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return [TYPE_SWEEP_DEDUPPER_FILE, TYPE_DELETE];
          Severity: Major
          Found in src/services/judgment/TypeLogic.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return this.phl.handlePHashHit(fileInfo, storedFileInfoByPHashs);
            Severity: Major
            Found in src/services/judgment/JudgmentService.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return this.rl.logResult(fileInfo, [
                        TYPE_REPLACE,
                        (await this.detectReplaceFile(fileInfo, storedFileInfoByPHashs)) ||
                          storedFileInfoByPHashs[0],
                        TYPE_FILE_MARK_REPLACE
              Severity: Major
              Found in src/services/judgment/PathLogic.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return new Set([MARK_ERASE]);
                Severity: Major
                Found in src/helpers/FileNameMarkHelper.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return false;
                  Severity: Major
                  Found in src/services/ProcessService.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return this.rl.logResult(fileInfo, [
                            TYPE_DELETE,
                            null,
                            TYPE_FILE_MARK_ERASE
                          ]);
                    Severity: Major
                    Found in src/services/judgment/PathLogic.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return this.rl.logResult(fileInfo, [
                              TYPE_SAVE,
                              null,
                              TYPE_FILE_MARK_SAVE
                            ]);
                      Severity: Major
                      Found in src/services/judgment/PathLogic.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return this.rl.logResult(fileInfo, [
                                TYPE_SAVE,
                                null,
                                TYPE_FILE_MARK_SAVE
                              ]);
                        Severity: Major
                        Found in src/services/judgment/PathLogic.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return new Set([]);
                          Severity: Major
                          Found in src/helpers/FileNameMarkHelper.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return this.rl.logResult(fileInfo, [
                                      TYPE_REPLACE,
                                      storedFileInfoByNames[0],
                                      TYPE_FILE_MARK_REPLACE
                                    ]);
                            Severity: Major
                            Found in src/services/judgment/PathLogic.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return judgeResult;
                              Severity: Major
                              Found in src/services/judgment/JudgmentService.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return [this.al.fixAction(isMayBe, action), hitRow, reason];
                                Severity: Major
                                Found in src/services/judgment/PHashLogic.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return this.fixPHashHitResult(
                                          [TYPE_REPLACE, factor.info, TYPE_P_HASH_MATCH],
                                          factor.isMayBe,
                                          factor.isWillKeep,
                                          factor.isKeeping
                                  Severity: Major
                                  Found in src/services/judgment/PHashLogic.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return this.rl.logResult(fileInfo, [
                                            TYPE_SAVE,
                                            null,
                                            TYPE_FILE_MARK_SAVE
                                          ]);
                                    Severity: Major
                                    Found in src/services/judgment/PathLogic.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return null;
                                      Severity: Major
                                      Found in src/services/judgment/ContentsLogic.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return false;
                                        Severity: Major
                                        Found in src/services/db/DbService.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language