C++: cpp/incomplete-parity-check: medium precision

As reported in CPP-236, this query has false positives on signed
integers that cannot be negative. It could possibly be improved with a
local range analysis, but the query would most likely still have so many
false positives that we would have to lower its precision.

Under our current policy, this change will make the query hidden by
default on LGTM.
This commit is contained in:
Jonas Jensen
2018-08-08 10:05:57 +02:00
parent 87f9ecb442
commit dab45c527e

View File

@@ -4,7 +4,7 @@
* negative numbers. * negative numbers.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @precision high * @precision medium
* @id cpp/incomplete-parity-check * @id cpp/incomplete-parity-check
* @tags reliability * @tags reliability
* correctness * correctness