Why are some header excluded from clang-tidy checks? #89
Replies: 3 comments 6 replies
-
Because those are external libraries from the taoJSON POV. Each project is different and clang-tidy (i.e. the rules which you want to use) need to be adapted to your specific library's needs. External libraries need to run tests on their own. |
Beta Was this translation helpful? Give feedback.
-
I just had a look at the log you uploaded. There are hundreds of pointless warnings about the external code about
This is a good example of why we can't apply one set of rules to all code including the external code. It makes no sense to make so many changes to an external library, the signal-to-noise ration that we would have to deal with in case of an update would be terrible. |
Beta Was this translation helpful? Give feedback.
-
Why is there a discussion, an issue, and a pull-request for what is essentially a single topic? Anyhow, did you, with your newer version of clang-tidy, find any more issues in the actual taoJSON library code? Clang-tidy is a tool that helps us write high quality code, but it is not the most important tool or metric, neither for achieving nor for measuring code quality. What is important to us for a library are things like an intuitive interface, few bugs, and, this is also an important metric, how much time it usually takes to fix a bug. Given the low frequency of bugs in our libraries, and the high speed and small scope usually required to fix them, I would argue that our code quality is just fine, and, at this point, I find the implication of this not being the case based on us not applying a style checker as indiscriminately as you would expect nothing more than hand-waving. |
Beta Was this translation helpful? Give feedback.
-
Why are header in include/tao/json/external excluded from clang-tidy checks?
Beta Was this translation helpful? Give feedback.
All reactions