rust-lang / rust-lang/rust-analyzer
Multiple flychecks with different commands for single workspace
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
I'd like to have rust analyzer run one flycheck with clippy and another with cargo doc so that I can also fix documentation issues.
The only workaround I have found until now is to change the command and restart RA or possibly have an utility that runs both so that RA sees it as a single cargo command.
This would probably mean that the rust-analyzer.check.* settings would have to be merged into one object and there would have to be an array of these.
For example cargo doc does not support --all-targets but I'd like to keep that setting for clippy.
An alternative would be to add a second flycheck specifically for running cargo docs with its own rust-analyzer.docs-check.* configurations. It might be enough (probably would be for me), but maybe there would be other use cases for running multiple different flychecks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No implementation files or tests are named. Start by tracing the rust-analyzer.check.* settings and the flycheck entry point to understand how one workspace command is configured. Done means supporting separate clippy and cargo doc checks with independent command options, or documenting a decided alternative.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100