From 3f697f51aa8a96932040fd121f9b48d7f99fa9a3 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Tue, 6 Oct 2020 23:31:09 +0200 Subject: [PATCH] Autoformat --- .../src/main/scala/docspell/analysis/contact/Tld.scala | 3 +-- .../joex/src/main/scala/docspell/joex/process/CreateItem.scala | 3 +-- .../joex/src/main/scala/docspell/joex/scheduler/JobTask.scala | 3 +-- .../main/scala/docspell/joex/scheduler/JobTaskRegistry.scala | 3 +-- .../scala/docspell/joex/scheduler/PeriodicSchedulerImpl.scala | 3 +-- .../src/main/scala/docspell/joex/scheduler/SchedulerImpl.scala | 3 +-- modules/joex/src/main/scala/docspell/joex/scheduler/Task.scala | 3 +-- 7 files changed, 7 insertions(+), 14 deletions(-) diff --git a/modules/analysis/src/main/scala/docspell/analysis/contact/Tld.scala b/modules/analysis/src/main/scala/docspell/analysis/contact/Tld.scala index f8095041..df76fada 100644 --- a/modules/analysis/src/main/scala/docspell/analysis/contact/Tld.scala +++ b/modules/analysis/src/main/scala/docspell/analysis/contact/Tld.scala @@ -8,8 +8,7 @@ private[analysis] object Tld { def endsWithTld(str: String): Boolean = findTld(str).isDefined - /** - * Some selected TLDs. + /** Some selected TLDs. */ private[this] val known = List( ".com", diff --git a/modules/joex/src/main/scala/docspell/joex/process/CreateItem.scala b/modules/joex/src/main/scala/docspell/joex/process/CreateItem.scala index 9bc85a33..f7dc0ada 100644 --- a/modules/joex/src/main/scala/docspell/joex/process/CreateItem.scala +++ b/modules/joex/src/main/scala/docspell/joex/process/CreateItem.scala @@ -13,8 +13,7 @@ import docspell.store.records.{RAttachment, RAttachmentSource, RItem} import bitpeace.FileMeta -/** - * Task that creates the item. +/** Task that creates the item. */ object CreateItem { diff --git a/modules/joex/src/main/scala/docspell/joex/scheduler/JobTask.scala b/modules/joex/src/main/scala/docspell/joex/scheduler/JobTask.scala index 31e35150..9d415303 100644 --- a/modules/joex/src/main/scala/docspell/joex/scheduler/JobTask.scala +++ b/modules/joex/src/main/scala/docspell/joex/scheduler/JobTask.scala @@ -8,8 +8,7 @@ import docspell.common.syntax.all._ import io.circe.Decoder -/** - * Binds a Task to a name. This is required to lookup the code based +/** Binds a Task to a name. This is required to lookup the code based * on the taskName in the RJob data and to execute it given the * arguments that have to be read from a string. * diff --git a/modules/joex/src/main/scala/docspell/joex/scheduler/JobTaskRegistry.scala b/modules/joex/src/main/scala/docspell/joex/scheduler/JobTaskRegistry.scala index 7ef84425..8bfab413 100644 --- a/modules/joex/src/main/scala/docspell/joex/scheduler/JobTaskRegistry.scala +++ b/modules/joex/src/main/scala/docspell/joex/scheduler/JobTaskRegistry.scala @@ -2,8 +2,7 @@ package docspell.joex.scheduler import docspell.common.Ident -/** - * This is a mapping from some identifier to a task. This is used by +/** This is a mapping from some identifier to a task. This is used by * the scheduler to lookup an implementation using the taskName field * of the RJob database record. */ diff --git a/modules/joex/src/main/scala/docspell/joex/scheduler/PeriodicSchedulerImpl.scala b/modules/joex/src/main/scala/docspell/joex/scheduler/PeriodicSchedulerImpl.scala index a757d387..db85019e 100644 --- a/modules/joex/src/main/scala/docspell/joex/scheduler/PeriodicSchedulerImpl.scala +++ b/modules/joex/src/main/scala/docspell/joex/scheduler/PeriodicSchedulerImpl.scala @@ -49,8 +49,7 @@ final class PeriodicSchedulerImpl[F[_]: ConcurrentEffect: ContextShift]( // internal - /** - * On startup, get all periodic jobs from this scheduler and remove + /** On startup, get all periodic jobs from this scheduler and remove * the mark, so they get picked up again. */ def init: F[Unit] = diff --git a/modules/joex/src/main/scala/docspell/joex/scheduler/SchedulerImpl.scala b/modules/joex/src/main/scala/docspell/joex/scheduler/SchedulerImpl.scala index d3093529..17edf66b 100644 --- a/modules/joex/src/main/scala/docspell/joex/scheduler/SchedulerImpl.scala +++ b/modules/joex/src/main/scala/docspell/joex/scheduler/SchedulerImpl.scala @@ -31,8 +31,7 @@ final class SchedulerImpl[F[_]: ConcurrentEffect: ContextShift]( private[this] val logger = getLogger - /** - * On startup, get all jobs in state running from this scheduler + /** On startup, get all jobs in state running from this scheduler * and put them into waiting state, so they get picked up again. */ def init: F[Unit] = diff --git a/modules/joex/src/main/scala/docspell/joex/scheduler/Task.scala b/modules/joex/src/main/scala/docspell/joex/scheduler/Task.scala index 445168b1..c5be1237 100644 --- a/modules/joex/src/main/scala/docspell/joex/scheduler/Task.scala +++ b/modules/joex/src/main/scala/docspell/joex/scheduler/Task.scala @@ -7,8 +7,7 @@ import cats.implicits._ import docspell.common.Logger -/** - * The code that is executed by the scheduler +/** The code that is executed by the scheduler */ trait Task[F[_], A, B] {