Closed mrdziuban closed 3 months ago
version = "3.8.3" runner.dialect = scala3 rewrite.rules = [RedundantParens]
When I run scalafmt via CLI like this: scalafmt -c .scalafmt.conf test.scala
scalafmt -c .scalafmt.conf test.scala
Given code like this:
new (Const[String, *] ~> ([a] =>> IO[Const[Int, a]])) { def apply[A](a: Const[String, A]): IO[Const[Int, A]] = IO.pure(Const(a.getConst.length)) }
Scalafmt formats code like this:
new Const[String, *] ~> ([a] =>> IO[Const[Int, a]]) { def apply[A](a: Const[String, A]): IO[Const[Int, A]] = IO.pure(Const(a.getConst.length)) }
I would like the formatted output to remain unchanged -- the parentheses around the new (...) are necessary.
new (...)
Configuration (required)
Command-line parameters (required)
When I run scalafmt via CLI like this:
scalafmt -c .scalafmt.conf test.scala
Steps
Given code like this:
Problem
Scalafmt formats code like this:
Expectation
I would like the formatted output to remain unchanged -- the parentheses around the
new (...)
are necessary.