aboutsummaryrefslogtreecommitdiff
path: root/.scalafmt.conf
diff options
context:
space:
mode:
authorStewart Stewart <stewinsalot@gmail.com>2017-09-24 05:09:28 -0400
committerGitHub <noreply@github.com>2017-09-24 05:09:28 -0400
commit297e555de70e32951ba08a7c04a3f698d9ec014e (patch)
tree14fa17538e8fbb12caeb00ad4b83f2c37fc00c1f /.scalafmt.conf
parent9ecf6871d1ac54d8da2fb8b8623d5238423b0214 (diff)
parent486bf35ed6a471ddecf43ff77425bb688215010a (diff)
downloadslick-codegen-plugin-297e555de70e32951ba08a7c04a3f698d9ec014e.tar.gz
slick-codegen-plugin-297e555de70e32951ba08a7c04a3f698d9ec014e.tar.bz2
slick-codegen-plugin-297e555de70e32951ba08a7c04a3f698d9ec014e.zip
Merge pull request #30 from drivergroup/update-sbt-1.0
Update sbt 1.0 and use sbt-settings
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>