4 ms·
1 is why I refuse to allow any static check in my company if you can show a real false positive in our code. If there is any doubt someone will quickly try to p
by bluGill 9y ago
1 is why I refuse to allow any static check in my company if you can show a real false positive in our code. If there is any doubt someone will quickly try to place all instances of that error in the doubt, and it is up to me (as the maintainer of static checks) to prove them wrong.
I have never seen contradictory parts of 2, so I don't know what you are talking about. If it is what I think: I would reject one of the two tools just so that I had a single easy to apply set of rules that have no false positives.
Static analysis is very valuable, but only when you can treat it like the hand of some god that will throw lightening at any developer who writes a found error. I'm currently looking at 1 suppression per 2 million lines of code. I think there is more value in more checks, but unless they can be fully automated without telling everybody how to suppress false positives I won't consider them.
- UncleMeat 9y agoYou don't allow any type checking? You can tune an analysis to be considerably more conservative and reduce false positives. The analysis becomes more like a semantically aware formatter. Doing most things related to pointers will lead to FPs, but you can still get value even if you are terrified of FPs.
- bluGill 9y agoWe do lots of checks. Most of our code is C++ where we get a fair amount "free", and the few times where type checks get in the way they are easy to bypass in a natural way.
- Eridrus 9y ago> 1 is why I refuse to allow any static check in my company if you can show a real false positive in our code. So no linters either?
- bluGill 9y agoWe have a couple linters. They all have a zero false positives policy. We have about 1 suppression per 2 million lines of code because of bugs in the linters we use - every one of the suppression was accepted as a bug by upstream before we suppressed it. I know that there are lots of checks that would be useful that we are missing. However they are not worth looking at because every false positive destroys some trust, and soon they are not trusted even when they are right.
- deleted 9y ago[deleted]