sublimelsp / LSP-ruff

LSP helper for ruff - an extremely fast Python linter, written in Rust.

Home Page:https://packagecontrol.io/packages/LSP-ruff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Means to view project-wide diagnostics?

jgbishop opened this issue · comments

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.

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)

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).

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.

Thanks for the clarification!