vscode-clang-tidy icon indicating copy to clipboard operation
vscode-clang-tidy copied to clipboard

Feature request: clang-tidy.lintOnOpen

Open Semitalis opened this issue 3 years ago • 3 comments

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

Semitalis avatar Mar 10 '21 13:03 Semitalis

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

notskm avatar Mar 10 '21 16:03 notskm

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

joao-aguirre avatar Aug 19 '21 13:08 joao-aguirre

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.

Seairth avatar Nov 23 '21 22:11 Seairth