diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c3495e86f..9d88d7d44 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -71,7 +71,7 @@ Wrapping up your PR while working on this. Add the exclusions to `build.sbt`. Binary incompatibilities are expected when modifying `scalapb.proto` and in the meantime we have some tolerance for certain type of incompatabilities. -* In SBT, run `scalafmt` and `test:scalafmt` to ensure the code compiles +* In SBT, run `scalafmtAll` to ensure the code compiles cleanly. * Run `./make_plugin_proto.sh` to re-generate all the generated code that ships with ScalaPB. diff --git a/build.sbt b/build.sbt index 9deb82454..204f17aa1 100644 --- a/build.sbt +++ b/build.sbt @@ -17,7 +17,7 @@ inThisBuild( ) ) -addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt") +addCommandAlias("fmt", "all scalafmtSbt scalafmtAll") lazy val sharedNativeSettings = List( nativeLinkStubs := true // for utest diff --git a/examples_and_formatting.sh b/examples_and_formatting.sh index cc99346f5..ecc2784ec 100755 --- a/examples_and_formatting.sh +++ b/examples_and_formatting.sh @@ -2,4 +2,4 @@ set -e ./test_generated_code_checked_in.sh for d in examples/*; do cd "$d" && sbt test && cd ../..; done -sbt -J-Xmx4500M scalafmtCheck test:scalafmtCheck scalafmtSbtCheck +sbt -J-Xmx4500M scalafmtCheckAll scalafmtSbtCheck