notskm / vscode-clang-tidy

MIT License
48 stars 26 forks source link

Feature request: clang-tidy.lintOnOpen #55

Open Semitalis opened 3 years ago

Semitalis commented 3 years ago

Currently, the extension will always trigger a clang-tidy execution when opening a file.

I would like to have the option, to never run clang-tidy unless I explicitly tell it to, thus the following setting would be nice to have: "clang-tidy.lintOnOpen": false,

Note: I tried to use the following, but that resulted in an error when trying to manually run the lint via command:

"clang-tidy.blacklist": [
    "*"
],

image

notskm commented 3 years ago

It won't be for a while, but I want to rethink when and how clang-tidy triggers. I agree this is annoying.

joao-aguirre commented 3 years ago

It would definitely be good to have an option to disable all automatic triggers and only lint any file when asked for.

Seairth commented 3 years ago

PR #67 adds support for this. @notskm, I agree with you that the overall approach needs a re-think, but this would be a helpful stop-gap.