waivers.lnt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /* MISRA checks are not performed in header files marked as libraries or
  2. vendor-provided files or belonging to other subsystems.*/
  3. -e686 /* Silencing warning on -elib(*) */
  4. -elib(*) /* No checks on library files. */
  5. +libclass(angle,ansi)
  6. +libh(core_cm4.h)
  7. +libh(stm32*.h)
  8. +libh(*_lld.h)
  9. /* Reinforcing type checking for some critical types even if not required by
  10. MISRA.*/
  11. -strong(AJX, systime_t)
  12. -strong(AJX, rtcnt_t)
  13. -strong(AJX, rttime_t)
  14. -strong(AJX, syssts_t)
  15. -strong(AJX, msg_t)
  16. -strong(AJX, cnt_t)
  17. -strong(AJX, ucnt_t)
  18. -strong(AJX, tstate_t)
  19. -strong(AJX, eventmask_t)
  20. /* Permitting anonymous unions.*/
  21. +fan
  22. /* Silencing common non-MISRA info generated by PCLint in -w3 mode. All of
  23. them have been controlled. Other infos have been fixed in the code.
  24. Remove temporarily the following -e in order to perform extra code quality
  25. checks.*/
  26. -e526 -e537 -e552
  27. -e611 -e613
  28. -e714 -e716 -e717 -e749 -e750 -e754 -e757 -e758 -e759 -e766 -e768 -e769 -e773 -e778 -e793
  29. -e826 -e830 -e835 -e845
  30. /* Removing *advisory* directives and rules that would negatively impact
  31. code readability or not avoidable.*/
  32. -e970 /* Dir-4.6 */
  33. -e9045 /* Dir-4.8 */
  34. -e9026 /* Dir-4.9 */
  35. -e756 /* Rule-2.3 */
  36. -e9058 /* Rule-2.4 */
  37. -e755 /* Rule-2.5 */
  38. -e9003 /* Rule-8.9 */
  39. -e9067 /* Rule-8.11 */
  40. -e818 /* Rule 8.13 */
  41. -e9078 /* Rule-11.4 */
  42. -e9079 /* Rule-11.5 */
  43. -e9049 /* Rule-13.3 */
  44. -e9084 /* Rule-13.4 */
  45. -e801 /* Rule-15.1 */
  46. -e9011 /* Rule-15.4 */
  47. -e904 /* Rule-15.5 */
  48. -e9044 /* Rule-17.8 */
  49. -e9016 /* Rule-18.4 */
  50. -e844 -e954 /* Rule-18.13 */
  51. -e9018 /* Rule-19.2 */
  52. -e9021 /* Rule-20.5 */
  53. -e9024 /* Rule-20.10 */
  54. /* Waiver Directive 2.1, Rule 1.1, Rule 1.2, assembler is allowed in some
  55. modules.*/
  56. -e950
  57. /* Waiver Directive 4.10, PCLint is confused by the guard used in the CMSIS
  58. header files, the guard is present, suppressing the noise.*/
  59. -e451
  60. /* Waiver Rule 2.2, PCLint marks as pure functions that contain just asm
  61. code, this does not mean that those functions do nothing.*/
  62. -e522
  63. /* Waiver Rule 3.1, the sequence "//" is mandated by standard license
  64. headers included on top of all source files. The sequence is part of the
  65. license URL and cannot be removed.*/
  66. -e9059
  67. /* Waiver Rule 8.4, this rule is disabled for the main() function only because
  68. it, of course, does not have nor requires a prior declaration.*/
  69. -esym(9075, main)
  70. /* Waiver Rule 8.7, the static analyzer has no visibility of functions called
  71. from asm modules.*/
  72. -e765
  73. /* Waiver Rule 11.1, casts of function pointers are required by system
  74. design.*/
  75. -e9074
  76. /* Waiver Rule 11.3, casts among different types are required by system
  77. design.*/
  78. -e740 /* Wrongly marked as 1.3 in PCLint 9.00L.*/
  79. -e9087
  80. /* Waiver Rule 11.6, cast from integer to pointer is very commonly used
  81. when accessing peripherals where the numeric address of the registers
  82. block is cast to a structure pointer.*/
  83. -e923
  84. /* Waiver Rule 16.1, missing break into case. It is a common occurrence and
  85. thoroughly checked.*/
  86. /* Waiver Rule 16.3, missing break into case. It is a common occurrence and
  87. thoroughly checked.*/
  88. -e9090
  89. -e9077
  90. -e9042
  91. -e616
  92. -e825
  93. /* Waiver Rule 18.2, pointers arithmetic is required by system design and
  94. deemed safe.*/
  95. /* Waiver Rule 18.3, comparisons among pointers is required by system design
  96. and deemed safe.*/
  97. -e946
  98. -e947
  99. /* Waiver Rule 21.1, this is an operating system, its identifiers are
  100. equivalent in importance to compiler symbols.*/
  101. -e9071