|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: deviations tagging
On 6/15/22 09:19, Roger Pau Monné wrote: On Tue, Jun 14, 2022 at 03:47:12PM -0700, Stefano Stabellini wrote: A false positive is a "definite violation" report issued by a tool which turns out not to be real. (Note that a "possible violation" report, sometimes called a "caution" or an "orange", cannot be a false positive because it is not a positive: not all tools make this distinction.) False positives will be reported, by all tools. It is not a simple matter of the tool being sound or defective: the MISRA coding standards are human artifacts with ambiguities and defects. Issues of the form "is this a violation?" can be in the agenda of the MISRA working groups for years before a final decision is made. During this period, some tools will implement one interpretation and other tools will implement a different interpretation. (If this surprises you, there are known defects of the C standard that, after 20+ years, still nobody is sure how to solve.) So, a false positive might sit there for ages, and the benefit for your code base in tagging it is that you need not reanalyze it over and over again.
Also I think the usage of 'report' in the descriptions is confusing. AFAICT this is supposed to mean tags are added in reaction to reports by checker tools, but what about deviations that are find by humans, there's no 'report' in that case likely to refer to. The language seem to be focused against a tags being a reaction to a report from checker tools. I am not sure what you mean by "deviation that are found by humans". I guess you mean "violations that are found by humans." This is indeed rare, because humans are not very good at spotting MISRA violations, but once they do, tagging the occurrence is helpful during the period in which you and the tool vendor (and maybe the MISRA C working group if there is no consensus on whether there is a violation there or not) decide what to do about it. Kind regards, Roberto
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |