0.50600.0
This release is compatible with Swift 5.6.
Significant changes since the last release:
- Diagnostics have been refactored as "findings". Users of swift-format as an API (via the
SwiftFormatter
andSwiftLinter
classes) now receive warnings and errors via a newFinding
type that is independent ofSwiftSyntax
diagnostic types, for greater flexibility. (7aa5df5) - Diagnostics are now printed in color if standard error is connected to a terminal. This can be controlled with the
--color-diagnostics/--no-color-diagnostics
command line flags (to force color output when redirected to something other than a terminal, or to disable color output to a terminal). (4f90887) - Formatting of
throws
andasync
property effects has been fixed. (f646a1f, 55fc4e2) - The legacy
-m/--mode
flag has been removed. (defb00d)