aboutsummaryrefslogtreecommitdiff
path: root/.scalafmt
diff options
context:
space:
mode:
authorvlad <vlad@drivergrp.com>2016-08-17 20:01:24 -0700
committervlad <vlad@drivergrp.com>2016-08-17 20:01:24 -0700
commit4579307bd5a5e7eee0f4c9b675ea25f5c091d9bb (patch)
tree4a1f2713cfc775099e5ef157ae74902728f50556 /.scalafmt
parentdcb8a3a73982e5229ce7034eddf88da00862cd15 (diff)
downloadsbt-settings-4579307bd5a5e7eee0f4c9b675ea25f5c091d9bb.tar.gz
sbt-settings-4579307bd5a5e7eee0f4c9b675ea25f5c091d9bb.tar.bz2
sbt-settings-4579307bd5a5e7eee0f4c9b675ea25f5c091d9bb.zip
Optional format and linting settings
Diffstat (limited to '.scalafmt')
-rw-r--r--.scalafmt22
1 files changed, 22 insertions, 0 deletions
diff --git a/.scalafmt b/.scalafmt
new file mode 100644
index 0000000..ba1bf4f
--- /dev/null
+++ b/.scalafmt
@@ -0,0 +1,22 @@
+# scalafmt sbt plugin config
+# refer to https://olafurpg.github.io/scalafmt/#Configuration for properties
+
+--style defaultWithAlign # For pretty alignment.
+--maxColumn 120 # For my wide 30" display.
+
+--reformatDocstrings true
+--scalaDocs
+
+--continuationIndentCallSite 4
+--continuationIndentDefnSite 4
+
+--rewriteTokens ⇒;=>,←;<-
+--danglingParentheses false
+--spaceAfterTripleEquals true
+--alignByArrowEnumeratorGenerator true
+--binPackParentConstructors true
+--allowNewlineBeforeColonInMassiveReturnTypes true
+--spacesInImportCurlyBraces false
+
+# --alignByOpenParenCallSite <value>
+# --alignByOpenParenDefnSite <value>