mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
7c3542fc1d
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 .
9 lines
209 B
Bash
Executable File
9 lines
209 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) 2019 The DAML Authors. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -eu -o pipefail
|
|
|
|
cd "${0%/*}"
|
|
scalafmt --git true --diff --config .scalafmt.conf "$@"
|