aboutsummaryrefslogtreecommitdiff
path: root/.scalafmt.conf
diff options
context:
space:
mode:
Diffstat (limited to '.scalafmt.conf')
-rw-r--r--.scalafmt.conf29
1 files changed, 29 insertions, 0 deletions
diff --git a/.scalafmt.conf b/.scalafmt.conf
new file mode 100644
index 0000000..8a5d14f
--- /dev/null
+++ b/.scalafmt.conf
@@ -0,0 +1,29 @@
+# scalafmt sbt plugin config
+# refer to https://olafurpg.github.io/scalafmt/#Configuration for properties
+
+project.git = true
+
+style = defaultWithAlign
+maxColumn = 120
+
+docstrings = ScalaDoc
+
+continuationIndent.callSite = 2
+continuationIndent.defnSite = 8
+
+rewriteTokens: {
+ "⇒" = "=>"
+ "←" = "<-"
+}
+danglingParentheses = false
+align.arrowEnumeratorGenerator = true
+align.openParenCallSite = true
+spaces.afterTripleEquals = true
+spaces.inImportCurlyBraces = false
+newlines.alwaysBeforeCurlyBraceLambdaParams = false
+newlines.sometimesBeforeColonInMethodReturnType = false
+binPack.parentConstructors = true
+assumeStandardLibraryStripMargin = true
+
+# align.openParenCallSite = <value>
+# align.openParenDefnSite = <value>