Skip to content

[WIP] Update scalafmt config#484

Draft
xuwei-k wants to merge 1 commit intosbt:developfrom
xuwei-k:scalafmt-config
Draft

[WIP] Update scalafmt config#484
xuwei-k wants to merge 1 commit intosbt:developfrom
xuwei-k:scalafmt-config

Conversation

@xuwei-k
Copy link
Member

@xuwei-k xuwei-k commented Feb 25, 2026

No description provided.

@xuwei-k
Copy link
Member Author

xuwei-k commented Feb 25, 2026

def pair[T](mapper: File => Option[T], errorIfNone: Boolean = true): Seq[(File, T)] = {
val apply = if (errorIfNone) (a: File) => mapper(a) orElse fail(a) else mapper
for (file <- get(); mapped <- apply(file)) yield file -> mapped
}

[error] (io / Compile / scalafmt) org.scalafmt.sbt.ScalafmtSbtReporter$ScalafmtSbtError: scalafmt: [3.10.7] io/src/main/scala/sbt/io/Path.scala:550: error: [dialect scala3 [with overrides]] `}` expected but `=>` found
[error]     val apply = if (errorIfNone) (a: File) => mapper(a) orElse fail(a) else mapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant