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

Multiple flychecks with different commands for single workspace #17414

Open
mladedav opened this issue Jun 13, 2024 · 0 comments
Open

Multiple flychecks with different commands for single workspace #17414

mladedav opened this issue Jun 13, 2024 · 0 comments
Labels
A-flycheck issues with flycheck a.k.a. "check on save" C-feature Category: feature request

Comments

@mladedav
Copy link
Contributor

mladedav commented Jun 13, 2024

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.

@mladedav mladedav added the C-feature Category: feature request label Jun 13, 2024
@roife roife added the A-flycheck issues with flycheck a.k.a. "check on save" label Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-flycheck issues with flycheck a.k.a. "check on save" C-feature Category: feature request
Projects
None yet
Development

No branches or pull requests

2 participants