Use scalafmt's diff mode (#3654)

Limits the set of files scalafmt will run on to those in the
git diff with master. This should greatly speed up language
agnostic checks, especially for developers to test them before
the contribution hits CI.

Worth mentioning: we use scalafmt 1.5.x, scalafmt latest release
is 2.2.x and the option is deprecated in favor of .
This commit is contained in:
Stefano Baghino 2019-11-28 10:33:13 +01:00 committed by mergify[bot]
parent c199c20730
commit 7c3542fc1d

View File

@ -5,4 +5,4 @@
set -eu -o pipefail
cd "${0%/*}"
scalafmt --git true --config .scalafmt.conf "$@"
scalafmt --git true --diff --config .scalafmt.conf "$@"