Showing 415 of 610 total issues
Avoid too many return
statements within this function. Open
Open
if (areParentChild(createdPath(move), deletedPath(b))) return moveFirst
Avoid too many return
statements within this function. Open
Open
if (areEqual(deletedId(b), createdId(move))) return -moveFirst
Avoid too many return
statements within this function. Open
Open
return addFirst
Avoid too many return
statements within this function. Open
Open
return 0
Avoid too many return
statements within this function. Open
Open
return squashMoves(doc, was, previousChanges, originalMoves)
Avoid too many return
statements within this function. Open
Open
return new RemoteError({
code: FILE_TOO_LARGE_CODE,
message: 'The file is larger than allowed by the remote Cozy',
err
})
Avoid too many return
statements within this function. Open
Open
return new RemoteError({
code: UNREACHABLE_COZY_CODE,
message: 'Cannot reach remote Cozy',
err
})
Avoid too many return
statements within this function. Open
Open
if (localChange.isChildDelete(a, b)) return bFirst
Avoid too many return
statements within this function. Open
Open
if (localChange.isChildAdd(a, b)) return aFirst
Avoid too many return
statements within this function. Open
Open
return aFirst
Avoid too many return
statements within this function. Open
Open
return bFirst
Avoid too many return
statements within this function. Open
Open
else return bunyanErrObjectToError(err)
Avoid too many return
statements within this function. Open
Open
return { type: 'DEL', side: outdatedSide.name }
Avoid too many return
statements within this function. Open
Open
return {
action: 'renamed',
kind,
oldPath: relativeOldPath,
path: relativePath,
Avoid too many return
statements within this function. Open
Open
return { action: 'created', kind, path: relativePath, ino }
Avoid too many return
statements within this function. Open
Open
return { type: 'ADD', side: outdatedSide.name }
Avoid too many return
statements within this function. Open
Open
return { type: 'EDIT', side: outdatedSide.name }
Avoid too many return
statements within this function. Open
Open
return { type: 'MOVE', side: outdatedSide.name } // XXX: can be move with update but we don't care for now
Avoid too many return
statements within this function. Open
Open
return { type: 'NULL' }
Avoid too many return
statements within this function. Open
Open
if (docA.path.startsWith(docB.path + sep)) return 1