sublimelsp / LSP-ruff

LSP helper for ruff - an extremely fast Python linter, written in Rust.
https://packagecontrol.io/packages/LSP-ruff
MIT License
38 stars 4 forks source link

Means to view project-wide diagnostics? #31

Closed jgbishop closed 1 year ago

jgbishop commented 1 year ago

In Sublime Text, I'd love to have a way to see ruff's findings for all of the files within my project. At the moment, I don't see such a feature (though maybe I'm missing it). Is such a thing supported? All I see is file-by-file results (as I'm viewing the file).

The SublimeLinter package (using flake8) allows doing this, and it's a feature I miss having.

rchl commented 1 year ago

You should report and discuss it in https://github.com/astral-sh/ruff-lsp.

(Though personally I would say this is more of a CI/commit hook job)

jgbishop commented 1 year ago

Is that really the correct place to report it? Ruff already has the check command:

ruff check .

What I'm looking for is simply a way to view the output of that command from within Sublime Text (using the project root folder as the target to the check command).

rchl commented 1 year ago

This project is just a wrapper around https://github.com/astral-sh/ruff-lsp. It's the ruff-lsp that would have to run that command and expose all diagnostics. Nothing can be done here.

jgbishop commented 1 year ago

Thanks for the clarification!