Update SwiftFormat version (#1639)
Motivation:
Some changes cause the formatter to throw an error while formatting.
This particular bug was fixed in 0.52.0.
Modifications:
- Update the formatter version to 0.52.0
- Update the rules applied to minimise the diff from updating
- Run the formatter
Results:
- Formatter is up-to-date.