warning.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. [
  2. {
  3. "name": "WAll",
  4. "doc": "The mother of all warnings",
  5. "generic": true
  6. },
  7. {
  8. "name": "WInternal",
  9. "doc": "Reserved for internal use",
  10. "generic": true
  11. },
  12. {
  13. "name": "WTemp",
  14. "doc": "Reserved for internal use",
  15. "generic": true
  16. },
  17. {
  18. "name": "WInfo",
  19. "doc": "Generic information like $type",
  20. "generic": true
  21. },
  22. {
  23. "name": "WUser",
  24. "doc": "Custom user warnings, e.g. from Context.warning",
  25. "generic": true
  26. },
  27. {
  28. "name": "WCompiler",
  29. "doc": "Warnings from the compiler frontend, e.g. argument parsing",
  30. "generic": true
  31. },
  32. {
  33. "name": "WParser",
  34. "doc": "Warnings related to lexing and parsing",
  35. "generic": true
  36. },
  37. {
  38. "name": "WTyper",
  39. "doc": "Warnings from the typer",
  40. "generic": true
  41. },
  42. {
  43. "name": "WMacro",
  44. "doc": "Warning related to macros",
  45. "generic": true
  46. },
  47. {
  48. "name": "WOptimizer",
  49. "doc": "Warnings related to optimization",
  50. "generic": true
  51. },
  52. {
  53. "name": "WGenerator",
  54. "doc": "Warnings related to code generation",
  55. "generic": true
  56. },
  57. {
  58. "name": "WDeprecated",
  59. "doc": "This is deprecated and should no longer be used"
  60. },
  61. {
  62. "name": "WDeprecatedDefine",
  63. "doc": "This define is deprecated and should no longer be used",
  64. "parent": "WDeprecated"
  65. },
  66. {
  67. "name": "WDeprecatedEnumAbstract",
  68. "doc": "`@:enum abstract` is deprecated, `enum abstract` should be used instead",
  69. "parent": "WDeprecated"
  70. },
  71. {
  72. "name": "WVarInit",
  73. "doc": "A local variable might be used before being assigned a value",
  74. "parent": "WTyper"
  75. },
  76. {
  77. "name": "WVarShadow",
  78. "doc": "A local variable hides another by using the same name",
  79. "parent": "WTyper",
  80. "enabled": false
  81. },
  82. {
  83. "name": "WExternWithExpr",
  84. "doc": "A non-inline field marked as extern has an expression",
  85. "parent": "WTyper"
  86. },
  87. {
  88. "name": "WStaticInitOrder",
  89. "doc": "The compiler could not determine a type order due to mutually dependent static initializations",
  90. "parent": "WTyper"
  91. },
  92. {
  93. "name": "WClosureCompare",
  94. "doc": "Closures are being compared, which might be undefined",
  95. "parent": "WTyper"
  96. },
  97. {
  98. "name": "WReservedTypePath",
  99. "doc": "A type path is being used that is supposed to be reserved on the current target",
  100. "parent": "WTyper"
  101. },
  102. {
  103. "name": "WInlineOptimizedField",
  104. "doc": "A cached field which was optimized might lead to different output when inlined",
  105. "parent": "WTyper"
  106. },
  107. {
  108. "name": "WPatternMatcher",
  109. "doc": "Warnings related to the pattern matcher",
  110. "parent": "WTyper"
  111. },
  112. {
  113. "name": "WUnusedPattern",
  114. "doc": "The pattern is not used because previous cases cover",
  115. "parent": "WPatternMatcher"
  116. },
  117. {
  118. "name": "WConstructorInliningCancelled",
  119. "doc": "Constructor call could not be inlined because a field is uninitialized",
  120. "parent": "WTyper"
  121. },
  122. {
  123. "name": "WUnsafeEnumEquality",
  124. "doc": "Equality operations on enums with parameters might not work as expected",
  125. "parent": "WTyper",
  126. "enabled": false
  127. },
  128. {
  129. "name": "WHxb",
  130. "doc": "Hxb (either --hxb output or haxe compiler cache) related warnings"
  131. },
  132. {
  133. "name": "WUnboundTypeParameter",
  134. "doc": "Hxb (either --hxb output or haxe compiler cache) failed to link a type parameter to an actual type",
  135. "parent": "WHxb"
  136. },
  137. {
  138. "name": "WUnclosedMonomorph",
  139. "doc": "Hxb writer failed to close a monomorph (that monomorph should have been closed in the first place)",
  140. "parent": "WHxb"
  141. }
  142. ]