Scala project build by Bazel
Code should be formatted with
./tools/scalafmt
Formatting is tested in CI
Comment: Scalafmt is "goto" tool for formatting Scala code. Yet, included scalafmt in rules_scala is unnecessarily complicated. E.g. execution requires for all targets use <TARGET>.format
which is hard to execute for all targets.
That's why I decided to use standalone version of scalafmt.
Build image
bazel run //src/main/scala/cmd:local_image
Run image
docker run --rm runner:latest