@opensip-cli/checks-universal 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (620) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +8 -0
  3. package/README.md +31 -0
  4. package/dist/__tests__/all-checks-execute.test.d.ts +17 -0
  5. package/dist/__tests__/all-checks-execute.test.d.ts.map +1 -0
  6. package/dist/__tests__/all-checks-execute.test.js +452 -0
  7. package/dist/__tests__/all-checks-execute.test.js.map +1 -0
  8. package/dist/__tests__/behavior-fixtures-10.test.d.ts +8 -0
  9. package/dist/__tests__/behavior-fixtures-10.test.d.ts.map +1 -0
  10. package/dist/__tests__/behavior-fixtures-10.test.js +200 -0
  11. package/dist/__tests__/behavior-fixtures-10.test.js.map +1 -0
  12. package/dist/__tests__/behavior-fixtures-11.test.d.ts +8 -0
  13. package/dist/__tests__/behavior-fixtures-11.test.d.ts.map +1 -0
  14. package/dist/__tests__/behavior-fixtures-11.test.js +120 -0
  15. package/dist/__tests__/behavior-fixtures-11.test.js.map +1 -0
  16. package/dist/__tests__/behavior-fixtures-12.test.d.ts +8 -0
  17. package/dist/__tests__/behavior-fixtures-12.test.d.ts.map +1 -0
  18. package/dist/__tests__/behavior-fixtures-12.test.js +157 -0
  19. package/dist/__tests__/behavior-fixtures-12.test.js.map +1 -0
  20. package/dist/__tests__/behavior-fixtures-2.test.d.ts +8 -0
  21. package/dist/__tests__/behavior-fixtures-2.test.d.ts.map +1 -0
  22. package/dist/__tests__/behavior-fixtures-2.test.js +785 -0
  23. package/dist/__tests__/behavior-fixtures-2.test.js.map +1 -0
  24. package/dist/__tests__/behavior-fixtures-3.test.d.ts +6 -0
  25. package/dist/__tests__/behavior-fixtures-3.test.d.ts.map +1 -0
  26. package/dist/__tests__/behavior-fixtures-3.test.js +663 -0
  27. package/dist/__tests__/behavior-fixtures-3.test.js.map +1 -0
  28. package/dist/__tests__/behavior-fixtures-4.test.d.ts +5 -0
  29. package/dist/__tests__/behavior-fixtures-4.test.d.ts.map +1 -0
  30. package/dist/__tests__/behavior-fixtures-4.test.js +612 -0
  31. package/dist/__tests__/behavior-fixtures-4.test.js.map +1 -0
  32. package/dist/__tests__/behavior-fixtures-5.test.d.ts +5 -0
  33. package/dist/__tests__/behavior-fixtures-5.test.d.ts.map +1 -0
  34. package/dist/__tests__/behavior-fixtures-5.test.js +469 -0
  35. package/dist/__tests__/behavior-fixtures-5.test.js.map +1 -0
  36. package/dist/__tests__/behavior-fixtures-6.test.d.ts +8 -0
  37. package/dist/__tests__/behavior-fixtures-6.test.d.ts.map +1 -0
  38. package/dist/__tests__/behavior-fixtures-6.test.js +591 -0
  39. package/dist/__tests__/behavior-fixtures-6.test.js.map +1 -0
  40. package/dist/__tests__/behavior-fixtures-7.test.d.ts +5 -0
  41. package/dist/__tests__/behavior-fixtures-7.test.d.ts.map +1 -0
  42. package/dist/__tests__/behavior-fixtures-7.test.js +662 -0
  43. package/dist/__tests__/behavior-fixtures-7.test.js.map +1 -0
  44. package/dist/__tests__/behavior-fixtures-8.test.d.ts +11 -0
  45. package/dist/__tests__/behavior-fixtures-8.test.d.ts.map +1 -0
  46. package/dist/__tests__/behavior-fixtures-8.test.js +634 -0
  47. package/dist/__tests__/behavior-fixtures-8.test.js.map +1 -0
  48. package/dist/__tests__/behavior-fixtures-9.test.d.ts +11 -0
  49. package/dist/__tests__/behavior-fixtures-9.test.d.ts.map +1 -0
  50. package/dist/__tests__/behavior-fixtures-9.test.js +271 -0
  51. package/dist/__tests__/behavior-fixtures-9.test.js.map +1 -0
  52. package/dist/__tests__/behavior-fixtures.test.d.ts +14 -0
  53. package/dist/__tests__/behavior-fixtures.test.d.ts.map +1 -0
  54. package/dist/__tests__/behavior-fixtures.test.js +1423 -0
  55. package/dist/__tests__/behavior-fixtures.test.js.map +1 -0
  56. package/dist/__tests__/checks.test.d.ts +2 -0
  57. package/dist/__tests__/checks.test.d.ts.map +1 -0
  58. package/dist/__tests__/checks.test.js +61 -0
  59. package/dist/__tests__/checks.test.js.map +1 -0
  60. package/dist/__tests__/env-var-validation.test.d.ts +14 -0
  61. package/dist/__tests__/env-var-validation.test.d.ts.map +1 -0
  62. package/dist/__tests__/env-var-validation.test.js +53 -0
  63. package/dist/__tests__/env-var-validation.test.js.map +1 -0
  64. package/dist/__tests__/file-length-limit.test.d.ts +2 -0
  65. package/dist/__tests__/file-length-limit.test.d.ts.map +1 -0
  66. package/dist/__tests__/file-length-limit.test.js +29 -0
  67. package/dist/__tests__/file-length-limit.test.js.map +1 -0
  68. package/dist/__tests__/fixture-coverage.allowlist.d.ts +18 -0
  69. package/dist/__tests__/fixture-coverage.allowlist.d.ts.map +1 -0
  70. package/dist/__tests__/fixture-coverage.allowlist.js +35 -0
  71. package/dist/__tests__/fixture-coverage.allowlist.js.map +1 -0
  72. package/dist/__tests__/fixture-coverage.test.d.ts +13 -0
  73. package/dist/__tests__/fixture-coverage.test.d.ts.map +1 -0
  74. package/dist/__tests__/fixture-coverage.test.js +57 -0
  75. package/dist/__tests__/fixture-coverage.test.js.map +1 -0
  76. package/dist/__tests__/iic.test.d.ts +15 -0
  77. package/dist/__tests__/iic.test.d.ts.map +1 -0
  78. package/dist/__tests__/iic.test.js +316 -0
  79. package/dist/__tests__/iic.test.js.map +1 -0
  80. package/dist/__tests__/no-skipped-tests.test.d.ts +14 -0
  81. package/dist/__tests__/no-skipped-tests.test.d.ts.map +1 -0
  82. package/dist/__tests__/no-skipped-tests.test.js +144 -0
  83. package/dist/__tests__/no-skipped-tests.test.js.map +1 -0
  84. package/dist/__tests__/no-todo-comments.test.d.ts +2 -0
  85. package/dist/__tests__/no-todo-comments.test.d.ts.map +1 -0
  86. package/dist/__tests__/no-todo-comments.test.js +31 -0
  87. package/dist/__tests__/no-todo-comments.test.js.map +1 -0
  88. package/dist/__tests__/no-unimplemented-markers.test.d.ts +2 -0
  89. package/dist/__tests__/no-unimplemented-markers.test.d.ts.map +1 -0
  90. package/dist/__tests__/no-unimplemented-markers.test.js +140 -0
  91. package/dist/__tests__/no-unimplemented-markers.test.js.map +1 -0
  92. package/dist/__tests__/public-api-jsdoc-scope.test.d.ts +10 -0
  93. package/dist/__tests__/public-api-jsdoc-scope.test.d.ts.map +1 -0
  94. package/dist/__tests__/public-api-jsdoc-scope.test.js +176 -0
  95. package/dist/__tests__/public-api-jsdoc-scope.test.js.map +1 -0
  96. package/dist/__tests__/resilience-fp.test.d.ts +14 -0
  97. package/dist/__tests__/resilience-fp.test.d.ts.map +1 -0
  98. package/dist/__tests__/resilience-fp.test.js +110 -0
  99. package/dist/__tests__/resilience-fp.test.js.map +1 -0
  100. package/dist/checks/architecture/__tests__/no-kebab-option-indexing.test.d.ts +2 -0
  101. package/dist/checks/architecture/__tests__/no-kebab-option-indexing.test.d.ts.map +1 -0
  102. package/dist/checks/architecture/__tests__/no-kebab-option-indexing.test.js +32 -0
  103. package/dist/checks/architecture/__tests__/no-kebab-option-indexing.test.js.map +1 -0
  104. package/dist/checks/architecture/__tests__/tool-has-manifest.test.d.ts +2 -0
  105. package/dist/checks/architecture/__tests__/tool-has-manifest.test.d.ts.map +1 -0
  106. package/dist/checks/architecture/__tests__/tool-has-manifest.test.js +152 -0
  107. package/dist/checks/architecture/__tests__/tool-has-manifest.test.js.map +1 -0
  108. package/dist/checks/architecture/__tests__/vitest-config-required-with-tests.test.d.ts +2 -0
  109. package/dist/checks/architecture/__tests__/vitest-config-required-with-tests.test.d.ts.map +1 -0
  110. package/dist/checks/architecture/__tests__/vitest-config-required-with-tests.test.js +129 -0
  111. package/dist/checks/architecture/__tests__/vitest-config-required-with-tests.test.js.map +1 -0
  112. package/dist/checks/architecture/_yaml-doc-bindings.d.ts +23 -0
  113. package/dist/checks/architecture/_yaml-doc-bindings.d.ts.map +1 -0
  114. package/dist/checks/architecture/_yaml-doc-bindings.js +29 -0
  115. package/dist/checks/architecture/_yaml-doc-bindings.js.map +1 -0
  116. package/dist/checks/architecture/dependencies/index.d.ts +2 -0
  117. package/dist/checks/architecture/dependencies/index.d.ts.map +1 -0
  118. package/dist/checks/architecture/dependencies/index.js +2 -0
  119. package/dist/checks/architecture/dependencies/index.js.map +1 -0
  120. package/dist/checks/architecture/dependencies/no-duplicate-packages.d.ts +11 -0
  121. package/dist/checks/architecture/dependencies/no-duplicate-packages.d.ts.map +1 -0
  122. package/dist/checks/architecture/dependencies/no-duplicate-packages.js +171 -0
  123. package/dist/checks/architecture/dependencies/no-duplicate-packages.js.map +1 -0
  124. package/dist/checks/architecture/docker-best-practices.d.ts +23 -0
  125. package/dist/checks/architecture/docker-best-practices.d.ts.map +1 -0
  126. package/dist/checks/architecture/docker-best-practices.js +427 -0
  127. package/dist/checks/architecture/docker-best-practices.js.map +1 -0
  128. package/dist/checks/architecture/docker-ignore-validation.d.ts +18 -0
  129. package/dist/checks/architecture/docker-ignore-validation.d.ts.map +1 -0
  130. package/dist/checks/architecture/docker-ignore-validation.js +117 -0
  131. package/dist/checks/architecture/docker-ignore-validation.js.map +1 -0
  132. package/dist/checks/architecture/docker-version-sync.d.ts +16 -0
  133. package/dist/checks/architecture/docker-version-sync.d.ts.map +1 -0
  134. package/dist/checks/architecture/docker-version-sync.js +193 -0
  135. package/dist/checks/architecture/docker-version-sync.js.map +1 -0
  136. package/dist/checks/architecture/env-var-validation.d.ts +14 -0
  137. package/dist/checks/architecture/env-var-validation.d.ts.map +1 -0
  138. package/dist/checks/architecture/env-var-validation.js +289 -0
  139. package/dist/checks/architecture/env-var-validation.js.map +1 -0
  140. package/dist/checks/architecture/heavy-import-detection.d.ts +11 -0
  141. package/dist/checks/architecture/heavy-import-detection.d.ts.map +1 -0
  142. package/dist/checks/architecture/heavy-import-detection.js +91 -0
  143. package/dist/checks/architecture/heavy-import-detection.js.map +1 -0
  144. package/dist/checks/architecture/index.d.ts +16 -0
  145. package/dist/checks/architecture/index.d.ts.map +1 -0
  146. package/dist/checks/architecture/index.js +16 -0
  147. package/dist/checks/architecture/index.js.map +1 -0
  148. package/dist/checks/architecture/modules/empty-package-detection.d.ts +11 -0
  149. package/dist/checks/architecture/modules/empty-package-detection.d.ts.map +1 -0
  150. package/dist/checks/architecture/modules/empty-package-detection.js +277 -0
  151. package/dist/checks/architecture/modules/empty-package-detection.js.map +1 -0
  152. package/dist/checks/architecture/modules/index.d.ts +3 -0
  153. package/dist/checks/architecture/modules/index.d.ts.map +1 -0
  154. package/dist/checks/architecture/modules/index.js +3 -0
  155. package/dist/checks/architecture/modules/index.js.map +1 -0
  156. package/dist/checks/architecture/modules/interface-implementation-consistency.d.ts +12 -0
  157. package/dist/checks/architecture/modules/interface-implementation-consistency.d.ts.map +1 -0
  158. package/dist/checks/architecture/modules/interface-implementation-consistency.js +555 -0
  159. package/dist/checks/architecture/modules/interface-implementation-consistency.js.map +1 -0
  160. package/dist/checks/architecture/no-custom-event-emitter.d.ts +11 -0
  161. package/dist/checks/architecture/no-custom-event-emitter.d.ts.map +1 -0
  162. package/dist/checks/architecture/no-custom-event-emitter.js +123 -0
  163. package/dist/checks/architecture/no-custom-event-emitter.js.map +1 -0
  164. package/dist/checks/architecture/no-kebab-option-indexing.d.ts +33 -0
  165. package/dist/checks/architecture/no-kebab-option-indexing.d.ts.map +1 -0
  166. package/dist/checks/architecture/no-kebab-option-indexing.js +81 -0
  167. package/dist/checks/architecture/no-kebab-option-indexing.js.map +1 -0
  168. package/dist/checks/architecture/node-version-consistency.d.ts +22 -0
  169. package/dist/checks/architecture/node-version-consistency.d.ts.map +1 -0
  170. package/dist/checks/architecture/node-version-consistency.js +225 -0
  171. package/dist/checks/architecture/node-version-consistency.js.map +1 -0
  172. package/dist/checks/architecture/project-readme-existence.d.ts +13 -0
  173. package/dist/checks/architecture/project-readme-existence.d.ts.map +1 -0
  174. package/dist/checks/architecture/project-readme-existence.js +55 -0
  175. package/dist/checks/architecture/project-readme-existence.js.map +1 -0
  176. package/dist/checks/architecture/stale-build-artifacts.d.ts +10 -0
  177. package/dist/checks/architecture/stale-build-artifacts.d.ts.map +1 -0
  178. package/dist/checks/architecture/stale-build-artifacts.js +55 -0
  179. package/dist/checks/architecture/stale-build-artifacts.js.map +1 -0
  180. package/dist/checks/architecture/tool-has-manifest.d.ts +27 -0
  181. package/dist/checks/architecture/tool-has-manifest.d.ts.map +1 -0
  182. package/dist/checks/architecture/tool-has-manifest.js +135 -0
  183. package/dist/checks/architecture/tool-has-manifest.js.map +1 -0
  184. package/dist/checks/architecture/vitest-config-extends-base.d.ts +15 -0
  185. package/dist/checks/architecture/vitest-config-extends-base.d.ts.map +1 -0
  186. package/dist/checks/architecture/vitest-config-extends-base.js +104 -0
  187. package/dist/checks/architecture/vitest-config-extends-base.js.map +1 -0
  188. package/dist/checks/architecture/vitest-config-required-with-tests.d.ts +49 -0
  189. package/dist/checks/architecture/vitest-config-required-with-tests.d.ts.map +1 -0
  190. package/dist/checks/architecture/vitest-config-required-with-tests.js +199 -0
  191. package/dist/checks/architecture/vitest-config-required-with-tests.js.map +1 -0
  192. package/dist/checks/documentation/_directives/eslint.d.ts +9 -0
  193. package/dist/checks/documentation/_directives/eslint.d.ts.map +1 -0
  194. package/dist/checks/documentation/_directives/eslint.js +168 -0
  195. package/dist/checks/documentation/_directives/eslint.js.map +1 -0
  196. package/dist/checks/documentation/_directives/fitness.d.ts +9 -0
  197. package/dist/checks/documentation/_directives/fitness.d.ts.map +1 -0
  198. package/dist/checks/documentation/_directives/fitness.js +64 -0
  199. package/dist/checks/documentation/_directives/fitness.js.map +1 -0
  200. package/dist/checks/documentation/_directives/graph.d.ts +10 -0
  201. package/dist/checks/documentation/_directives/graph.d.ts.map +1 -0
  202. package/dist/checks/documentation/_directives/graph.js +65 -0
  203. package/dist/checks/documentation/_directives/graph.js.map +1 -0
  204. package/dist/checks/documentation/_directives/graph.test.d.ts +2 -0
  205. package/dist/checks/documentation/_directives/graph.test.d.ts.map +1 -0
  206. package/dist/checks/documentation/_directives/graph.test.js +54 -0
  207. package/dist/checks/documentation/_directives/graph.test.js.map +1 -0
  208. package/dist/checks/documentation/_directives/semgrep.d.ts +8 -0
  209. package/dist/checks/documentation/_directives/semgrep.d.ts.map +1 -0
  210. package/dist/checks/documentation/_directives/semgrep.js +72 -0
  211. package/dist/checks/documentation/_directives/semgrep.js.map +1 -0
  212. package/dist/checks/documentation/_directives/types.d.ts +21 -0
  213. package/dist/checks/documentation/_directives/types.d.ts.map +1 -0
  214. package/dist/checks/documentation/_directives/types.js +9 -0
  215. package/dist/checks/documentation/_directives/types.js.map +1 -0
  216. package/dist/checks/documentation/_directives/typescript.d.ts +10 -0
  217. package/dist/checks/documentation/_directives/typescript.d.ts.map +1 -0
  218. package/dist/checks/documentation/_directives/typescript.js +54 -0
  219. package/dist/checks/documentation/_directives/typescript.js.map +1 -0
  220. package/dist/checks/documentation/_public-api-graph.d.ts +30 -0
  221. package/dist/checks/documentation/_public-api-graph.d.ts.map +1 -0
  222. package/dist/checks/documentation/_public-api-graph.js +304 -0
  223. package/dist/checks/documentation/_public-api-graph.js.map +1 -0
  224. package/dist/checks/documentation/directive-audit.d.ts +26 -0
  225. package/dist/checks/documentation/directive-audit.d.ts.map +1 -0
  226. package/dist/checks/documentation/directive-audit.js +144 -0
  227. package/dist/checks/documentation/directive-audit.js.map +1 -0
  228. package/dist/checks/documentation/index.d.ts +3 -0
  229. package/dist/checks/documentation/index.d.ts.map +1 -0
  230. package/dist/checks/documentation/index.js +3 -0
  231. package/dist/checks/documentation/index.js.map +1 -0
  232. package/dist/checks/documentation/public-api-jsdoc.d.ts +10 -0
  233. package/dist/checks/documentation/public-api-jsdoc.d.ts.map +1 -0
  234. package/dist/checks/documentation/public-api-jsdoc.js +131 -0
  235. package/dist/checks/documentation/public-api-jsdoc.js.map +1 -0
  236. package/dist/checks/file-length-limit.d.ts +16 -0
  237. package/dist/checks/file-length-limit.d.ts.map +1 -0
  238. package/dist/checks/file-length-limit.js +47 -0
  239. package/dist/checks/file-length-limit.js.map +1 -0
  240. package/dist/checks/index.d.ts +16 -0
  241. package/dist/checks/index.d.ts.map +1 -0
  242. package/dist/checks/index.js +16 -0
  243. package/dist/checks/index.js.map +1 -0
  244. package/dist/checks/no-todo-comments.d.ts +18 -0
  245. package/dist/checks/no-todo-comments.d.ts.map +1 -0
  246. package/dist/checks/no-todo-comments.js +79 -0
  247. package/dist/checks/no-todo-comments.js.map +1 -0
  248. package/dist/checks/no-unimplemented-markers.d.ts +24 -0
  249. package/dist/checks/no-unimplemented-markers.d.ts.map +1 -0
  250. package/dist/checks/no-unimplemented-markers.js +198 -0
  251. package/dist/checks/no-unimplemented-markers.js.map +1 -0
  252. package/dist/checks/quality/api/graphql-offset-pagination.d.ts +9 -0
  253. package/dist/checks/quality/api/graphql-offset-pagination.d.ts.map +1 -0
  254. package/dist/checks/quality/api/graphql-offset-pagination.js +63 -0
  255. package/dist/checks/quality/api/graphql-offset-pagination.js.map +1 -0
  256. package/dist/checks/quality/api/index.d.ts +3 -0
  257. package/dist/checks/quality/api/index.d.ts.map +1 -0
  258. package/dist/checks/quality/api/index.js +3 -0
  259. package/dist/checks/quality/api/index.js.map +1 -0
  260. package/dist/checks/quality/api/zod-openapi-sync.d.ts +13 -0
  261. package/dist/checks/quality/api/zod-openapi-sync.d.ts.map +1 -0
  262. package/dist/checks/quality/api/zod-openapi-sync.js +88 -0
  263. package/dist/checks/quality/api/zod-openapi-sync.js.map +1 -0
  264. package/dist/checks/quality/code-structure/dead-code.d.ts +12 -0
  265. package/dist/checks/quality/code-structure/dead-code.d.ts.map +1 -0
  266. package/dist/checks/quality/code-structure/dead-code.js +238 -0
  267. package/dist/checks/quality/code-structure/dead-code.js.map +1 -0
  268. package/dist/checks/quality/code-structure/index.d.ts +5 -0
  269. package/dist/checks/quality/code-structure/index.d.ts.map +1 -0
  270. package/dist/checks/quality/code-structure/index.js +5 -0
  271. package/dist/checks/quality/code-structure/index.js.map +1 -0
  272. package/dist/checks/quality/code-structure/no-ai-attribution.d.ts +25 -0
  273. package/dist/checks/quality/code-structure/no-ai-attribution.d.ts.map +1 -0
  274. package/dist/checks/quality/code-structure/no-ai-attribution.js +76 -0
  275. package/dist/checks/quality/code-structure/no-ai-attribution.js.map +1 -0
  276. package/dist/checks/quality/code-structure/no-console-log.d.ts +17 -0
  277. package/dist/checks/quality/code-structure/no-console-log.d.ts.map +1 -0
  278. package/dist/checks/quality/code-structure/no-console-log.js +106 -0
  279. package/dist/checks/quality/code-structure/no-console-log.js.map +1 -0
  280. package/dist/checks/quality/code-structure/no-process-artifacts.d.ts +25 -0
  281. package/dist/checks/quality/code-structure/no-process-artifacts.d.ts.map +1 -0
  282. package/dist/checks/quality/code-structure/no-process-artifacts.js +104 -0
  283. package/dist/checks/quality/code-structure/no-process-artifacts.js.map +1 -0
  284. package/dist/checks/quality/dependency-version-consistency.d.ts +20 -0
  285. package/dist/checks/quality/dependency-version-consistency.d.ts.map +1 -0
  286. package/dist/checks/quality/dependency-version-consistency.js +266 -0
  287. package/dist/checks/quality/dependency-version-consistency.js.map +1 -0
  288. package/dist/checks/quality/fitness-ignore-hygiene.d.ts +10 -0
  289. package/dist/checks/quality/fitness-ignore-hygiene.d.ts.map +1 -0
  290. package/dist/checks/quality/fitness-ignore-hygiene.js +93 -0
  291. package/dist/checks/quality/fitness-ignore-hygiene.js.map +1 -0
  292. package/dist/checks/quality/frontend/expo-vector-icons.d.ts +13 -0
  293. package/dist/checks/quality/frontend/expo-vector-icons.d.ts.map +1 -0
  294. package/dist/checks/quality/frontend/expo-vector-icons.js +80 -0
  295. package/dist/checks/quality/frontend/expo-vector-icons.js.map +1 -0
  296. package/dist/checks/quality/frontend/image-optimization.d.ts +13 -0
  297. package/dist/checks/quality/frontend/image-optimization.d.ts.map +1 -0
  298. package/dist/checks/quality/frontend/image-optimization.js +166 -0
  299. package/dist/checks/quality/frontend/image-optimization.js.map +1 -0
  300. package/dist/checks/quality/frontend/index.d.ts +4 -0
  301. package/dist/checks/quality/frontend/index.d.ts.map +1 -0
  302. package/dist/checks/quality/frontend/index.js +4 -0
  303. package/dist/checks/quality/frontend/index.js.map +1 -0
  304. package/dist/checks/quality/frontend/navigation-typing.d.ts +12 -0
  305. package/dist/checks/quality/frontend/navigation-typing.d.ts.map +1 -0
  306. package/dist/checks/quality/frontend/navigation-typing.js +77 -0
  307. package/dist/checks/quality/frontend/navigation-typing.js.map +1 -0
  308. package/dist/checks/quality/graph-ignore-hygiene.d.ts +10 -0
  309. package/dist/checks/quality/graph-ignore-hygiene.d.ts.map +1 -0
  310. package/dist/checks/quality/graph-ignore-hygiene.js +95 -0
  311. package/dist/checks/quality/graph-ignore-hygiene.js.map +1 -0
  312. package/dist/checks/quality/graph-ignore-hygiene.test.d.ts +14 -0
  313. package/dist/checks/quality/graph-ignore-hygiene.test.d.ts.map +1 -0
  314. package/dist/checks/quality/graph-ignore-hygiene.test.js +58 -0
  315. package/dist/checks/quality/graph-ignore-hygiene.test.js.map +1 -0
  316. package/dist/checks/quality/index.d.ts +16 -0
  317. package/dist/checks/quality/index.d.ts.map +1 -0
  318. package/dist/checks/quality/index.js +16 -0
  319. package/dist/checks/quality/index.js.map +1 -0
  320. package/dist/checks/quality/linting/eslint-justifications.d.ts +12 -0
  321. package/dist/checks/quality/linting/eslint-justifications.d.ts.map +1 -0
  322. package/dist/checks/quality/linting/eslint-justifications.js +328 -0
  323. package/dist/checks/quality/linting/eslint-justifications.js.map +1 -0
  324. package/dist/checks/quality/linting/index.d.ts +4 -0
  325. package/dist/checks/quality/linting/index.d.ts.map +1 -0
  326. package/dist/checks/quality/linting/index.js +4 -0
  327. package/dist/checks/quality/linting/index.js.map +1 -0
  328. package/dist/checks/quality/linting/semgrep-justifications.d.ts +16 -0
  329. package/dist/checks/quality/linting/semgrep-justifications.d.ts.map +1 -0
  330. package/dist/checks/quality/linting/semgrep-justifications.js +229 -0
  331. package/dist/checks/quality/linting/semgrep-justifications.js.map +1 -0
  332. package/dist/checks/quality/linting/typescript-directive-hygiene.d.ts +12 -0
  333. package/dist/checks/quality/linting/typescript-directive-hygiene.d.ts.map +1 -0
  334. package/dist/checks/quality/linting/typescript-directive-hygiene.js +142 -0
  335. package/dist/checks/quality/linting/typescript-directive-hygiene.js.map +1 -0
  336. package/dist/checks/quality/no-compatibility-layer-names.d.ts +13 -0
  337. package/dist/checks/quality/no-compatibility-layer-names.d.ts.map +1 -0
  338. package/dist/checks/quality/no-compatibility-layer-names.js +100 -0
  339. package/dist/checks/quality/no-compatibility-layer-names.js.map +1 -0
  340. package/dist/checks/quality/no-deprecated-tags.d.ts +11 -0
  341. package/dist/checks/quality/no-deprecated-tags.d.ts.map +1 -0
  342. package/dist/checks/quality/no-deprecated-tags.js +76 -0
  343. package/dist/checks/quality/no-deprecated-tags.js.map +1 -0
  344. package/dist/checks/quality/no-markdown-references.d.ts +16 -0
  345. package/dist/checks/quality/no-markdown-references.d.ts.map +1 -0
  346. package/dist/checks/quality/no-markdown-references.js +145 -0
  347. package/dist/checks/quality/no-markdown-references.js.map +1 -0
  348. package/dist/checks/quality/no-raw-regex-on-code.d.ts +9 -0
  349. package/dist/checks/quality/no-raw-regex-on-code.d.ts.map +1 -0
  350. package/dist/checks/quality/no-raw-regex-on-code.js +61 -0
  351. package/dist/checks/quality/no-raw-regex-on-code.js.map +1 -0
  352. package/dist/checks/quality/no-temporary-workarounds.d.ts +11 -0
  353. package/dist/checks/quality/no-temporary-workarounds.d.ts.map +1 -0
  354. package/dist/checks/quality/no-temporary-workarounds.js +69 -0
  355. package/dist/checks/quality/no-temporary-workarounds.js.map +1 -0
  356. package/dist/checks/quality/no-window-alert.d.ts +19 -0
  357. package/dist/checks/quality/no-window-alert.d.ts.map +1 -0
  358. package/dist/checks/quality/no-window-alert.js +74 -0
  359. package/dist/checks/quality/no-window-alert.js.map +1 -0
  360. package/dist/checks/quality/observability/index.d.ts +2 -0
  361. package/dist/checks/quality/observability/index.d.ts.map +1 -0
  362. package/dist/checks/quality/observability/index.js +2 -0
  363. package/dist/checks/quality/observability/index.js.map +1 -0
  364. package/dist/checks/quality/observability/pino-serializer-coverage.d.ts +15 -0
  365. package/dist/checks/quality/observability/pino-serializer-coverage.d.ts.map +1 -0
  366. package/dist/checks/quality/observability/pino-serializer-coverage.js +209 -0
  367. package/dist/checks/quality/observability/pino-serializer-coverage.js.map +1 -0
  368. package/dist/checks/quality/patterns/async-state-pattern.d.ts +14 -0
  369. package/dist/checks/quality/patterns/async-state-pattern.d.ts.map +1 -0
  370. package/dist/checks/quality/patterns/async-state-pattern.js +80 -0
  371. package/dist/checks/quality/patterns/async-state-pattern.js.map +1 -0
  372. package/dist/checks/quality/patterns/index.d.ts +4 -0
  373. package/dist/checks/quality/patterns/index.d.ts.map +1 -0
  374. package/dist/checks/quality/patterns/index.js +4 -0
  375. package/dist/checks/quality/patterns/index.js.map +1 -0
  376. package/dist/checks/quality/patterns/no-non-null-assertions.d.ts +10 -0
  377. package/dist/checks/quality/patterns/no-non-null-assertions.d.ts.map +1 -0
  378. package/dist/checks/quality/patterns/no-non-null-assertions.js +97 -0
  379. package/dist/checks/quality/patterns/no-non-null-assertions.js.map +1 -0
  380. package/dist/checks/quality/patterns/performance-anti-patterns.d.ts +16 -0
  381. package/dist/checks/quality/patterns/performance-anti-patterns.d.ts.map +1 -0
  382. package/dist/checks/quality/patterns/performance-anti-patterns.js +239 -0
  383. package/dist/checks/quality/patterns/performance-anti-patterns.js.map +1 -0
  384. package/dist/checks/resilience/_helpers/config-validation.d.ts +27 -0
  385. package/dist/checks/resilience/_helpers/config-validation.d.ts.map +1 -0
  386. package/dist/checks/resilience/_helpers/config-validation.js +61 -0
  387. package/dist/checks/resilience/_helpers/config-validation.js.map +1 -0
  388. package/dist/checks/resilience/batch-operations.d.ts +22 -0
  389. package/dist/checks/resilience/batch-operations.d.ts.map +1 -0
  390. package/dist/checks/resilience/batch-operations.js +422 -0
  391. package/dist/checks/resilience/batch-operations.js.map +1 -0
  392. package/dist/checks/resilience/cache-ttl-validation.d.ts +13 -0
  393. package/dist/checks/resilience/cache-ttl-validation.d.ts.map +1 -0
  394. package/dist/checks/resilience/cache-ttl-validation.js +222 -0
  395. package/dist/checks/resilience/cache-ttl-validation.js.map +1 -0
  396. package/dist/checks/resilience/catch-clause-safety.d.ts +12 -0
  397. package/dist/checks/resilience/catch-clause-safety.d.ts.map +1 -0
  398. package/dist/checks/resilience/catch-clause-safety.js +110 -0
  399. package/dist/checks/resilience/catch-clause-safety.js.map +1 -0
  400. package/dist/checks/resilience/dangerous-config-defaults.d.ts +11 -0
  401. package/dist/checks/resilience/dangerous-config-defaults.d.ts.map +1 -0
  402. package/dist/checks/resilience/dangerous-config-defaults.js +304 -0
  403. package/dist/checks/resilience/dangerous-config-defaults.js.map +1 -0
  404. package/dist/checks/resilience/error-code-registration.d.ts +11 -0
  405. package/dist/checks/resilience/error-code-registration.d.ts.map +1 -0
  406. package/dist/checks/resilience/error-code-registration.js +88 -0
  407. package/dist/checks/resilience/error-code-registration.js.map +1 -0
  408. package/dist/checks/resilience/event-patterns.d.ts +21 -0
  409. package/dist/checks/resilience/event-patterns.d.ts.map +1 -0
  410. package/dist/checks/resilience/event-patterns.js +232 -0
  411. package/dist/checks/resilience/event-patterns.js.map +1 -0
  412. package/dist/checks/resilience/exit-code-correctness.d.ts +12 -0
  413. package/dist/checks/resilience/exit-code-correctness.d.ts.map +1 -0
  414. package/dist/checks/resilience/exit-code-correctness.js +107 -0
  415. package/dist/checks/resilience/exit-code-correctness.js.map +1 -0
  416. package/dist/checks/resilience/index.d.ts +18 -0
  417. package/dist/checks/resilience/index.d.ts.map +1 -0
  418. package/dist/checks/resilience/index.js +18 -0
  419. package/dist/checks/resilience/index.js.map +1 -0
  420. package/dist/checks/resilience/no-hardcoded-timeouts.d.ts +10 -0
  421. package/dist/checks/resilience/no-hardcoded-timeouts.d.ts.map +1 -0
  422. package/dist/checks/resilience/no-hardcoded-timeouts.js +291 -0
  423. package/dist/checks/resilience/no-hardcoded-timeouts.js.map +1 -0
  424. package/dist/checks/resilience/no-process-exit-in-finally.d.ts +11 -0
  425. package/dist/checks/resilience/no-process-exit-in-finally.d.ts.map +1 -0
  426. package/dist/checks/resilience/no-process-exit-in-finally.js +89 -0
  427. package/dist/checks/resilience/no-process-exit-in-finally.js.map +1 -0
  428. package/dist/checks/resilience/readline-cleanup.d.ts +11 -0
  429. package/dist/checks/resilience/readline-cleanup.d.ts.map +1 -0
  430. package/dist/checks/resilience/readline-cleanup.js +107 -0
  431. package/dist/checks/resilience/readline-cleanup.js.map +1 -0
  432. package/dist/checks/resilience/recovery-patterns.d.ts +25 -0
  433. package/dist/checks/resilience/recovery-patterns.d.ts.map +1 -0
  434. package/dist/checks/resilience/recovery-patterns.js +273 -0
  435. package/dist/checks/resilience/recovery-patterns.js.map +1 -0
  436. package/dist/checks/resilience/reentrancy-guard.d.ts +12 -0
  437. package/dist/checks/resilience/reentrancy-guard.d.ts.map +1 -0
  438. package/dist/checks/resilience/reentrancy-guard.js +86 -0
  439. package/dist/checks/resilience/reentrancy-guard.js.map +1 -0
  440. package/dist/checks/resilience/retry-config-validation.d.ts +13 -0
  441. package/dist/checks/resilience/retry-config-validation.d.ts.map +1 -0
  442. package/dist/checks/resilience/retry-config-validation.js +159 -0
  443. package/dist/checks/resilience/retry-config-validation.js.map +1 -0
  444. package/dist/checks/resilience/sentry/_helpers/sentry.d.ts +25 -0
  445. package/dist/checks/resilience/sentry/_helpers/sentry.d.ts.map +1 -0
  446. package/dist/checks/resilience/sentry/_helpers/sentry.js +68 -0
  447. package/dist/checks/resilience/sentry/_helpers/sentry.js.map +1 -0
  448. package/dist/checks/resilience/sentry/index.d.ts +8 -0
  449. package/dist/checks/resilience/sentry/index.d.ts.map +1 -0
  450. package/dist/checks/resilience/sentry/index.js +8 -0
  451. package/dist/checks/resilience/sentry/index.js.map +1 -0
  452. package/dist/checks/resilience/sentry/sentry-dsn-configured.d.ts +12 -0
  453. package/dist/checks/resilience/sentry/sentry-dsn-configured.d.ts.map +1 -0
  454. package/dist/checks/resilience/sentry/sentry-dsn-configured.js +55 -0
  455. package/dist/checks/resilience/sentry/sentry-dsn-configured.js.map +1 -0
  456. package/dist/checks/resilience/sentry/sentry-environment-set.d.ts +12 -0
  457. package/dist/checks/resilience/sentry/sentry-environment-set.d.ts.map +1 -0
  458. package/dist/checks/resilience/sentry/sentry-environment-set.js +51 -0
  459. package/dist/checks/resilience/sentry/sentry-environment-set.js.map +1 -0
  460. package/dist/checks/resilience/sentry/sentry-error-boundary.d.ts +12 -0
  461. package/dist/checks/resilience/sentry/sentry-error-boundary.d.ts.map +1 -0
  462. package/dist/checks/resilience/sentry/sentry-error-boundary.js +75 -0
  463. package/dist/checks/resilience/sentry/sentry-error-boundary.js.map +1 -0
  464. package/dist/checks/resilience/sentry/sentry-pii-scrubbing.d.ts +13 -0
  465. package/dist/checks/resilience/sentry/sentry-pii-scrubbing.d.ts.map +1 -0
  466. package/dist/checks/resilience/sentry/sentry-pii-scrubbing.js +125 -0
  467. package/dist/checks/resilience/sentry/sentry-pii-scrubbing.js.map +1 -0
  468. package/dist/checks/resilience/sentry/sentry-release-set.d.ts +12 -0
  469. package/dist/checks/resilience/sentry/sentry-release-set.d.ts.map +1 -0
  470. package/dist/checks/resilience/sentry/sentry-release-set.js +51 -0
  471. package/dist/checks/resilience/sentry/sentry-release-set.js.map +1 -0
  472. package/dist/checks/resilience/sentry/sentry-sample-rate.d.ts +12 -0
  473. package/dist/checks/resilience/sentry/sentry-sample-rate.d.ts.map +1 -0
  474. package/dist/checks/resilience/sentry/sentry-sample-rate.js +78 -0
  475. package/dist/checks/resilience/sentry/sentry-sample-rate.js.map +1 -0
  476. package/dist/checks/resilience/sentry/sentry-source-maps.d.ts +12 -0
  477. package/dist/checks/resilience/sentry/sentry-source-maps.d.ts.map +1 -0
  478. package/dist/checks/resilience/sentry/sentry-source-maps.js +83 -0
  479. package/dist/checks/resilience/sentry/sentry-source-maps.js.map +1 -0
  480. package/dist/checks/resilience/service-patterns.d.ts +18 -0
  481. package/dist/checks/resilience/service-patterns.d.ts.map +1 -0
  482. package/dist/checks/resilience/service-patterns.js +230 -0
  483. package/dist/checks/resilience/service-patterns.js.map +1 -0
  484. package/dist/checks/resilience/timer-lifecycle.d.ts +10 -0
  485. package/dist/checks/resilience/timer-lifecycle.d.ts.map +1 -0
  486. package/dist/checks/resilience/timer-lifecycle.js +78 -0
  487. package/dist/checks/resilience/timer-lifecycle.js.map +1 -0
  488. package/dist/checks/resilience/transaction-patterns.d.ts +21 -0
  489. package/dist/checks/resilience/transaction-patterns.d.ts.map +1 -0
  490. package/dist/checks/resilience/transaction-patterns.js +258 -0
  491. package/dist/checks/resilience/transaction-patterns.js.map +1 -0
  492. package/dist/checks/security/__tests__/no-hardcoded-secrets.test.d.ts +9 -0
  493. package/dist/checks/security/__tests__/no-hardcoded-secrets.test.d.ts.map +1 -0
  494. package/dist/checks/security/__tests__/no-hardcoded-secrets.test.js +37 -0
  495. package/dist/checks/security/__tests__/no-hardcoded-secrets.test.js.map +1 -0
  496. package/dist/checks/security/__tests__/package-supply-chain-policy.test.d.ts +2 -0
  497. package/dist/checks/security/__tests__/package-supply-chain-policy.test.d.ts.map +1 -0
  498. package/dist/checks/security/__tests__/package-supply-chain-policy.test.js +128 -0
  499. package/dist/checks/security/__tests__/package-supply-chain-policy.test.js.map +1 -0
  500. package/dist/checks/security/api-key-rotation.d.ts +10 -0
  501. package/dist/checks/security/api-key-rotation.d.ts.map +1 -0
  502. package/dist/checks/security/api-key-rotation.js +186 -0
  503. package/dist/checks/security/api-key-rotation.js.map +1 -0
  504. package/dist/checks/security/auth-middleware-coverage.d.ts +11 -0
  505. package/dist/checks/security/auth-middleware-coverage.d.ts.map +1 -0
  506. package/dist/checks/security/auth-middleware-coverage.js +210 -0
  507. package/dist/checks/security/auth-middleware-coverage.js.map +1 -0
  508. package/dist/checks/security/auth-route-guard.d.ts +12 -0
  509. package/dist/checks/security/auth-route-guard.d.ts.map +1 -0
  510. package/dist/checks/security/auth-route-guard.js +70 -0
  511. package/dist/checks/security/auth-route-guard.js.map +1 -0
  512. package/dist/checks/security/cors-configuration.d.ts +11 -0
  513. package/dist/checks/security/cors-configuration.d.ts.map +1 -0
  514. package/dist/checks/security/cors-configuration.js +126 -0
  515. package/dist/checks/security/cors-configuration.js.map +1 -0
  516. package/dist/checks/security/csp-headers.d.ts +11 -0
  517. package/dist/checks/security/csp-headers.d.ts.map +1 -0
  518. package/dist/checks/security/csp-headers.js +192 -0
  519. package/dist/checks/security/csp-headers.js.map +1 -0
  520. package/dist/checks/security/dependency-vulnerability-audit.d.ts +15 -0
  521. package/dist/checks/security/dependency-vulnerability-audit.d.ts.map +1 -0
  522. package/dist/checks/security/dependency-vulnerability-audit.js +184 -0
  523. package/dist/checks/security/dependency-vulnerability-audit.js.map +1 -0
  524. package/dist/checks/security/env-secret-exposure.d.ts +11 -0
  525. package/dist/checks/security/env-secret-exposure.d.ts.map +1 -0
  526. package/dist/checks/security/env-secret-exposure.js +127 -0
  527. package/dist/checks/security/env-secret-exposure.js.map +1 -0
  528. package/dist/checks/security/hasura-production-config.d.ts +11 -0
  529. package/dist/checks/security/hasura-production-config.d.ts.map +1 -0
  530. package/dist/checks/security/hasura-production-config.js +122 -0
  531. package/dist/checks/security/hasura-production-config.js.map +1 -0
  532. package/dist/checks/security/index.d.ts +17 -0
  533. package/dist/checks/security/index.d.ts.map +1 -0
  534. package/dist/checks/security/index.js +17 -0
  535. package/dist/checks/security/index.js.map +1 -0
  536. package/dist/checks/security/jwt-validation.d.ts +11 -0
  537. package/dist/checks/security/jwt-validation.d.ts.map +1 -0
  538. package/dist/checks/security/jwt-validation.js +294 -0
  539. package/dist/checks/security/jwt-validation.js.map +1 -0
  540. package/dist/checks/security/no-eval.d.ts +16 -0
  541. package/dist/checks/security/no-eval.d.ts.map +1 -0
  542. package/dist/checks/security/no-eval.js +83 -0
  543. package/dist/checks/security/no-eval.js.map +1 -0
  544. package/dist/checks/security/no-hardcoded-secrets.d.ts +28 -0
  545. package/dist/checks/security/no-hardcoded-secrets.d.ts.map +1 -0
  546. package/dist/checks/security/no-hardcoded-secrets.js +209 -0
  547. package/dist/checks/security/no-hardcoded-secrets.js.map +1 -0
  548. package/dist/checks/security/package-supply-chain-policy.d.ts +12 -0
  549. package/dist/checks/security/package-supply-chain-policy.d.ts.map +1 -0
  550. package/dist/checks/security/package-supply-chain-policy.js +534 -0
  551. package/dist/checks/security/package-supply-chain-policy.js.map +1 -0
  552. package/dist/checks/security/rate-limit-coverage.d.ts +10 -0
  553. package/dist/checks/security/rate-limit-coverage.d.ts.map +1 -0
  554. package/dist/checks/security/rate-limit-coverage.js +143 -0
  555. package/dist/checks/security/rate-limit-coverage.js.map +1 -0
  556. package/dist/checks/security/semgrep-scan.d.ts +13 -0
  557. package/dist/checks/security/semgrep-scan.d.ts.map +1 -0
  558. package/dist/checks/security/semgrep-scan.js +86 -0
  559. package/dist/checks/security/semgrep-scan.js.map +1 -0
  560. package/dist/checks/security/use-centralized-crypto.d.ts +11 -0
  561. package/dist/checks/security/use-centralized-crypto.d.ts.map +1 -0
  562. package/dist/checks/security/use-centralized-crypto.js +129 -0
  563. package/dist/checks/security/use-centralized-crypto.js.map +1 -0
  564. package/dist/checks/security/webhook-signature-verification.d.ts +10 -0
  565. package/dist/checks/security/webhook-signature-verification.d.ts.map +1 -0
  566. package/dist/checks/security/webhook-signature-verification.js +183 -0
  567. package/dist/checks/security/webhook-signature-verification.js.map +1 -0
  568. package/dist/checks/testing/index.d.ts +6 -0
  569. package/dist/checks/testing/index.d.ts.map +1 -0
  570. package/dist/checks/testing/index.js +6 -0
  571. package/dist/checks/testing/index.js.map +1 -0
  572. package/dist/checks/testing/no-skipped-tests.d.ts +40 -0
  573. package/dist/checks/testing/no-skipped-tests.d.ts.map +1 -0
  574. package/dist/checks/testing/no-skipped-tests.js +174 -0
  575. package/dist/checks/testing/no-skipped-tests.js.map +1 -0
  576. package/dist/checks/testing/no-stub-tests.d.ts +11 -0
  577. package/dist/checks/testing/no-stub-tests.d.ts.map +1 -0
  578. package/dist/checks/testing/no-stub-tests.js +103 -0
  579. package/dist/checks/testing/no-stub-tests.js.map +1 -0
  580. package/dist/checks/testing/test-convention-consistency.d.ts +14 -0
  581. package/dist/checks/testing/test-convention-consistency.d.ts.map +1 -0
  582. package/dist/checks/testing/test-convention-consistency.js +93 -0
  583. package/dist/checks/testing/test-convention-consistency.js.map +1 -0
  584. package/dist/checks/testing/test-file-naming.d.ts +13 -0
  585. package/dist/checks/testing/test-file-naming.d.ts.map +1 -0
  586. package/dist/checks/testing/test-file-naming.js +218 -0
  587. package/dist/checks/testing/test-file-naming.js.map +1 -0
  588. package/dist/checks/testing/test-file-pairing.d.ts +13 -0
  589. package/dist/checks/testing/test-file-pairing.d.ts.map +1 -0
  590. package/dist/checks/testing/test-file-pairing.js +274 -0
  591. package/dist/checks/testing/test-file-pairing.js.map +1 -0
  592. package/dist/display/architecture.d.ts +9 -0
  593. package/dist/display/architecture.d.ts.map +1 -0
  594. package/dist/display/architecture.js +29 -0
  595. package/dist/display/architecture.js.map +1 -0
  596. package/dist/display/index.d.ts +20 -0
  597. package/dist/display/index.d.ts.map +1 -0
  598. package/dist/display/index.js +30 -0
  599. package/dist/display/index.js.map +1 -0
  600. package/dist/display/quality.d.ts +7 -0
  601. package/dist/display/quality.d.ts.map +1 -0
  602. package/dist/display/quality.js +34 -0
  603. package/dist/display/quality.js.map +1 -0
  604. package/dist/display/resilience.d.ts +7 -0
  605. package/dist/display/resilience.d.ts.map +1 -0
  606. package/dist/display/resilience.js +36 -0
  607. package/dist/display/resilience.js.map +1 -0
  608. package/dist/display/security-testing.d.ts +9 -0
  609. package/dist/display/security-testing.d.ts.map +1 -0
  610. package/dist/display/security-testing.js +31 -0
  611. package/dist/display/security-testing.js.map +1 -0
  612. package/dist/display/types.d.ts +6 -0
  613. package/dist/display/types.d.ts.map +1 -0
  614. package/dist/display/types.js +6 -0
  615. package/dist/display/types.js.map +1 -0
  616. package/dist/index.d.ts +19 -0
  617. package/dist/index.d.ts.map +1 -0
  618. package/dist/index.js +21 -0
  619. package/dist/index.js.map +1 -0
  620. package/package.json +52 -0
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Coverage for the `graph-ignore-hygiene` check (ADR-0014): validates that
3
+ * `@graph-ignore` directives carry a `graph:`-namespaced rule id and a
4
+ * `-- reason`, and flags files with an excessive number of suppressions.
5
+ *
6
+ * The pure detector behind this check is not exported, so the test drives the
7
+ * real wired check via `Check.run(cwd, { targetFiles })` against on-disk `.ts`
8
+ * fixtures (the check is `fileTypes: ['ts']`, `contentFilter: 'raw'`). Each
9
+ * violation's `type` is carried into `signal.metadata.type` by the framework,
10
+ * which is what we assert on. Runs inside a `RunScope` because the check path
11
+ * reads the current scope (content-filter dispatch, directive filtering).
12
+ */
13
+ export {};
14
+ //# sourceMappingURL=graph-ignore-hygiene.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph-ignore-hygiene.test.d.ts","sourceRoot":"","sources":["../../../src/checks/quality/graph-ignore-hygiene.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Coverage for the `graph-ignore-hygiene` check (ADR-0014): validates that
3
+ * `@graph-ignore` directives carry a `graph:`-namespaced rule id and a
4
+ * `-- reason`, and flags files with an excessive number of suppressions.
5
+ *
6
+ * The pure detector behind this check is not exported, so the test drives the
7
+ * real wired check via `Check.run(cwd, { targetFiles })` against on-disk `.ts`
8
+ * fixtures (the check is `fileTypes: ['ts']`, `contentFilter: 'raw'`). Each
9
+ * violation's `type` is carried into `signal.metadata.type` by the framework,
10
+ * which is what we assert on. Runs inside a `RunScope` because the check path
11
+ * reads the current scope (content-filter dispatch, directive filtering).
12
+ */
13
+ import { mkdtemp, rm, writeFile } from 'node:fs/promises';
14
+ import { tmpdir } from 'node:os';
15
+ import { join } from 'node:path';
16
+ import { makeTestScope, withScope } from '@opensip-cli/test-support';
17
+ import { afterEach, beforeEach, describe, expect, it } from 'vitest';
18
+ import { graphIgnoreHygiene } from './graph-ignore-hygiene.js';
19
+ let root;
20
+ beforeEach(async () => {
21
+ root = await mkdtemp(join(tmpdir(), 'graph-hygiene-'));
22
+ });
23
+ afterEach(async () => {
24
+ await rm(root, { recursive: true, force: true });
25
+ });
26
+ /**
27
+ * Write `content` to `name.ts` under the temp root, run the check against just
28
+ * that file, and return the violation `type`s it produced.
29
+ */
30
+ async function violationTypes(name, content) {
31
+ const filePath = join(root, name);
32
+ await writeFile(filePath, content, 'utf8');
33
+ const result = await withScope(makeTestScope(), () => graphIgnoreHygiene.run(root, { targetFiles: [filePath] }));
34
+ return result.signals.map((s) => s.metadata.type);
35
+ }
36
+ describe('graph-ignore-hygiene', () => {
37
+ it('flags a directive missing a -- reason as ignore-without-reason', async () => {
38
+ const types = await violationTypes('a.ts', '// @graph-ignore-next-line graph:cycle\nfunction visit() {}\n');
39
+ expect(types).toContain('ignore-without-reason');
40
+ });
41
+ it('flags a non-graph-namespaced id as invalid-ignore-slug', async () => {
42
+ const types = await violationTypes('b.ts', '// @graph-ignore-next-line cycle -- has a reason\nfunction visit() {}\n');
43
+ expect(types).toContain('invalid-ignore-slug');
44
+ });
45
+ it('accepts a valid graph: id with a reason — no violation', async () => {
46
+ const types = await violationTypes('c.ts', '// @graph-ignore-next-line graph:cycle -- intentional recursion\nfunction visit() {}\n');
47
+ expect(types).toHaveLength(0);
48
+ });
49
+ it('flags more than 7 directives in one file as excessive-ignores', async () => {
50
+ const lines = [];
51
+ for (let i = 0; i < 8; i++) {
52
+ lines.push(`// @graph-ignore-next-line graph:cycle -- reason ${String(i)}`, `function visit${String(i)}() {}`);
53
+ }
54
+ const types = await violationTypes('d.ts', lines.join('\n'));
55
+ expect(types).toContain('excessive-ignores');
56
+ });
57
+ });
58
+ //# sourceMappingURL=graph-ignore-hygiene.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph-ignore-hygiene.test.js","sourceRoot":"","sources":["../../../src/checks/quality/graph-ignore-hygiene.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE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1,16 @@
1
+ export * from './api/index.js';
2
+ export * from './code-structure/index.js';
3
+ export * from './dependency-version-consistency.js';
4
+ export * from './fitness-ignore-hygiene.js';
5
+ export * from './frontend/index.js';
6
+ export * from './graph-ignore-hygiene.js';
7
+ export * from './linting/index.js';
8
+ export * from './no-compatibility-layer-names.js';
9
+ export * from './no-deprecated-tags.js';
10
+ export * from './no-markdown-references.js';
11
+ export * from './no-raw-regex-on-code.js';
12
+ export * from './no-temporary-workarounds.js';
13
+ export * from './no-window-alert.js';
14
+ export * from './observability/index.js';
15
+ export * from './patterns/index.js';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/checks/quality/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,16 @@
1
+ export * from './api/index.js';
2
+ export * from './code-structure/index.js';
3
+ export * from './dependency-version-consistency.js';
4
+ export * from './fitness-ignore-hygiene.js';
5
+ export * from './frontend/index.js';
6
+ export * from './graph-ignore-hygiene.js';
7
+ export * from './linting/index.js';
8
+ export * from './no-compatibility-layer-names.js';
9
+ export * from './no-deprecated-tags.js';
10
+ export * from './no-markdown-references.js';
11
+ export * from './no-raw-regex-on-code.js';
12
+ export * from './no-temporary-workarounds.js';
13
+ export * from './no-window-alert.js';
14
+ export * from './observability/index.js';
15
+ export * from './patterns/index.js';
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/checks/quality/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @fileoverview ESLint Justifications check
3
+ */
4
+ /**
5
+ * Check: quality/eslint-justifications
6
+ *
7
+ * Ensures all ESLint suppressions have proper justifications.
8
+ * Missing justifications are errors; generic justifications are warnings.
9
+ *
10
+ */
11
+ export declare const eslintJustifications: import("@opensip-cli/fitness").Check;
12
+ //# sourceMappingURL=eslint-justifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint-justifications.d.ts","sourceRoot":"","sources":["../../../../src/checks/quality/linting/eslint-justifications.ts"],"names":[],"mappings":"AACA;;GAEG;AA6VH;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,sCA8C/B,CAAC"}
@@ -0,0 +1,328 @@
1
+ // @fitness-ignore-file file-length-limit -- Complex module with tightly coupled logic; refactoring would risk breaking changes
2
+ /**
3
+ * @fileoverview ESLint Justifications check
4
+ */
5
+ import { defineCheck } from '@opensip-cli/fitness';
6
+ // =============================================================================
7
+ // CONSTANTS
8
+ // =============================================================================
9
+ const ISSUE_TYPE_MISSING_JUSTIFICATION = 'missing-justification';
10
+ const ISSUE_TYPE_GENERIC_JUSTIFICATION = 'generic-justification';
11
+ const ISSUE_TYPE_MALFORMED = 'malformed';
12
+ // =============================================================================
13
+ // PRE-COMPILED REGEX PATTERNS
14
+ // =============================================================================
15
+ // Generic justification patterns - pre-compiled for safety
16
+ const GENERIC_TODO_PATTERN = /^todo$/i;
17
+ const GENERIC_FIX_PATTERN = /^fix\s?(?:this|later|me)?$/i;
18
+ const GENERIC_TEMPORARY_PATTERN = /^temporary$/i;
19
+ const GENERIC_TEMP_PATTERN = /^temp$/i;
20
+ const GENERIC_WIP_PATTERN = /^wip$/i;
21
+ const GENERIC_IGNORE_PATTERN = /^ignore$/i;
22
+ const GENERIC_SKIP_PATTERN = /^skip$/i;
23
+ const GENERIC_DISABLED_PATTERN = /^disabled?$/i;
24
+ const GENERIC_HACK_PATTERN = /^hack$/i;
25
+ const GENERIC_WORKAROUND_PATTERN = /^workaround$/i;
26
+ const GENERIC_NEEDED_PATTERN = /^needed$/i;
27
+ const GENERIC_REQUIRED_PATTERN = /^required$/i;
28
+ const GENERIC_NECESSARY_PATTERN = /^necessary$/i;
29
+ const GENERIC_LEGACY_PATTERN = /^legacy$/i;
30
+ const GENERIC_OLD_CODE_PATTERN = /^old\s?code$/i;
31
+ const GENERIC_QUICK_FIX_PATTERN = /^quick\s?fix$/i;
32
+ const GENERIC_HOTFIX_PATTERN = /^hotfix$/i;
33
+ const GENERIC_WILL_FIX_PATTERN = /^will\s?fix$/i;
34
+ const GENERIC_TO_BE_FIXED_PATTERN = /^to\s?be\s?fixed$/i;
35
+ const GENERIC_NOT_SURE_PATTERN = /^not\s?sure$/i;
36
+ const GENERIC_UNCLEAR_PATTERN = /^unclear$/i;
37
+ const GENERIC_JUSTIFICATIONS = [
38
+ GENERIC_TODO_PATTERN,
39
+ GENERIC_FIX_PATTERN,
40
+ GENERIC_TEMPORARY_PATTERN,
41
+ GENERIC_TEMP_PATTERN,
42
+ GENERIC_WIP_PATTERN,
43
+ GENERIC_IGNORE_PATTERN,
44
+ GENERIC_SKIP_PATTERN,
45
+ GENERIC_DISABLED_PATTERN,
46
+ GENERIC_HACK_PATTERN,
47
+ GENERIC_WORKAROUND_PATTERN,
48
+ GENERIC_NEEDED_PATTERN,
49
+ GENERIC_REQUIRED_PATTERN,
50
+ GENERIC_NECESSARY_PATTERN,
51
+ GENERIC_LEGACY_PATTERN,
52
+ GENERIC_OLD_CODE_PATTERN,
53
+ GENERIC_QUICK_FIX_PATTERN,
54
+ GENERIC_HOTFIX_PATTERN,
55
+ GENERIC_WILL_FIX_PATTERN,
56
+ GENERIC_TO_BE_FIXED_PATTERN,
57
+ GENERIC_NOT_SURE_PATTERN,
58
+ GENERIC_UNCLEAR_PATTERN,
59
+ ];
60
+ // ESLint suppression patterns - pre-compiled with bounded quantifiers to avoid ReDoS
61
+ const ESLINT_DISABLE_NEXT_LINE_PATTERN = /\/\/\s{0,5}eslint-disable-next-line\s{1,5}([^\n]{1,500})/;
62
+ const ESLINT_DISABLE_LINE_PATTERN = /\/\/\s{0,5}eslint-disable-line\s{1,5}([^\n]{1,500})/;
63
+ const ESLINT_DISABLE_INLINE_PATTERN = /\/\/\s{0,5}eslint-disable\s{1,5}([^\n]{1,500})/;
64
+ const ESLINT_DISABLE_BLOCK_PATTERN = /\/\*\s{0,5}eslint-disable(?:\s{1,5}([^*]{1,400}))?\s{0,5}\*\//;
65
+ // Rationale capture caps at MAX_JUSTIFICATION_LENGTH so the boundary
66
+ // the regex enforces matches the explicit length check at line 160.
67
+ // Previously the regex capped at 400 while the constant was 500 —
68
+ // rationales between 401 and 500 chars matched the disable pattern
69
+ // (which accepts up to 500) but failed the rationale regex, producing
70
+ // a misleading "Malformed ESLint suppression comment" error instead
71
+ // of the accurate "too long" message. Aligning both to 500 closes
72
+ // that gap.
73
+ const JUSTIFICATION_PATTERN = /^([\w/@-]{1,100}(?:\s{0,3},\s{0,3}[\w/@-]{1,100}){0,9})(?:\s{1,5}--\s{1,5}([^\n]{1,500}))?$/;
74
+ const MAX_JUSTIFICATION_LENGTH = 500;
75
+ // Track multi-line block disable/enable pairs
76
+ const BLOCK_DISABLE_START_PATTERN = /\/\*\s{0,5}eslint-disable(?:\s{1,5}([^*]{1,400}))?\s{0,5}$/;
77
+ const BLOCK_DISABLE_END_PATTERN = /^\s{0,10}\*\//;
78
+ const BLOCK_ENABLE_PATTERN = /\/\*\s{0,5}eslint-enable/;
79
+ // Other patterns
80
+ const COMMENTED_OUT_PATTERN = /^\s{0,20}\/\/\s{0,5}\/\//;
81
+ // =============================================================================
82
+ // ANALYSIS FUNCTIONS
83
+ // =============================================================================
84
+ /**
85
+ * Validates generic justification patterns
86
+ */
87
+ function isGenericJustification(justification) {
88
+ const trimmed = justification.trim();
89
+ return GENERIC_JUSTIFICATIONS.some((pattern) => pattern.test(trimmed));
90
+ }
91
+ /**
92
+ * Determine suppression type from matches
93
+ */
94
+ function getSuppressionType(hasNextLine, hasDisableLine) {
95
+ if (hasNextLine) {
96
+ return 'eslint-disable-next-line';
97
+ }
98
+ if (hasDisableLine) {
99
+ return 'eslint-disable-line';
100
+ }
101
+ return 'eslint-disable';
102
+ }
103
+ /**
104
+ * Check inline ESLint suppressions (disable-next-line, disable-line, disable)
105
+ */
106
+ function checkInlineSuppressions(line, lineNumber) {
107
+ const issues = [];
108
+ // Check for disable-next-line, disable-line, and standalone disable
109
+ const disableNextLineMatch = ESLINT_DISABLE_NEXT_LINE_PATTERN.exec(line);
110
+ const disableLineMatch = ESLINT_DISABLE_LINE_PATTERN.exec(line);
111
+ const disableMatch = ESLINT_DISABLE_INLINE_PATTERN.exec(line);
112
+ const match = disableNextLineMatch ?? disableLineMatch ?? disableMatch;
113
+ const suppressionType = getSuppressionType(disableNextLineMatch !== null, disableLineMatch !== null);
114
+ if (!match) {
115
+ return issues;
116
+ }
117
+ const afterRule = match[1];
118
+ if (!afterRule) {
119
+ return issues;
120
+ }
121
+ // Limit input length to prevent ReDoS
122
+ const trimmedAfterRule = afterRule.trim();
123
+ if (trimmedAfterRule.length > MAX_JUSTIFICATION_LENGTH) {
124
+ issues.push({
125
+ line: lineNumber,
126
+ type: ISSUE_TYPE_MALFORMED,
127
+ comment: line.trim(),
128
+ message: `ESLint justification too long (max ${MAX_JUSTIFICATION_LENGTH} characters)`,
129
+ });
130
+ return issues;
131
+ }
132
+ const justificationMatch = JUSTIFICATION_PATTERN.exec(trimmedAfterRule);
133
+ if (!justificationMatch?.[1]) {
134
+ issues.push({
135
+ line: lineNumber,
136
+ type: ISSUE_TYPE_MALFORMED,
137
+ comment: line.trim(),
138
+ message: 'Malformed ESLint suppression comment',
139
+ });
140
+ return issues;
141
+ }
142
+ const [, rule, justification] = justificationMatch;
143
+ if (!justification) {
144
+ issues.push({
145
+ line: lineNumber,
146
+ type: ISSUE_TYPE_MISSING_JUSTIFICATION,
147
+ rule,
148
+ comment: line.trim(),
149
+ message: `ESLint suppression for '${rule}' missing justification. Add: // ${suppressionType} ${rule} -- [specific reason why this rule doesn't apply]`,
150
+ });
151
+ }
152
+ else if (isGenericJustification(justification)) {
153
+ issues.push({
154
+ line: lineNumber,
155
+ type: ISSUE_TYPE_GENERIC_JUSTIFICATION,
156
+ rule,
157
+ comment: line.trim(),
158
+ message: `Generic justification for '${rule}': "${justification}". Replace with specific reason (e.g., "Third-party API returns untyped data" or "Validated by Zod schema above")`,
159
+ });
160
+ }
161
+ return issues;
162
+ }
163
+ /**
164
+ * Check single-line block ESLint suppressions
165
+ */
166
+ function checkBlockSuppressions(line, lineNumber) {
167
+ const blockDisableMatch = ESLINT_DISABLE_BLOCK_PATTERN.exec(line);
168
+ if (!blockDisableMatch) {
169
+ return null;
170
+ }
171
+ const rules = blockDisableMatch[1];
172
+ if (rules && !rules.includes('--')) {
173
+ return {
174
+ line: lineNumber,
175
+ type: ISSUE_TYPE_MISSING_JUSTIFICATION,
176
+ comment: line.trim(),
177
+ message: `Block-level ESLint disable missing justification. Add: /* eslint-disable ${rules} -- [specific reason] */`,
178
+ };
179
+ }
180
+ return null;
181
+ }
182
+ /* v8 ignore start -- block-state machine has many edge-case branches; covered indirectly via integration */
183
+ /**
184
+ * Process a line for suppressions
185
+ */
186
+ function processLineForSuppressions(line, lineNumber, state, issues) {
187
+ // Skip commented-out suppressions
188
+ if (COMMENTED_OUT_PATTERN.test(line)) {
189
+ return;
190
+ }
191
+ // Check for multi-line block start
192
+ const blockStartMatch = BLOCK_DISABLE_START_PATTERN.exec(line);
193
+ if (blockStartMatch && !state.inMultiLineBlock) {
194
+ state.inMultiLineBlock = true;
195
+ state.blockStartLine = lineNumber;
196
+ state.blockRules = blockStartMatch[1] ?? null;
197
+ return;
198
+ }
199
+ // Check for multi-line block end
200
+ if (state.inMultiLineBlock && BLOCK_DISABLE_END_PATTERN.test(line)) {
201
+ if (state.blockRules && !state.blockRules.includes('--')) {
202
+ issues.push({
203
+ line: state.blockStartLine,
204
+ type: ISSUE_TYPE_MISSING_JUSTIFICATION,
205
+ comment: `Multi-line eslint-disable block`,
206
+ message: `Multi-line ESLint disable block missing justification. Add: /* eslint-disable ${state.blockRules} -- [specific reason] */`,
207
+ });
208
+ }
209
+ state.inMultiLineBlock = false;
210
+ state.blockStartLine = 0;
211
+ state.blockRules = null;
212
+ return;
213
+ }
214
+ // Check for block enable (closes any open block)
215
+ if (BLOCK_ENABLE_PATTERN.test(line)) {
216
+ state.inMultiLineBlock = false;
217
+ state.blockStartLine = 0;
218
+ state.blockRules = null;
219
+ return;
220
+ }
221
+ // Check inline suppressions
222
+ const inlineIssues = checkInlineSuppressions(line, lineNumber);
223
+ issues.push(...inlineIssues);
224
+ // Check single-line block suppressions
225
+ const blockIssue = checkBlockSuppressions(line, lineNumber);
226
+ if (blockIssue) {
227
+ issues.push(blockIssue);
228
+ }
229
+ }
230
+ /* v8 ignore stop */
231
+ /**
232
+ * Validates ESLint suppressions in a file
233
+ */
234
+ function validateESLintSuppressions(content) {
235
+ const issues = [];
236
+ const lines = content.split('\n');
237
+ const state = {
238
+ inMultiLineBlock: false,
239
+ blockStartLine: 0,
240
+ blockRules: null,
241
+ };
242
+ for (const [i, line] of lines.entries()) {
243
+ if (!line)
244
+ continue;
245
+ processLineForSuppressions(line, i + 1, state, issues);
246
+ }
247
+ // If we ended with an open block, report it
248
+ if (state.inMultiLineBlock && state.blockRules && !state.blockRules.includes('--')) {
249
+ issues.push({
250
+ line: state.blockStartLine,
251
+ type: ISSUE_TYPE_MISSING_JUSTIFICATION,
252
+ comment: `Unclosed multi-line eslint-disable block`,
253
+ message: `Unclosed multi-line ESLint disable block missing justification`,
254
+ });
255
+ }
256
+ return issues;
257
+ }
258
+ // =============================================================================
259
+ // HELPERS
260
+ // =============================================================================
261
+ function getSuggestionForIssueType(issueType) {
262
+ switch (issueType) {
263
+ case ISSUE_TYPE_MISSING_JUSTIFICATION: {
264
+ return 'Add a justification after -- explaining why this rule is suppressed';
265
+ }
266
+ case ISSUE_TYPE_GENERIC_JUSTIFICATION: {
267
+ return 'Replace generic justification with a specific explanation of why this rule does not apply here';
268
+ }
269
+ default: {
270
+ return 'Fix the malformed eslint directive format: // eslint-disable-next-line rule-name -- reason';
271
+ }
272
+ }
273
+ }
274
+ function getSeverityForIssueType(issueType) {
275
+ return issueType === ISSUE_TYPE_GENERIC_JUSTIFICATION ? 'warning' : 'error';
276
+ }
277
+ // =============================================================================
278
+ // CHECK DEFINITION
279
+ // =============================================================================
280
+ /**
281
+ * Check: quality/eslint-justifications
282
+ *
283
+ * Ensures all ESLint suppressions have proper justifications.
284
+ * Missing justifications are errors; generic justifications are warnings.
285
+ *
286
+ */
287
+ export const eslintJustifications = defineCheck({
288
+ id: '92d8f5de-dc11-40eb-aaf4-e77159975825',
289
+ slug: 'eslint-justifications',
290
+ scope: { languages: ['typescript'], concerns: ['backend', 'frontend', 'cli'] },
291
+ contentFilter: 'raw',
292
+ confidence: 'medium',
293
+ description: 'Ensures all ESLint suppressions have proper justifications',
294
+ longDescription: `**Purpose:** Enforces that every \`eslint-disable\` directive includes a meaningful, specific justification explaining why the rule is suppressed.
295
+
296
+ **Detects:**
297
+ - Missing justifications on \`eslint-disable-next-line\`, \`eslint-disable-line\`, inline \`eslint-disable\`, and block \`/* eslint-disable */\` comments
298
+ - Generic justifications matching patterns like \`todo\`, \`fix later\`, \`temporary\`, \`hack\`, \`workaround\`, \`needed\`, \`legacy\`, etc. (21 patterns total)
299
+ - Malformed suppression comments and justifications exceeding 500 characters
300
+ - Multi-line block disable/enable pairs without justifications
301
+
302
+ **Why it matters:** Unjustified suppressions hide technical debt and make it impossible to determine whether a suppression is still necessary. Requiring specific reasons ensures suppressions are intentional and reviewable.
303
+
304
+ **Scope:** Analyzes each file individually. General best practice.`,
305
+ tags: ['compliance', 'documentation', 'quality'],
306
+ fileTypes: ['ts', 'tsx'],
307
+ analyze: (content, filePath) => {
308
+ const violations = [];
309
+ // Early exit optimization: skip files without any suppressions
310
+ if (!content.includes('eslint-disable')) {
311
+ return violations;
312
+ }
313
+ const issues = validateESLintSuppressions(content);
314
+ for (const issue of issues) {
315
+ violations.push({
316
+ filePath,
317
+ line: issue.line,
318
+ message: issue.message,
319
+ severity: getSeverityForIssueType(issue.type),
320
+ suggestion: getSuggestionForIssueType(issue.type),
321
+ type: issue.type,
322
+ match: issue.comment,
323
+ });
324
+ }
325
+ return violations;
326
+ },
327
+ });
328
+ //# sourceMappingURL=eslint-justifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint-justifications.js","sourceRoot":"","sources":["../../../../src/checks/quality/linting/eslint-justifications.ts"],"names":[],"mappings":"AAAA,+HAA+H;AAC/H;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAuB,MAAM,sBAAsB,CAAC;AAExE,gFAAgF;AAChF,YAAY;AACZ,gFAAgF;AAEhF,MAAM,gCAAgC,GAAG,uBAAgC,CAAC;AAC1E,MAAM,gCAAgC,GAAG,uBAAgC,CAAC;AAC1E,MAAM,oBAAoB,GAAG,WAAoB,CAAC;AAElD,gFAAgF;AAChF,8BAA8B;AAC9B,gFAAgF;AAEh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AAU,CAAC,IAAI,CAAC;gBACd,QAAQ;gBACR,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,QAAQ,EAAE,uBAAuB,CAAC,KAAK,CAAC,IAAI,CAAC;gBAC7C,UAAU,EAAE,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC;gBACjD,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,KAAK,EAAE,KAAK,CAAC,OAAO;aACrB,CAAC,CAAC;QACL,CAAC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './eslint-justifications.js';
2
+ export * from './semgrep-justifications.js';
3
+ export * from './typescript-directive-hygiene.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/checks/quality/linting/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './eslint-justifications.js';
2
+ export * from './semgrep-justifications.js';
3
+ export * from './typescript-directive-hygiene.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/checks/quality/linting/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @fileoverview Semgrep Justifications check
3
+ *
4
+ * Validates that all nosemgrep directives have proper justifications.
5
+ * Similar to eslint-justifications, this ensures suppression directives
6
+ * are documented with specific reasons.
7
+ */
8
+ /**
9
+ * Check: quality/semgrep-justifications
10
+ *
11
+ * Ensures all nosemgrep suppressions have proper justifications.
12
+ * Missing justifications are errors; generic justifications are warnings.
13
+ * Blanket suppressions (without rule IDs) are errors.
14
+ */
15
+ export declare const semgrepJustifications: import("@opensip-cli/fitness").Check;
16
+ //# sourceMappingURL=semgrep-justifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semgrep-justifications.d.ts","sourceRoot":"","sources":["../../../../src/checks/quality/linting/semgrep-justifications.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;AA8NH;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,sCA8ChC,CAAC"}