From 3399969f2bb33caeb140a705a2c775112355ce80 Mon Sep 17 00:00:00 2001 From: Scala Steward <43047562+scala-steward@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:10:37 +0100 Subject: [PATCH] Update scalafmt-core to 3.8.0 (#394) --- .git-blame-ignore-revs | 3 +++ .scalafmt.conf | 2 +- .../main/scala-3/zio/elasticsearch/IndexNameValidator.scala | 3 ++- .../main/scala-3/zio/elasticsearch/IndexPatternValidator.scala | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index d8c742e15..700df079e 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,5 @@ # Scala Steward: Reformat with scalafmt 3.7.15 b88124837b4632490181bbe02aa345a0292a9808 + +# Scala Steward: Reformat with scalafmt 3.8.0 +ae7ede210c5b46ae1bc58a21b74f5d3e12937d43 diff --git a/.scalafmt.conf b/.scalafmt.conf index 193451e07..710b48b2e 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.7.17" +version = "3.8.0" maxColumn = 120 align.preset = most align.multiline = false diff --git a/modules/library/src/main/scala-3/zio/elasticsearch/IndexNameValidator.scala b/modules/library/src/main/scala-3/zio/elasticsearch/IndexNameValidator.scala index 40b8983d1..8331c6b13 100644 --- a/modules/library/src/main/scala-3/zio/elasticsearch/IndexNameValidator.scala +++ b/modules/library/src/main/scala-3/zio/elasticsearch/IndexNameValidator.scala @@ -21,7 +21,8 @@ import org.apache.commons.lang3.StringUtils.{equalsAny, startsWithAny} import zio.Chunk import zio.prelude.{AssertionError, Validator} -object IndexNameValidator extends Validator[String](name => { +object IndexNameValidator + extends Validator[String](name => { def containsAny(string: String, params: Chunk[String]): Boolean = params.exists(StringUtils.contains(string, _)) diff --git a/modules/library/src/main/scala-3/zio/elasticsearch/IndexPatternValidator.scala b/modules/library/src/main/scala-3/zio/elasticsearch/IndexPatternValidator.scala index 718c109fe..1b04c9b21 100644 --- a/modules/library/src/main/scala-3/zio/elasticsearch/IndexPatternValidator.scala +++ b/modules/library/src/main/scala-3/zio/elasticsearch/IndexPatternValidator.scala @@ -21,7 +21,8 @@ import org.apache.commons.lang3.StringUtils.{equalsAny, startsWithAny} import zio.Chunk import zio.prelude.{AssertionError, Validator} -object IndexPatternValidator extends Validator[String](pattern => { +object IndexPatternValidator + extends Validator[String](pattern => { def containsAny(string: String, params: Chunk[String]): Boolean = params.exists(StringUtils.contains(string, _))