You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ignore-unparsable-files flag to silence diagnostics for invalid syntax.
Without this flag, a diagnostic is raised for any file that contains invalid syntax. With the flag, files containing invalid syntax are silently ignored and output verbatim when output is expected (e.g. in format mode with in-place disabled).
The Swift language evolves quickly, with new syntax becoming available and old syntax becoming invalid, and it's difficult to always have swift-format support cutting edge syntax. Before this change, the formatter correctly refused to format such files but the diagnostic to `stderr` would typically be seen as a fatal error by tooling that automates formatting. This flag provides a way to acknowledge the syntax may be invalid as a non-error condition.
0 commit comments