Skip to content

Commit 67011b5

Browse files
committed
chore: update scripting
1 parent 2c92ea9 commit 67011b5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

format.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@
1313
##
1414
##===----------------------------------------------------------------------===##
1515

16+
set -euo pipefail
17+
18+
cd "$(dirname "${BASH_SOURCE[0]}")"
19+
1620
git ls-files -z '*.swift' | xargs -0 swift format format --parallel --in-place

lint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@
1313
##
1414
##===----------------------------------------------------------------------===##
1515

16+
set -euo pipefail
17+
18+
cd "$(dirname "${BASH_SOURCE[0]}")"
19+
1620
git ls-files -z '*.swift' | xargs -0 swift format lint --strict --parallel

0 commit comments

Comments
 (0)