File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ # #===----------------------------------------------------------------------===##
3+ # #
4+ # # This source file is part of the Swift Argument Parser open source project
5+ # #
6+ # # Copyright (c) 2025 Apple Inc. and the Swift project authors
7+ # # Licensed under Apache License v2.0 with Runtime Library Exception
8+ # #
9+ # # See https://swift.org/LICENSE.txt for license information
10+ # #
11+ # #===----------------------------------------------------------------------===##
12+
13+ # Move to the project root
14+ cd " $( dirname " $0 " ) " || exit
15+ cd ..
16+ echo " Formatting Swift sources in $( pwd) "
17+
18+ # Run the format / lint commands
19+ git ls-files -z ' *.swift' | xargs -0 swift format format --parallel --in-place
20+ git ls-files -z ' *.swift' | xargs -0 swift format lint --strict --parallel
You can’t perform that action at this time.
0 commit comments