Open sam-mccall opened 4 years ago
(Sorry, this is clearly not a "bug" - there's only one template under "new issue" and I can't remove the label)
I strongly disagree with disabling the clang-format check.
In particular I believe it is a zero cost for the patch author to run git clang-format
before upload. It can even be entirely automated locally.
If code intentionally doesn't follow the style, you should consider using // clang-format off
and // clang-format on
around the lines that shouldn't be reformatted.
I strongly disagree with disabling the clang-format check.
In particular I believe it is a zero cost for the patch author to run
git clang-format
before upload. It can even be entirely automated locally.
I do think there is some issue with clang-format and that is if you are using a newer version locally than what this check is using. What can happen is each version wants to reformat the code slightly differently resulting in false positives
Hi @sam-mccall , what do you think about the current state of checks? Clang tidy is turned off in most places AFAIR, clang-format behavior didn't changed much on the other hand.
FWIW, I think clang-format failures still cause confusion in practice. https://reviews.llvm.org/D136036#3863519 is an example of a user who thinks precommit CI has failed on their patch because it was complaining about unrelated formatting changes found in the file.
The messages from phab/merge_guards_bot used to be important and easy-to-scan: failures indicated a serious problem that needed to be fixed.
While clang-tidy and clang-format warnings have value, using the same channel to communicate them makes it spammy:
As it stands, I'd rather turn off clang-tidy/clang-format if that's possible, because these unimportant/false positive messages muddy the clear and important "tests failing" signal.