Skip to content

Don't propagate the diagnostic engine when formatting. #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2020

Conversation

dylansturg
Copy link
Contributor

This supresses printing diagnostic messages when using the format mode. When formatting, the issues in the source are either going to be fixed or they can't be fixed automatically. In either case, the formatter should be quiet about it.

Linting continues to use the DiagnosticEngine so that lint findings are displayed as before.

This supresses printing diagnostic messages when using the format mode. When formatting, the issues in the source are either going to be fixed or they can't be fixed automatically. In either case, the formatter should be quiet about it.

Linting continues to use the `DiagnosticEngine` so that lint findings are displayed as before.
@allevato allevato merged commit 3f50c4e into swiftlang:master Feb 27, 2020
@dylansturg dylansturg deleted the quieter_formatting branch February 28, 2020 21:07
natecook1000 added a commit to natecook1000/swift-format that referenced this pull request Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants