Skip to content
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

Add swift-format lint issues in the problems view #1220

Open
adam-fowler opened this issue Nov 23, 2024 · 0 comments
Open

Add swift-format lint issues in the problems view #1220

adam-fowler opened this issue Nov 23, 2024 · 0 comments
Labels
enhancement New feature or request sourcekit-lsp SourceKit-LSP issue

Comments

@adam-fowler
Copy link
Contributor

adam-fowler commented Nov 23, 2024

Is your feature request related to a problem? Please describe.
As more projects move to using swift-format they will also be using swift-format lint. Currently there is no way to view swift-format lint issues in VSCode. Quite a number of the Apple open source projects eg swift-nio use swift-format lint already.

Describe the solution you'd like
On saving a file run swift-format lint and any issues found should be added to the problems view.

There might be issues if the user has swift-format formatting on file save enabled. You'd want to be sure you are reading the version of the file after the format has been run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sourcekit-lsp SourceKit-LSP issue
Development

No branches or pull requests

2 participants