When running ./scripts/soundness.sh produces swift-format warnings, we ask adopters to manually copy/paste a call to swift format to fix the warnings up. This is tedious and unnecessary.
Modifications
Add a --fix option on the soundness.sh script to actually apply the fixes as well, avoiding the need to copy/paste long commands.
Motivation
When running
./scripts/soundness.sh
produces swift-format warnings, we ask adopters to manually copy/paste a call to swift format to fix the warnings up. This is tedious and unnecessary.Modifications
Add a
--fix
option on thesoundness.sh
script to actually apply the fixes as well, avoiding the need to copy/paste long commands.Result
Easier fixing up of formatting warnings.
Test Plan
Manually tested the workflow locally.