dense-analysis / dense-analysis/ale
Option to hide clang-diagnostic-* messages from clang-tidy
- Dominant language
- Vim Script
- Stars
- 14k
- Forks
- 1.5k
- Avg merge
- 17h 49m
- Merged PRs (30d)
- 1
Description
I'm using coc.nvim with ccls for completion and diagnostics in C/C++ projects. I also want to use ALE with clang-tidy for additional checks (e.g. modernize-use-override). However, regular clang-diagnostic-* messages apparently cannot be disabled in clang-tidy, so, if the file contains errors, I get the same error twice, one by ccls and one by clang-tidy.
Just to mention it, `clang-tidy --checks=-clang-diagnostic-*,modernize-use-override` does not work, as regular errors come directly from the compiler and apparently can't be disabled this way.
Another slight annoyance is that ccls does not require saving for updating diagnostics, unlike clang-tidy. So, even if I *could* have instant error diagnostics, I don't because ALE still shows all those duplicate errors until next save.
It would be nice to have a way to filter out these diagnostics.
This could be done by a simple regex, as each message has a `[clang-diagnostic-]` tag at the end.
The `ale_exclude_highlights` option is similar to what I want, but sadly it applies only to the word highlight, and still shows signs, line highlight, and echo messages.
Contributor guide
Assessment
This issue has not been assessed yet.