mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-05-17 10:30:35 +00:00
10 lines
273 B
Bash
10 lines
273 B
Bash
swift package plugin --allow-writing-to-package-directory swiftformat --unexclude .
|
|
if [[ `git status --porcelain` ]]; then
|
|
# Expected changes
|
|
git restore Sources/PackageUsingPlugin/NotFormattedFile.swift
|
|
exit 0
|
|
else
|
|
# No changes - unexpected
|
|
exit 1
|
|
fi
|