waivers.lnt 4.0 KB

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