aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/scalafmt.conf
diff options
context:
space:
mode:
authorvlad <vlad@driver.xyz>2017-04-27 09:57:23 -0700
committervlad <vlad@driver.xyz>2017-04-27 09:57:23 -0700
commit8ebab28a596e74683b0db7e02556da6a58ba2cdb (patch)
tree333c27348d9e5012aa11de2fed984b58bc2bee1b /src/main/resources/scalafmt.conf
parent53399faba529cc28d2db07dd8486c58e5585b8eb (diff)
downloadsbt-settings-8ebab28a596e74683b0db7e02556da6a58ba2cdb.tar.gz
sbt-settings-8ebab28a596e74683b0db7e02556da6a58ba2cdb.tar.bz2
sbt-settings-8ebab28a596e74683b0db7e02556da6a58ba2cdb.zip
Renaming source .scalafmt.conf to scalafmt.conf
Diffstat (limited to 'src/main/resources/scalafmt.conf')
-rw-r--r--src/main/resources/scalafmt.conf29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/main/resources/scalafmt.conf b/src/main/resources/scalafmt.conf
new file mode 100644
index 0000000..8a5d14f
--- /dev/null
+++ b/src/main/resources/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>