Skip to content

Commit

Permalink
switched from scalariform to scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelluethi committed Jan 4, 2020
1 parent 5b42339 commit 9582c7a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .scalafmt.conf
@@ -0,0 +1,13 @@
version=2.3.2
project.git = true

align.openParenCallSite = true
align.openParenDefnSite = true
maxColumn = 120
continuationIndent.defnSite = 2
assumeStandardLibraryStripMargin = true
danglingParentheses = true
rewrite.rules = [SortImports, SortModifiers]
docstrings = JavaDoc

onTestFailure = "To fix this, run ./scalafmt from the project root directory"
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -20,7 +20,8 @@ jdk:
scala:
- 2.12.1

script:
script:-

This comment has been minimized.

Copy link
@kahrpatrick

kahrpatrick Jan 15, 2020

Member

@marcelluethi I think this dash prevents travis from working properly.

- travis_wait sbt ++$TRAVIS_SCALA_VERSION update
- sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck
- travis_wait sbt ++$TRAVIS_SCALA_VERSION -Djava.awt.headless=true compile test
- sbt scalariformFormat && git diff --exit-code # fails build if scalariform results in changes to the code

2 changes: 1 addition & 1 deletion project/plugins.sbt
Expand Up @@ -15,4 +15,4 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0")

addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4")

addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.3")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.2.1")

0 comments on commit 9582c7a

Please sign in to comment.