aboutsummaryrefslogtreecommitdiff
path: root/.scalafmt.conf
diff options
context:
space:
mode:
authorStewart Stewart <stewinsalot@gmail.com>2017-09-22 18:22:58 -0700
committerStewart Stewart <stewinsalot@gmail.com>2017-09-22 18:34:11 -0700
commitfbb85ad4ba79c74544d6c804bbbf0a7ef350b113 (patch)
treed196723bc77eec582bcb7cb203041c12cf1c70ac /.scalafmt.conf
parent94e2a082467c5fbf70490c33ebe25ca6d2318b8e (diff)
downloadslick-codegen-plugin-fbb85ad4ba79c74544d6c804bbbf0a7ef350b113.tar.gz
slick-codegen-plugin-fbb85ad4ba79c74544d6c804bbbf0a7ef350b113.tar.bz2
slick-codegen-plugin-fbb85ad4ba79c74544d6c804bbbf0a7ef350b113.zip
use Driver linting/formatting/style 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>