Add Polyspace Suppression for MISRA Directive
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ismet
el 13 de Feb. de 2025
Comentada: Ismet
el 21 de Feb. de 2025
According to https://de.mathworks.com/help/bugfinder/ug/annotate-hide-known-acceptable-polyspace-results-web-browser.html#responsive_offcanvas, the code annotation syntax for suppressions is:
/* polyspace Family:Result_name */
For example polyspace MISRA-C:14.9. This number (14.9) is the rule number, but MISRA also has directives.
How can I suppress directives?
The doc in the link above only says:
For coding standard violations, specify the rule number or numbers.
There is for instance directive 1.1, but also rule 1.1.
0 comentarios
Respuesta aceptada
Christian Bard
el 18 de Feb. de 2025
In the Polyspace UI, when you select a violation, you can right-click and choose "Add Pre-justification to clipboard." For more details, refer to the documentation below. By doing this, you'll notice that directive violations are prefixed with an uppercase 'D'.
Más respuestas (0)
Ver también
Categorías
Más información sobre MISRA C:2023 Directives and Rules en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!