From 46c7df50f79f419e88e44a7b6fe7403a6978967c Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Mon, 29 Jun 2020 08:02:38 -0700 Subject: [PATCH] Set `lineEndings = preserve` in .scalafmt.conf On windows, scalafmt was rewriting '\n' with '\r\n'. --- .scalafmt.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/.scalafmt.conf b/.scalafmt.conf index 84b1633e8..213dea496 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -3,6 +3,7 @@ edition = 2019-10 maxColumn = 100 project.git = true project.excludeFilters = [ "\\Wsbt-test\\W", "\\Winput_sources\\W", "\\Wcontraband-scala\\W" ] +lineEndings = preserve # https://docs.scala-lang.org/style/scaladoc.html recommends the JavaDoc style. # scala/scala is written that way too https://github.com/scala/scala/blob/v2.12.2/src/library/scala/Predef.scala