cozy-labs/cozy-desktop

View on GitHub

Showing 415 of 610 total issues

Avoid too many return statements within this function.
Open

    if (areParentChild(createdPath(move), deletedPath(b))) return moveFirst
Severity: Major
Found in core/remote/change.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        if (areEqual(deletedId(b), createdId(move))) return -moveFirst
    Severity: Major
    Found in core/remote/change.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return addFirst
      Severity: Major
      Found in core/remote/change.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return 0
        Severity: Major
        Found in core/remote/change.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return squashMoves(doc, was, previousChanges, originalMoves)
          Severity: Major
          Found in core/remote/watcher/index.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                      return new RemoteError({
                        code: FILE_TOO_LARGE_CODE,
                        message: 'The file is larger than allowed by the remote Cozy',
                        err
                      })
            Severity: Major
            Found in core/remote/errors.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                        return new RemoteError({
                          code: UNREACHABLE_COZY_CODE,
                          message: 'Cannot reach remote Cozy',
                          err
                        })
              Severity: Major
              Found in core/remote/errors.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  if (localChange.isChildDelete(a, b)) return bFirst
                Severity: Major
                Found in core/local/chokidar/analysis.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                    if (localChange.isChildAdd(a, b)) return aFirst
                  Severity: Major
                  Found in core/local/chokidar/analysis.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return aFirst
                    Severity: Major
                    Found in core/local/chokidar/analysis.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return bFirst
                      Severity: Major
                      Found in core/local/chokidar/analysis.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              else return bunyanErrObjectToError(err)
                        Severity: Major
                        Found in core/utils/sentry.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return { type: 'DEL', side: outdatedSide.name }
                          Severity: Major
                          Found in core/sync/index.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return {
                                    action: 'renamed',
                                    kind,
                                    oldPath: relativeOldPath,
                                    path: relativePath,
                            Severity: Major
                            Found in core/local/channel_watcher/parcel_producer.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return { action: 'created', kind, path: relativePath, ino }
                              Severity: Major
                              Found in core/local/channel_watcher/parcel_producer.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return { type: 'ADD', side: outdatedSide.name }
                                Severity: Major
                                Found in core/sync/index.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                            return { type: 'EDIT', side: outdatedSide.name }
                                  Severity: Major
                                  Found in core/sync/index.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return { type: 'MOVE', side: outdatedSide.name } // XXX: can be move with update but we don't care for now
                                    Severity: Major
                                    Found in core/sync/index.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                return { type: 'NULL' }
                                      Severity: Major
                                      Found in core/sync/index.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              if (docA.path.startsWith(docB.path + sep)) return 1
                                        Severity: Major
                                        Found in core/sync/index.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language