Skip to content

Commit 231bf56

Browse files
author
Anna Zubenko
committed
Scalafmt bump: scripts, commit hook, 🔥 old config
1 parent 94270d4 commit 231bf56

File tree

24 files changed

+163
-53
lines changed

24 files changed

+163
-53
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ goldrush.cfg
2222
goldrush.state
2323

2424
*.sublime*
25+
26+
# Installed via script
27+
utils/scalafmt/coursier
28+

documents/buildkite/pipelines/green-river.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
steps:
2-
- command: "sbt '; clean; scalafmtTest; assembly'\n\n"
2+
- command: "../utils/scalafmt/scalafmt.sh --test && sbt '; clean; assembly'\n\n"
33
label: build and package
44
agents:
55
- queue=core
@@ -37,4 +37,4 @@ steps:
3737
TOKEN: c5e4764e4d0116e34e17c2d4e0b1e7df45aaa468
3838
PROJECT: stage-provisioning
3939
MESSAGE: Green River Updated
40-
branches: master
40+
branches: master

documents/buildkite/pipelines/phoenix-scala.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ env:
22
ARTIFACT: gatling/target/scala-2.11/phoenix-scala-assembly-1.0.jar
33

44
steps:
5-
- command: sbt '; clean ; gatling/clean ; scalafmtTest ; gatling/scalafmtTest'
5+
- command: ../utils/scalafmt/scalafmt.sh --test && sbt clean
66
label: scalafmt
77
agents:
88
- queue=core
99

1010
- wait
1111

1212
- command: 'bash -c "make -C docs/api all && sbt all && tar -zcvf gatling-classes.tar.gz gatling-classes"
13-
13+
1414
'
1515
label: build, test, package
1616
agents:
@@ -22,13 +22,13 @@ steps:
2222

2323
- command: |
2424
rm -rf gatling && mkdir gatling && cd gatling
25-
25+
2626
buildkite-agent artifact download "$ARTIFACT" .
27-
27+
2828
cd ../
29-
29+
3030
buildkite-agent artifact download "gatling-classes.tar.gz" ./
31-
31+
3232
rm -rf gatling-classes && tar -zxvf gatling-classes.tar.gz
3333
label: dump to stage master
3434
agents:
@@ -54,4 +54,4 @@ steps:
5454
env:
5555
TOKEN: c5e4764e4d0116e34e17c2d4e0b1e7df45aaa468
5656
PROJECT: stage-provisioning
57-
branches: master
57+
branches: master

green-river/.scalafmt

Lines changed: 0 additions & 2 deletions
This file was deleted.

green-river/.scalafmt.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../utils/scalafmt/scalafmt.conf

green-river/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ clean:
1414

1515
test:
1616
$(call header, Testing)
17-
sbt scalafmtTest
18-
sbt test
17+
../utils/scalafmt/scalafmt.sh --test && sbt test
1918

2019
docker:
2120
$(call header, Dockerizing)

green-river/build.sbt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ lazy val greenRiver = (project in file(".")).
9191
val old = (assemblyMergeStrategy in assembly).value
9292
old(x)
9393
}
94-
},
95-
scalafmtConfig := Some(file(".scalafmt")),
96-
reformatOnCompileSettings // scalafmt
94+
}
9795
//test in assembly := {}
9896
)
9997

green-river/project/plugins.sbt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@ addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.13.0")
55
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.0-M4")
66

77
addSbtPlugin("org.brianmckenna" % "sbt-wartremover" % "0.14")
8-
9-
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "0.2.5")

phoenix-scala/.scalafmt

Lines changed: 0 additions & 4 deletions
This file was deleted.

phoenix-scala/.scalafmt.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../utils/scalafmt/scalafmt.conf

0 commit comments

Comments
 (0)