-
Notifications
You must be signed in to change notification settings - Fork 16
Commit 7c6a9e7
Add a soundness --fix flag (#22)
Add a soundness --fix flag
### 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 the `soundness.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.
Reviewed by: glbrntt
Builds:
✔︎ pull request validation (5.10) - Build finished.
✔︎ pull request validation (5.8) - Build finished.
✔︎ pull request validation (5.9) - Build finished.
✔︎ pull request validation (nightly) - Build finished.
✔︎ pull request validation (soundness) - Build finished.
#22 1 parent 2e72905 commit 7c6a9e7
2 files changed
+24
-4
lines changedscripts/run-swift-format.sh
100644
100755
Lines changed: 10 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
24 | 31 |
| |
25 | 32 |
| |
26 | - | ||
27 | - | ||
33 | + | ||
34 | + | ||
28 | 35 |
| |
29 | 36 |
| |
30 | 37 |
| |
| |||
33 | 40 |
| |
34 | 41 |
| |
35 | 42 |
| |
36 | - | ||
43 | + | ||
37 | 44 |
| |
38 | 45 |
| |
39 | 46 |
| |
|
Lines changed: 14 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
25 | 32 |
| |
26 | 33 |
| |
27 | 34 |
| |
28 | 35 |
| |
29 | - | ||
30 | 36 |
| |
31 | 37 |
| |
32 | 38 |
| |
| |||
37 | 43 |
| |
38 | 44 |
| |
39 | 45 |
| |
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
40 | 53 |
| |
41 | 54 |
| |
42 | 55 |
| |
|
0 commit comments