mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Update scalafmt to 3.0.8
This commit is contained in:
@ -46,7 +46,7 @@ object RegexNerFile {
|
||||
final private class Impl[F[_]: Async](
|
||||
cfg: Config,
|
||||
store: Store[F],
|
||||
writer: Semaphore[F] //TODO allow parallelism per collective
|
||||
writer: Semaphore[F] // TODO allow parallelism per collective
|
||||
) extends RegexNerFile[F] {
|
||||
|
||||
def makeFile(collective: Ident): F[Option[Path]] =
|
||||
|
@ -143,7 +143,7 @@ object CreateItem {
|
||||
.fromOption[F](NonEmptyList.fromList(fileMetaIds.toList))
|
||||
.flatMap(fids =>
|
||||
OptionT(
|
||||
//load attachments but only those mentioned in the task's arguments
|
||||
// load attachments but only those mentioned in the task's arguments
|
||||
cand.headOption.traverse(ri =>
|
||||
ctx.store
|
||||
.transact(RAttachment.findByItemCollectiveSource(ri.id, ri.cid, fids))
|
||||
@ -195,7 +195,7 @@ object CreateItem {
|
||||
ctx.logger.error(msg) *> Sync[F].raiseError(new Exception(msg))
|
||||
}
|
||||
|
||||
//TODO if no source is present, it must be saved!
|
||||
// TODO if no source is present, it must be saved!
|
||||
private def originFileTuple(
|
||||
t: (RAttachment, Option[RAttachmentSource])
|
||||
): (Ident, Ident) =
|
||||
|
@ -60,7 +60,7 @@ object EvalProposals {
|
||||
): Double =
|
||||
mp.proposalType match {
|
||||
case MetaProposalType.DueDate =>
|
||||
//for due dates, sort earliest on top
|
||||
// for due dates, sort earliest on top
|
||||
MetaProposal
|
||||
.parseDate(cand)
|
||||
.map { ld =>
|
||||
|
@ -108,9 +108,9 @@ object ReProcessItem {
|
||||
data.item.cid,
|
||||
args.itemId.some,
|
||||
lang,
|
||||
None, //direction
|
||||
data.item.source, //source-id
|
||||
None, //folder
|
||||
None, // direction
|
||||
data.item.source, // source-id
|
||||
None, // folder
|
||||
Seq.empty,
|
||||
false,
|
||||
None,
|
||||
|
@ -162,7 +162,7 @@ object ScanMailboxTask {
|
||||
|
||||
def requireFolder[C](a: Access[F, C])(name: String): MailOp[F, C, MailFolder] =
|
||||
if ("INBOX".equalsIgnoreCase(name)) a.getInbox
|
||||
else //TODO resolve sub-folders
|
||||
else // TODO resolve sub-folders
|
||||
a.findFolder(None, name)
|
||||
.map(_.toRight(new Exception(s"Folder '$name' not found")))
|
||||
.mapF(_.rethrow)
|
||||
|
@ -227,7 +227,7 @@ final class SchedulerImpl[F[_]: Async](
|
||||
job.id,
|
||||
config.name,
|
||||
store
|
||||
) //also increments retries if current state=stuck
|
||||
) // also increments retries if current state=stuck
|
||||
|
||||
def wrapTask(
|
||||
job: RJob,
|
||||
|
@ -26,7 +26,7 @@ class NerFileTest extends FunSuite {
|
||||
|
||||
for ((name, first) <- names) {
|
||||
val ps = Pattern(1)(name).distinct
|
||||
//check if it compiles to a regex pattern
|
||||
// check if it compiles to a regex pattern
|
||||
ps.flatMap(_.value.split("\\s+").toList).foreach(_.r)
|
||||
ps.foreach(_.value.r)
|
||||
|
||||
|
Reference in New Issue
Block a user