diff --git a/.scalafmt.conf b/.scalafmt.conf index 886f604914c..1a0e6bac68c 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -20,3 +20,9 @@ newlines.source = keep project.git = true runner.dialect = scala213 + +project { + excludePaths = [ + "glob:**/example/scalalib/linting/1-scalafmt/src/Foo.scala" + ] +} \ No newline at end of file diff --git a/example/scalalib/linting/1-scalafmt/src/Foo.scala b/example/scalalib/linting/1-scalafmt/src/Foo.scala index d3e5215b447..b291a9fd4e8 100644 --- a/example/scalalib/linting/1-scalafmt/src/Foo.scala +++ b/example/scalalib/linting/1-scalafmt/src/Foo.scala @@ -1,4 +1,9 @@ package foo -object Foo { - def main(args: Array[String]): Unit = { println("hello world") } +object Foo{ +def main(args: +Array[String +] +):Unit= +{println("hello world") +} }