loadwise 0.7.0 → 0.9.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 (643) hide show
  1. package/PERFORMANCE.md +17 -0
  2. package/README.md +238 -705
  3. package/agent/hooks/check-edited-file.mjs +682 -0
  4. package/dist/bin/github-action.js +143 -18
  5. package/dist/bin/loadwise.js +27 -52
  6. package/dist/lib/accessibility/analyze.js +5 -3
  7. package/dist/lib/accessibility/angular-inline.js +9 -11
  8. package/dist/lib/accessibility/angular-literal.js +39 -0
  9. package/dist/lib/accessibility/astro-template.js +111 -0
  10. package/dist/lib/accessibility/autofocus.js +94 -0
  11. package/dist/lib/accessibility/document-reference-rules.js +133 -0
  12. package/dist/lib/accessibility/form-context.js +41 -0
  13. package/dist/lib/accessibility/frame-head.js +92 -0
  14. package/dist/lib/accessibility/frame-viewport.js +149 -0
  15. package/dist/lib/accessibility/frontend-detect.js +18 -8
  16. package/dist/lib/accessibility/heading-order.js +59 -0
  17. package/dist/lib/accessibility/interaction-semantics.js +90 -0
  18. package/dist/lib/accessibility/jinja-template.js +150 -0
  19. package/dist/lib/accessibility/jsx-elements.js +147 -12
  20. package/dist/lib/accessibility/language-tags.js +18 -0
  21. package/dist/lib/accessibility/markup-files.js +49 -17
  22. package/dist/lib/accessibility/markup.js +4 -1
  23. package/dist/lib/accessibility/media-rules.js +81 -0
  24. package/dist/lib/accessibility/native-interactive.js +107 -0
  25. package/dist/lib/accessibility/rule-ids.js +33 -0
  26. package/dist/lib/accessibility/rule-utilities.js +92 -0
  27. package/dist/lib/accessibility/rules.js +176 -154
  28. package/dist/lib/accessibility/site-fixes/buttons.js +9 -12
  29. package/dist/lib/accessibility/site-fixes/email-autocomplete.js +103 -0
  30. package/dist/lib/accessibility/site-fixes/html-language.js +48 -0
  31. package/dist/lib/accessibility/site-fixes/media-autoplay.js +87 -0
  32. package/dist/lib/accessibility/site-fixes/positive-tabindex.js +102 -0
  33. package/dist/lib/accessibility/site-fixes/source-position.js +11 -0
  34. package/dist/lib/accessibility/site-fixes/viewport.js +107 -0
  35. package/dist/lib/accessibility/table-headers.js +70 -0
  36. package/dist/lib/accessibility/template-attributes.js +18 -5
  37. package/dist/lib/accessibility/template-binding-scope.js +122 -0
  38. package/dist/lib/accessibility/template-elements.js +278 -111
  39. package/dist/lib/accessibility/template-file.js +145 -41
  40. package/dist/lib/accessibility/template-tag-tables.js +86 -0
  41. package/dist/lib/accessibility/usage.js +1 -1
  42. package/dist/lib/editor/accessibility-examples.js +11 -1
  43. package/dist/lib/editor/actions.js +57 -12
  44. package/dist/lib/editor/apply-fix.js +99 -6
  45. package/dist/lib/editor/configured-setup.js +14 -17
  46. package/dist/lib/editor/diagnostics.js +215 -43
  47. package/dist/lib/editor/dismissals.js +104 -34
  48. package/dist/lib/editor/doctor.js +167 -0
  49. package/dist/lib/editor/editor-document.js +22 -3
  50. package/dist/lib/editor/editor-launcher.js +67 -28
  51. package/dist/lib/editor/fix-edits.js +87 -8
  52. package/dist/lib/editor/jetbrains-setup.js +2 -1
  53. package/dist/lib/editor/language-server.js +279 -67
  54. package/dist/lib/editor/native-setup.js +10 -4
  55. package/dist/lib/editor/perf-watch.js +12 -8
  56. package/dist/lib/editor/performance-examples.js +31 -0
  57. package/dist/lib/editor/polyglot-selection.js +193 -0
  58. package/dist/lib/editor/project-policy.js +146 -0
  59. package/dist/lib/editor/project-watches.js +86 -0
  60. package/dist/lib/editor/release-vsix.js +23 -1
  61. package/dist/lib/editor/reliability-examples.js +51 -0
  62. package/dist/lib/editor/scan-session.js +237 -67
  63. package/dist/lib/editor/security-examples.js +24 -14
  64. package/dist/lib/editor/server-commands.js +60 -20
  65. package/dist/lib/editor/setup-server.js +1 -1
  66. package/dist/lib/editor/setup-vim.js +6 -4
  67. package/dist/lib/editor/setup.js +7 -12
  68. package/dist/lib/editor/standalone-performance-examples.js +3 -0
  69. package/dist/lib/editor/workspace-files.js +93 -15
  70. package/dist/lib/editor/workspace-paths.js +69 -7
  71. package/dist/lib/editor/zed-settings.js +118 -0
  72. package/dist/lib/editor/zed-setup.js +88 -0
  73. package/dist/lib/maintainability/analysis/analyze-source.js +7 -4
  74. package/dist/lib/maintainability/analysis/source-exclusions.js +2 -1
  75. package/dist/lib/maintainability/analysis/source-facts.js +2 -2
  76. package/dist/lib/maintainability/architecture/architecture.js +4 -4
  77. package/dist/lib/maintainability/architecture/graph.js +2 -1
  78. package/dist/lib/maintainability/architecture/layout.js +2 -1
  79. package/dist/lib/maintainability/cli/apply-fix.js +32 -7
  80. package/dist/lib/maintainability/cli/changed-lines.js +14 -102
  81. package/dist/lib/maintainability/cli/finding-ids.js +3 -6
  82. package/dist/lib/maintainability/cli/fix-cli.js +1 -9
  83. package/dist/lib/maintainability/cli/git-inventory.js +5 -6
  84. package/dist/lib/maintainability/cli/inputs.js +21 -12
  85. package/dist/lib/maintainability/cli/scan-arguments.js +33 -0
  86. package/dist/lib/maintainability/cli/site-fix.js +28 -13
  87. package/dist/lib/maintainability/cli.js +29 -35
  88. package/dist/lib/maintainability/entry-points/entry-points.js +52 -64
  89. package/dist/lib/maintainability/entry-points/html-entry-points.js +5 -1
  90. package/dist/lib/maintainability/examples.js +12 -0
  91. package/dist/lib/maintainability/polyglot-duplicates.js +1 -0
  92. package/dist/lib/maintainability/polyglot.js +337 -12
  93. package/dist/lib/maintainability/project.js +4 -4
  94. package/dist/lib/maintainability/quality/console-tooling.js +114 -0
  95. package/dist/lib/maintainability/quality/declarative-imports.js +18 -0
  96. package/dist/lib/maintainability/quality/deprecated-apis.js +227 -40
  97. package/dist/lib/maintainability/quality/duplicates.js +5 -11
  98. package/dist/lib/maintainability/quality/functions.js +9 -6
  99. package/dist/lib/maintainability/quality/generic-assertion-target.js +75 -0
  100. package/dist/lib/maintainability/quality/limits.js +23 -0
  101. package/dist/lib/maintainability/quality/size-limits.js +10 -3
  102. package/dist/lib/maintainability/quality/stray-console.js +93 -8
  103. package/dist/lib/maintainability/quality/tsconfig-strict.js +127 -6
  104. package/dist/lib/maintainability/quality/type-escape-hatches.js +411 -0
  105. package/dist/lib/maintainability/quality/type-safety-hygiene.js +132 -42
  106. package/dist/lib/maintainability/quality/unowned-source.js +15 -0
  107. package/dist/lib/maintainability/rule-ids.js +9 -0
  108. package/dist/lib/maintainability/scan-changed.js +10 -2
  109. package/dist/lib/maintainability/scan-worker.js +9 -7
  110. package/dist/lib/maintainability/scan.js +36 -10
  111. package/dist/lib/maintainability/site-fixes/duplicate-edits.js +3 -2
  112. package/dist/lib/maintainability/site-fixes/duplicate-methods.js +7 -2
  113. package/dist/lib/maintainability/site-fixes/duplicates.js +3 -2
  114. package/dist/lib/maintainability/site-fixes/focused-test.js +230 -0
  115. package/dist/lib/maintainability/site-fixes/helpers.js +2 -6
  116. package/dist/lib/maintainability/site-fixes/if-rewrites.js +1 -7
  117. package/dist/lib/maintainability/site-fixes/large-module.js +2 -1
  118. package/dist/lib/maintainability/unused/ancestor-aliases.js +2 -2
  119. package/dist/lib/maintainability/unused/module-usage-dynamic.js +2 -1
  120. package/dist/lib/maintainability/unused/module-usage-named-exports.js +125 -0
  121. package/dist/lib/maintainability/unused/module-usage.js +51 -24
  122. package/dist/lib/maintainability/unused/unused-modules.js +40 -11
  123. package/dist/lib/performance/analysis/call-syntax.js +2 -1
  124. package/dist/lib/performance/analysis/function-kinds.js +1 -5
  125. package/dist/lib/performance/analysis/missing-packages.js +10 -7
  126. package/dist/lib/performance/analysis/package-types.js +10 -2
  127. package/dist/lib/performance/analysis/schema-tooling.js +157 -8
  128. package/dist/lib/performance/analysis/source-inputs.js +23 -13
  129. package/dist/lib/performance/analysis/source-options.js +7 -6
  130. package/dist/lib/performance/analysis/unscanned-javascript.js +6 -5
  131. package/dist/lib/performance/analyze.js +35 -6
  132. package/dist/lib/performance/async/async-errors.js +162 -14
  133. package/dist/lib/performance/async/await-before-early-exit.js +1 -6
  134. package/dist/lib/performance/async/floating-promises.js +2 -2
  135. package/dist/lib/performance/async/promise-return-escapes-catch.js +35 -2
  136. package/dist/lib/performance/async/stream-errors.js +1 -3
  137. package/dist/lib/performance/cli/changed-lines.js +14 -111
  138. package/dist/lib/performance/cli/cli-arguments.js +11 -9
  139. package/dist/lib/performance/cli/cli-markup.js +42 -0
  140. package/dist/lib/performance/cli/cli-output.js +1 -0
  141. package/dist/lib/performance/cli/cli-policy.js +150 -16
  142. package/dist/lib/performance/cli/cli-scan.js +155 -106
  143. package/dist/lib/performance/cli/finding-ids.js +7 -7
  144. package/dist/lib/performance/cli/fix-cli.js +83 -34
  145. package/dist/lib/performance/cli/prisma-schema-findings.js +23 -0
  146. package/dist/lib/performance/cli/watch-security.js +33 -0
  147. package/dist/lib/performance/cli/watch.js +17 -9
  148. package/dist/lib/performance/cli.js +15 -9
  149. package/dist/lib/performance/collections/array-drains.js +354 -0
  150. package/dist/lib/performance/collections/collection-bindings.js +1 -2
  151. package/dist/lib/performance/collections/collection-bounds.js +3 -2
  152. package/dist/lib/performance/collections/collection-copy.js +51 -1
  153. package/dist/lib/performance/collections/collection-lookups.js +47 -3
  154. package/dist/lib/performance/collections/collection-reduce.js +0 -4
  155. package/dist/lib/performance/collections/collections.js +6 -2
  156. package/dist/lib/performance/collections/json-clone.js +137 -17
  157. package/dist/lib/performance/collections/memory-growth.js +55 -12
  158. package/dist/lib/performance/collections/regex-allocation.js +156 -0
  159. package/dist/lib/performance/collections/repeated.js +2 -8
  160. package/dist/lib/performance/collections/sort-extreme.js +18 -1
  161. package/dist/lib/performance/collections/workbook-decodes.js +3 -2
  162. package/dist/lib/performance/contracts/cli.js +329 -21
  163. package/dist/lib/performance/contracts/git-files.js +57 -5
  164. package/dist/lib/performance/contracts/openapi-schema.js +187 -0
  165. package/dist/lib/performance/contracts/openapi-sources.js +260 -0
  166. package/dist/lib/performance/contracts/openapi.js +175 -227
  167. package/dist/lib/performance/contracts/protobuf.js +301 -0
  168. package/dist/lib/performance/contracts/trpc-moves.js +46 -0
  169. package/dist/lib/performance/contracts/trpc.js +477 -0
  170. package/dist/lib/performance/datastores/pg-integrity.js +63 -23
  171. package/dist/lib/performance/datastores/pg-session-release.js +114 -0
  172. package/dist/lib/performance/datastores/pg-session-sql.js +144 -0
  173. package/dist/lib/performance/datastores/pooling.js +58 -3
  174. package/dist/lib/performance/datastores/redis-keys.js +4 -3
  175. package/dist/lib/performance/datastores/redis.js +102 -19
  176. package/dist/lib/performance/datastores/repeated-reads.js +104 -0
  177. package/dist/lib/performance/datastores/search-clients.js +9 -0
  178. package/dist/lib/performance/datastores/session-store.js +166 -6
  179. package/dist/lib/performance/datastores/supabase.js +73 -0
  180. package/dist/lib/performance/db/checks.js +19 -8
  181. package/dist/lib/performance/db/cli-mysql.js +12 -2
  182. package/dist/lib/performance/db/cli.js +38 -5
  183. package/dist/lib/performance/db/drivers.js +20 -4
  184. package/dist/lib/performance/db/gateway.js +3 -1
  185. package/dist/lib/performance/db/measure.js +1 -1
  186. package/dist/lib/performance/db/mysql-catalog.js +1 -1
  187. package/dist/lib/performance/db/plan-estimates.js +50 -11
  188. package/dist/lib/performance/db/redact.js +1 -3
  189. package/dist/lib/performance/db/snapshot.js +1 -1
  190. package/dist/lib/performance/db/sqlite-plan.js +95 -0
  191. package/dist/lib/performance/engine/compiler.js +3 -2
  192. package/dist/lib/performance/engine/native-checker.js +85 -10
  193. package/dist/lib/performance/engine/native-syntax.js +17 -0
  194. package/dist/lib/performance/engine/native-workspaces.js +36 -8
  195. package/dist/lib/performance/engine/native.js +47 -21
  196. package/dist/lib/performance/engine/review-config-inputs.js +57 -0
  197. package/dist/lib/performance/evidence/plans.js +21 -21
  198. package/dist/lib/performance/evidence/trace-formats.js +182 -0
  199. package/dist/lib/performance/evidence/traces.js +27 -7
  200. package/dist/lib/performance/frontend/angular-bootstrap.js +309 -0
  201. package/dist/lib/performance/frontend/angular-teardown.js +96 -0
  202. package/dist/lib/performance/frontend/barrel-subpaths.js +204 -0
  203. package/dist/lib/performance/frontend/effect-cleanup.js +174 -0
  204. package/dist/lib/performance/frontend/frontend-dom-perf.js +25 -9
  205. package/dist/lib/performance/frontend/frontend-helpers.js +1 -9
  206. package/dist/lib/performance/frontend/frontend-perf.js +76 -62
  207. package/dist/lib/performance/frontend/frontend-render-perf.js +10 -10
  208. package/dist/lib/performance/frontend/layout-binary-probe.js +186 -0
  209. package/dist/lib/performance/frontend/next-fetch-waterfall.js +88 -0
  210. package/dist/lib/performance/frontend/template-tracking.js +131 -0
  211. package/dist/lib/performance/index-rules/index-rules-table.js +3 -3
  212. package/dist/lib/performance/index-rules/redundant-indexes.js +6 -13
  213. package/dist/lib/performance/migrations/cli.js +65 -14
  214. package/dist/lib/performance/migrations/discover.js +63 -32
  215. package/dist/lib/performance/migrations/enforce.js +5 -12
  216. package/dist/lib/performance/migrations/extract-code-sql.js +19 -4
  217. package/dist/lib/performance/migrations/extract-code.js +14 -5
  218. package/dist/lib/performance/migrations/extract-sql.js +126 -41
  219. package/dist/lib/performance/migrations/extract-sqlite.js +302 -0
  220. package/dist/lib/performance/migrations/operations.js +175 -18
  221. package/dist/lib/performance/migrations/postgres-lock-timeout.js +52 -0
  222. package/dist/lib/performance/migrations/postgres-registry.js +127 -26
  223. package/dist/lib/performance/migrations/postgres-settings.js +78 -0
  224. package/dist/lib/performance/migrations/postgres-table-history.js +147 -0
  225. package/dist/lib/performance/migrations/rules-postgres-add-column.js +3 -3
  226. package/dist/lib/performance/migrations/rules-postgres-shared.js +12 -5
  227. package/dist/lib/performance/migrations/rules-postgres.js +155 -52
  228. package/dist/lib/performance/migrations/rules-sqlite.js +118 -0
  229. package/dist/lib/performance/migrations/sqlserver-creation.js +131 -0
  230. package/dist/lib/performance/migrations/sqlserver.js +81 -0
  231. package/dist/lib/performance/models/client-imports.js +286 -0
  232. package/dist/lib/performance/models/index.js +46 -8
  233. package/dist/lib/performance/orm/cartesian-includes.js +49 -22
  234. package/dist/lib/performance/orm/drizzle.js +86 -27
  235. package/dist/lib/performance/orm/knex-loop-operations.js +96 -0
  236. package/dist/lib/performance/orm/offset-pagination.js +6 -4
  237. package/dist/lib/performance/orm/orm-owners.js +3 -5
  238. package/dist/lib/performance/orm/orm-queries.js +50 -152
  239. package/dist/lib/performance/orm/orm-result-uses.js +116 -0
  240. package/dist/lib/performance/orm/prisma-aggregates.js +69 -18
  241. package/dist/lib/performance/orm/prisma-integrity.js +24 -3
  242. package/dist/lib/performance/orm/prisma.js +31 -8
  243. package/dist/lib/performance/orm/typeorm-batch-filter.js +43 -0
  244. package/dist/lib/performance/orm/typeorm-projection.js +2 -2
  245. package/dist/lib/performance/orm/typeorm-transaction-loops.js +3 -4
  246. package/dist/lib/performance/orm/typeorm-updates.js +1 -3
  247. package/dist/lib/performance/orm/unbounded-list-chain.js +29 -0
  248. package/dist/lib/performance/orm/unbounded-list-page-size.js +179 -0
  249. package/dist/lib/performance/orm/unbounded-list-queries.js +81 -159
  250. package/dist/lib/performance/polyglot.js +261 -52
  251. package/dist/lib/performance/probe-caches.js +42 -0
  252. package/dist/lib/performance/program-batches.js +138 -0
  253. package/dist/lib/performance/projects.js +86 -90
  254. package/dist/lib/performance/query-loops/guard-queries.js +2 -1
  255. package/dist/lib/performance/query-loops/parallel-reads-policy.js +1 -3
  256. package/dist/lib/performance/query-loops/query-loop-batch.js +81 -7
  257. package/dist/lib/performance/query-loops/query-loop-bounds.js +1 -13
  258. package/dist/lib/performance/query-loops/query-policy.js +19 -20
  259. package/dist/lib/performance/query-loops/query-results.js +1 -6
  260. package/dist/lib/performance/query-loops/query-write-context.js +89 -0
  261. package/dist/lib/performance/query-loops/sequential-loops.js +7 -24
  262. package/dist/lib/performance/query-loops/service-call-resolution.js +17 -2
  263. package/dist/lib/performance/query-loops/service-loop-source.js +124 -0
  264. package/dist/lib/performance/query-loops/service-loops.js +48 -17
  265. package/dist/lib/performance/query-loops/throw-on-miss-loops.js +141 -0
  266. package/dist/lib/performance/request/backend-mastery.js +160 -63
  267. package/dist/lib/performance/request/fixed-emitter-loop.js +98 -0
  268. package/dist/lib/performance/request/fresh-mapped-elements.js +137 -0
  269. package/dist/lib/performance/request/graphql-list-lookups.js +258 -0
  270. package/dist/lib/performance/request/http-options-writes.js +2 -8
  271. package/dist/lib/performance/request/http-timeouts.js +3 -2
  272. package/dist/lib/performance/request/json-stringify-output.js +139 -0
  273. package/dist/lib/performance/request/llm-max-tokens.js +27 -8
  274. package/dist/lib/performance/request/mongoose-lean.js +190 -20
  275. package/dist/lib/performance/request/node-event-listener-leak.js +190 -35
  276. package/dist/lib/performance/request/node-fs-context.js +6 -8
  277. package/dist/lib/performance/request/node-fs.js +4 -6
  278. package/dist/lib/performance/request/password-hashing.js +4 -3
  279. package/dist/lib/performance/request/phase5-ast.js +3 -9
  280. package/dist/lib/performance/request/phase5-rules.js +124 -115
  281. package/dist/lib/performance/request/pure-js-hashing.js +2 -1
  282. package/dist/lib/performance/request/request-handlers.js +1 -3
  283. package/dist/lib/performance/request/request-inputs.js +121 -26
  284. package/dist/lib/performance/request/sql-select-star.js +150 -0
  285. package/dist/lib/performance/request/unbounded-promise-all.js +186 -32
  286. package/dist/lib/performance/request/upload-limits.js +5 -1
  287. package/dist/lib/performance/rule-ids.js +47 -4
  288. package/dist/lib/performance/schema/context.js +7 -16
  289. package/dist/lib/performance/schema/model.js +1 -9
  290. package/dist/lib/performance/schema/prisma-owners.js +15 -1
  291. package/dist/lib/performance/schema/prisma-schema.js +5 -6
  292. package/dist/lib/performance/schema/project-indexes-events.js +8 -2
  293. package/dist/lib/performance/schema/project-indexes.js +4 -2
  294. package/dist/lib/performance/schema/query-site-support.js +1 -1
  295. package/dist/lib/performance/schema/sequelize-schema.js +1 -3
  296. package/dist/lib/performance/schema/ts-helpers.js +3 -7
  297. package/dist/lib/performance/shared-libs.js +48 -0
  298. package/dist/lib/performance/site-fix.js +36 -11
  299. package/dist/lib/performance/site-fixes/backend-mastery-fixes.js +298 -16
  300. package/dist/lib/performance/site-fixes/collection-copy.js +2 -1
  301. package/dist/lib/performance/site-fixes/collection-existence.js +2 -1
  302. package/dist/lib/performance/site-fixes/collection-find.js +2 -1
  303. package/dist/lib/performance/site-fixes/collection-helpers.js +0 -6
  304. package/dist/lib/performance/site-fixes/collection-lookups.js +2 -1
  305. package/dist/lib/performance/site-fixes/database.js +7 -16
  306. package/dist/lib/performance/site-fixes/drizzle-index.js +2 -9
  307. package/dist/lib/performance/site-fixes/frontend-fixes.js +397 -25
  308. package/dist/lib/performance/site-fixes/helpers.js +19 -18
  309. package/dist/lib/performance/site-fixes/last-insert-id.js +2 -1
  310. package/dist/lib/performance/site-fixes/llm-max-tokens.js +56 -0
  311. package/dist/lib/performance/site-fixes/migration-column-rules.js +11 -7
  312. package/dist/lib/performance/site-fixes/migration-context.js +8 -1
  313. package/dist/lib/performance/site-fixes/migration-lock-rules.js +72 -33
  314. package/dist/lib/performance/site-fixes/migrations.js +4 -0
  315. package/dist/lib/performance/site-fixes/prisma-aggregates.js +29 -9
  316. package/dist/lib/performance/site-fixes/pure-js-hashing.js +2 -2
  317. package/dist/lib/performance/site-fixes/query-shapes.js +1 -4
  318. package/dist/lib/performance/site-fixes/service-loop-ast.js +1 -9
  319. package/dist/lib/performance/site-fixes/small-rewrites.js +194 -10
  320. package/dist/lib/performance/site-fixes/sync-calls.js +14 -12
  321. package/dist/lib/performance/site-fixes/template-tracking-fixes.js +82 -0
  322. package/dist/lib/performance/site-fixes/upload-limits.js +13 -7
  323. package/dist/lib/performance/site-fixes/writes.js +1 -6
  324. package/dist/lib/performance/sql/local-statements.js +108 -0
  325. package/dist/lib/performance/sql/mysql-tokens.js +39 -16
  326. package/dist/lib/performance/sql/pg-parser.js +3 -5
  327. package/dist/lib/performance/sql/sqlserver-control.js +43 -0
  328. package/dist/lib/reliability/analyze.js +48 -5
  329. package/dist/lib/reliability/boundary-access.js +146 -82
  330. package/dist/lib/reliability/callback-completion.js +10 -2
  331. package/dist/lib/reliability/child-process.js +2 -2
  332. package/dist/lib/reliability/crlf-line-split.js +124 -73
  333. package/dist/lib/reliability/crlf-references.js +78 -0
  334. package/dist/lib/reliability/default-numeric-sort.js +25 -0
  335. package/dist/lib/reliability/error-cause-plan.js +29 -0
  336. package/dist/lib/reliability/error-values.js +68 -27
  337. package/dist/lib/reliability/json-cast.js +368 -0
  338. package/dist/lib/reliability/key-test-callee.js +50 -0
  339. package/dist/lib/reliability/lossy-text-rewrite.js +94 -0
  340. package/dist/lib/reliability/manifest-boundary.js +466 -0
  341. package/dist/lib/reliability/manifest-snapshot.js +40 -0
  342. package/dist/lib/reliability/parse-failure-flow.js +5 -2
  343. package/dist/lib/reliability/parse-failure-paths.js +39 -8
  344. package/dist/lib/reliability/parse-failure-reset.js +5 -17
  345. package/dist/lib/reliability/pool-timeout.js +31 -7
  346. package/dist/lib/reliability/promise-usage.js +281 -0
  347. package/dist/lib/reliability/react-bugs.js +19 -4
  348. package/dist/lib/reliability/react-state-order.js +2 -2
  349. package/dist/lib/reliability/react-state-paths.js +2 -2
  350. package/dist/lib/reliability/react-state-setter.js +5 -11
  351. package/dist/lib/reliability/react-state-walker.js +3 -3
  352. package/dist/lib/reliability/required-member.js +19 -0
  353. package/dist/lib/reliability/resource-leak-intervals.js +255 -0
  354. package/dist/lib/reliability/resource-leaks.js +211 -200
  355. package/dist/lib/reliability/rule-ids.js +80 -2
  356. package/dist/lib/reliability/same-file-io.js +135 -0
  357. package/dist/lib/reliability/short-write.js +220 -0
  358. package/dist/lib/reliability/site-fixes/crlf-line-split.js +71 -0
  359. package/dist/lib/reliability/site-fixes/error-values.js +40 -0
  360. package/dist/lib/reliability/site-fixes/pool-timeout.js +51 -0
  361. package/dist/lib/reliability/site-fixes/resource-leaks.js +16 -1
  362. package/dist/lib/reliability/source-helpers.js +18 -8
  363. package/dist/lib/reliability/standalone-sources.js +8 -6
  364. package/dist/lib/reliability/suspicious-logic.js +6 -8
  365. package/dist/lib/reliability/swallowed-errors.js +110 -28
  366. package/dist/lib/reliability/switch-exhaustive.js +195 -5
  367. package/dist/lib/reliability/test-cleanup-after-await.js +94 -20
  368. package/dist/lib/reliability/throw-string-plan.js +121 -0
  369. package/dist/lib/reliability/uncaught-exception.js +2 -7
  370. package/dist/lib/reliability/usage.js +1 -1
  371. package/dist/lib/reliability/walk.js +3 -2
  372. package/dist/lib/reliability/working-directory.js +101 -0
  373. package/dist/lib/security/analyze.js +2 -0
  374. package/dist/lib/security/auth-crypto/hashing.js +45 -12
  375. package/dist/lib/security/auth-crypto/index.js +6 -1
  376. package/dist/lib/security/auth-crypto/jwt-decode-helpers.js +163 -0
  377. package/dist/lib/security/auth-crypto/jwt.js +58 -27
  378. package/dist/lib/security/auth-crypto/plaintext-password.js +2 -1
  379. package/dist/lib/security/auth-crypto/random.js +2 -1
  380. package/dist/lib/security/auth-crypto/rate-limits.js +79 -8
  381. package/dist/lib/security/auth-crypto/rule-ids.js +2 -0
  382. package/dist/lib/security/auth-crypto/secrets.js +54 -3
  383. package/dist/lib/security/auth-crypto/shared.js +4 -5
  384. package/dist/lib/security/auth-crypto/signature-verification.js +29 -0
  385. package/dist/lib/security/auth-crypto/signing-algorithm.js +79 -0
  386. package/dist/lib/security/auth-crypto/transport-and-ciphers.js +128 -4
  387. package/dist/lib/security/auth-crypto/weak-hash.js +183 -0
  388. package/dist/lib/security/bindings.js +41 -9
  389. package/dist/lib/security/cli.js +87 -26
  390. package/dist/lib/security/cookie-credentials.js +115 -0
  391. package/dist/lib/security/cookie-csrf.js +550 -0
  392. package/dist/lib/security/deps/advisory.js +50 -109
  393. package/dist/lib/security/deps/cargo-lock.js +78 -0
  394. package/dist/lib/security/deps/cli.js +4 -4
  395. package/dist/lib/security/deps/cvss-score.js +14 -0
  396. package/dist/lib/security/deps/fixed-version.js +97 -0
  397. package/dist/lib/security/deps/lockfiles.js +335 -86
  398. package/dist/lib/security/deps/osv.js +200 -61
  399. package/dist/lib/security/deps/scan.js +121 -26
  400. package/dist/lib/security/deps/yarn-lock.js +158 -0
  401. package/dist/lib/security/examples/{auth-crypto.cjs → auth-crypto.js} +11 -5
  402. package/dist/lib/security/examples/{deps.cjs → deps.js} +1 -3
  403. package/dist/lib/security/examples/{exposure.cjs → exposure.js} +17 -3
  404. package/dist/lib/security/examples/{files.cjs → files.js} +9 -3
  405. package/dist/lib/security/examples/{injection.cjs → injection.js} +17 -3
  406. package/dist/lib/security/examples/{moved.cjs → moved.js} +1 -3
  407. package/dist/lib/security/examples/{request-forgery.cjs → request-forgery.js} +1 -3
  408. package/dist/lib/security/exposure/backend-security-mastery.js +2 -1
  409. package/dist/lib/security/exposure/client-env.js +2 -1
  410. package/dist/lib/security/exposure/content-disposition.js +71 -0
  411. package/dist/lib/security/exposure/cookies.js +217 -3
  412. package/dist/lib/security/exposure/cors-origin-regex.js +2 -3
  413. package/dist/lib/security/exposure/cors.js +63 -4
  414. package/dist/lib/security/exposure/frontend-security.js +28 -74
  415. package/dist/lib/security/exposure/index.js +9 -0
  416. package/dist/lib/security/exposure/js-yaml.js +203 -0
  417. package/dist/lib/security/exposure/jsx-url.js +18 -33
  418. package/dist/lib/security/exposure/logging.js +49 -10
  419. package/dist/lib/security/exposure/message-effects.js +266 -0
  420. package/dist/lib/security/exposure/package-manifest.js +2 -2
  421. package/dist/lib/security/exposure/prototype-pollution.js +152 -57
  422. package/dist/lib/security/exposure/react-html.js +26 -0
  423. package/dist/lib/security/exposure/reflected-xss.js +81 -17
  424. package/dist/lib/security/exposure/response-content-type.js +181 -0
  425. package/dist/lib/security/exposure/rule-ids.js +4 -0
  426. package/dist/lib/security/exposure/trust-boundary.js +142 -0
  427. package/dist/lib/security/exposure/url-secrets.js +38 -2
  428. package/dist/lib/security/exposure/webhook-verification.js +231 -0
  429. package/dist/lib/security/express-registration.js +45 -0
  430. package/dist/lib/security/express-router-factories.js +118 -0
  431. package/dist/lib/security/files/component-markup.js +66 -0
  432. package/dist/lib/security/files/compose.js +128 -2
  433. package/dist/lib/security/files/dockerfile.js +62 -4
  434. package/dist/lib/security/files/index.js +122 -28
  435. package/dist/lib/security/files/kubernetes.js +136 -0
  436. package/dist/lib/security/files/project-files.js +98 -31
  437. package/dist/lib/security/files/rule-ids.js +2 -0
  438. package/dist/lib/security/files/secrets.js +9 -5
  439. package/dist/lib/security/injection/code.js +33 -5
  440. package/dist/lib/security/injection/command.js +97 -22
  441. package/dist/lib/security/injection/escape-preserving.js +219 -0
  442. package/dist/lib/security/injection/escape-replace.js +174 -2
  443. package/dist/lib/security/injection/index.js +7 -1
  444. package/dist/lib/security/injection/ldap.js +86 -0
  445. package/dist/lib/security/injection/nosql.js +29 -5
  446. package/dist/lib/security/injection/redos.js +26 -5
  447. package/dist/lib/security/injection/rule-ids.js +4 -0
  448. package/dist/lib/security/injection/shared.js +5 -1
  449. package/dist/lib/security/injection/shell-output-guard.js +97 -0
  450. package/dist/lib/security/injection/sql.js +79 -13
  451. package/dist/lib/security/injection/xpath.js +35 -0
  452. package/dist/lib/security/lexical-declaration.js +113 -0
  453. package/dist/lib/security/pg-dynamic-query.js +28 -1
  454. package/dist/lib/security/pg-identifier-guards.js +164 -8
  455. package/dist/lib/security/phase5-rules.js +27 -135
  456. package/dist/lib/security/polyglot.js +35 -3
  457. package/dist/lib/security/provider-credentials.js +29 -0
  458. package/dist/lib/security/redirect-settings.js +223 -0
  459. package/dist/lib/security/request-forgery/contained-helper.js +75 -0
  460. package/dist/lib/security/request-forgery/open-redirect-query.js +2 -1
  461. package/dist/lib/security/request-forgery/open-redirect.js +43 -7
  462. package/dist/lib/security/request-forgery/parsed-host-guard.js +213 -0
  463. package/dist/lib/security/request-forgery/path-traversal.js +120 -7
  464. package/dist/lib/security/request-forgery/shared.js +187 -33
  465. package/dist/lib/security/request-forgery/ssrf.js +319 -13
  466. package/dist/lib/security/rule-descriptions.js +21 -1
  467. package/dist/lib/security/rule-ids.js +28 -0
  468. package/dist/lib/security/scope/drizzle-policy.js +2 -1
  469. package/dist/lib/security/scope/kysely-policy.js +173 -0
  470. package/dist/lib/security/site-fixes/auth-crypto.js +8 -79
  471. package/dist/lib/security/site-fixes/exposure.js +21 -3
  472. package/dist/lib/security/site-fixes/files.js +11 -13
  473. package/dist/lib/security/site-fixes/frontend-security-fixes.js +2 -2
  474. package/dist/lib/security/site-fixes/injection.js +17 -4
  475. package/dist/lib/security/site-fixes/jwt.js +1 -20
  476. package/dist/lib/security/site-fixes/request-forgery.js +37 -29
  477. package/dist/lib/security/taint/accessors.js +364 -0
  478. package/dist/lib/security/taint/array-writes.js +139 -0
  479. package/dist/lib/security/taint/binding-inputs.js +237 -0
  480. package/dist/lib/security/taint/field-access.js +80 -0
  481. package/dist/lib/security/taint/filename-guard.js +125 -50
  482. package/dist/lib/security/taint/guards.js +163 -24
  483. package/dist/lib/security/taint/index.js +156 -259
  484. package/dist/lib/security/taint/propagate.js +47 -14
  485. package/dist/lib/security/taint/record-writes.js +161 -0
  486. package/dist/lib/security/taint/resolution-cache.js +22 -7
  487. package/dist/lib/security/taint/sanitizers.js +94 -10
  488. package/dist/lib/security/taint/shape-flows.js +128 -0
  489. package/dist/lib/security/taint/sink-alphabets.js +237 -0
  490. package/dist/lib/security/taint/sources.js +151 -8
  491. package/dist/lib/security/taint/trace-nodes.js +94 -0
  492. package/dist/lib/security/taint/validators.js +142 -23
  493. package/dist/lib/security/trusted-bindings.js +44 -0
  494. package/dist/lib/shared/agent/agent-init.js +84 -8
  495. package/dist/lib/shared/agent/agent-integrations.js +626 -0
  496. package/dist/lib/shared/agent/agent-prompt.js +2 -1
  497. package/dist/lib/shared/agent/agent-session.js +1 -1
  498. package/dist/lib/shared/agent/agent-toml.js +98 -0
  499. package/dist/lib/shared/agent/agent-verify.js +25 -4
  500. package/dist/lib/shared/agent/git-hook.js +48 -10
  501. package/dist/lib/shared/agent/notify-editor.js +2 -1
  502. package/dist/lib/shared/agent/review-mcp.js +75 -15
  503. package/dist/lib/shared/agent/review-request.js +4 -0
  504. package/dist/lib/shared/analysis/ast-helpers.js +50 -0
  505. package/dist/lib/shared/analysis/ast-semantics.js +8 -2
  506. package/dist/lib/shared/analysis/binding-names.js +13 -0
  507. package/dist/lib/shared/analysis/execution-context.js +49 -9
  508. package/dist/lib/shared/analysis/polyglot-compatibility.js +102 -23
  509. package/dist/lib/shared/analysis/scan-cache-storage.js +180 -0
  510. package/dist/lib/shared/analysis/scan-cache.js +427 -120
  511. package/dist/lib/shared/analysis/valid-javascript.js +118 -0
  512. package/dist/lib/shared/changed-lines.js +129 -0
  513. package/dist/lib/shared/check-options.js +63 -0
  514. package/dist/lib/shared/check-watch-inputs.js +152 -0
  515. package/dist/lib/shared/check-watch-process.js +57 -0
  516. package/dist/lib/shared/check-watch.js +136 -0
  517. package/dist/lib/shared/check.js +73 -37
  518. package/dist/lib/shared/cli-dispatch.js +17 -0
  519. package/dist/lib/shared/completion-shells.js +127 -0
  520. package/dist/lib/shared/completion.js +124 -0
  521. package/dist/lib/shared/config-rule-validation.js +135 -0
  522. package/dist/lib/shared/config.js +332 -148
  523. package/dist/lib/shared/declarative-rule-packs.js +173 -0
  524. package/dist/lib/shared/explain.js +48 -10
  525. package/dist/lib/shared/fix/fix-convergence.js +49 -130
  526. package/dist/lib/shared/fix/fix-history.js +130 -26
  527. package/dist/lib/shared/fix/fix-imports.js +4 -171
  528. package/dist/lib/shared/fix/fix-interactive.js +78 -0
  529. package/dist/lib/shared/fix/fix-patch.js +89 -0
  530. package/dist/lib/shared/fix/fix-polyglot-preview.js +166 -0
  531. package/dist/lib/shared/fix/fix-presentation-biome.js +120 -0
  532. package/dist/lib/shared/fix/fix-presentation-comments.js +23 -9
  533. package/dist/lib/shared/fix/fix-presentation-prettier.js +27 -10
  534. package/dist/lib/shared/fix/fix-presentation-rows.js +5 -1
  535. package/dist/lib/shared/fix/fix-presentation.js +25 -16
  536. package/dist/lib/shared/fix/fix-project-membership.js +79 -0
  537. package/dist/lib/shared/fix/fix-reversal-proof.js +107 -0
  538. package/dist/lib/shared/fix/fix-reverse.js +37 -0
  539. package/dist/lib/shared/fix/fix-safety.js +10 -4
  540. package/dist/lib/shared/fix/fix-scope.js +13 -9
  541. package/dist/lib/shared/fix/fix-source-snapshot.js +92 -0
  542. package/dist/lib/shared/fix/fix-staging.js +129 -0
  543. package/dist/lib/shared/fix/fix-terminal.js +34 -9
  544. package/dist/lib/shared/fix/fix-typecheck.js +29 -12
  545. package/dist/lib/shared/fix/import-text-edits.js +148 -0
  546. package/dist/lib/shared/fix/project-file-access.js +44 -11
  547. package/dist/lib/shared/fix/read-fix-text.js +23 -0
  548. package/dist/lib/shared/fix/reversal-lock.js +37 -0
  549. package/dist/lib/shared/fix/review-fix-mode.js +9 -0
  550. package/dist/lib/shared/fix.js +192 -32
  551. package/dist/lib/shared/formats/ci-consumers.js +84 -0
  552. package/dist/lib/shared/formats/finding-location.js +55 -3
  553. package/dist/lib/shared/formats/github.js +24 -9
  554. package/dist/lib/shared/formats/index.js +21 -5
  555. package/dist/lib/shared/formats/readable.js +63 -0
  556. package/dist/lib/shared/formats/report-rows.js +38 -0
  557. package/dist/lib/shared/formats/sarif-fixes.js +261 -0
  558. package/dist/lib/shared/formats/sarif.js +181 -33
  559. package/dist/lib/shared/formats/security-cwe.js +113 -0
  560. package/dist/lib/shared/node-scan.js +64 -0
  561. package/dist/lib/shared/package-root.js +2 -0
  562. package/dist/lib/shared/project-root.js +27 -1
  563. package/dist/lib/shared/report-fp.js +6 -2
  564. package/dist/lib/shared/reporting/action-summary.js +31 -0
  565. package/dist/lib/shared/reporting/baseline.js +19 -17
  566. package/dist/lib/shared/reporting/finding-id-hash.js +7 -0
  567. package/dist/lib/shared/reporting/impact-levels.js +1 -1
  568. package/dist/lib/shared/reporting/pillar-rules.js +13 -1
  569. package/dist/lib/shared/reporting/pillars.js +44 -20
  570. package/dist/lib/shared/reporting/rule-docs.js +2 -2
  571. package/dist/lib/shared/reporting/rule-pack-fingerprint.js +21 -0
  572. package/dist/lib/shared/reporting/source-report.js +17 -2
  573. package/dist/lib/shared/reporting/stray-console-methods.js +1 -0
  574. package/dist/lib/shared/rule-registry.js +6 -1
  575. package/dist/lib/shared/system/atomic-write.js +12 -6
  576. package/dist/lib/shared/system/component-source.js +28 -0
  577. package/dist/lib/shared/system/environment.js +12 -0
  578. package/dist/lib/shared/system/file-key.js +8 -0
  579. package/dist/lib/shared/system/git.js +47 -0
  580. package/dist/lib/shared/system/glob.js +123 -19
  581. package/dist/lib/shared/system/jsonc-config.js +63 -0
  582. package/dist/lib/shared/system/path-inside.js +19 -0
  583. package/dist/lib/shared/system/posix-path.js +22 -0
  584. package/dist/lib/shared/system/read-json.js +10 -0
  585. package/dist/lib/shared/system/sentry.js +31 -9
  586. package/dist/lib/shared/system/text-helpers.js +40 -0
  587. package/dist/lib/shared/system/windows-orphans-script.js +75 -0
  588. package/dist/lib/shared/system/windows-orphans.js +28 -0
  589. package/dist/lib/shared/types/changed-lines.js +1 -0
  590. package/dist/lib/shared/types/completion.js +1 -0
  591. package/dist/lib/shared/workspace-selection.js +67 -0
  592. package/dist/lib/shared/workspaces.js +217 -63
  593. package/dist/polyglot/maintainability/rules.js +119 -3
  594. package/examples/README.md +45 -0
  595. package/examples/clean/avatar.html +1 -0
  596. package/examples/clean/source.ts +10 -0
  597. package/examples/clean/tsconfig.json +4 -0
  598. package/examples/findings/avatar.html +1 -0
  599. package/examples/findings/source.ts +11 -0
  600. package/examples/findings/tsconfig.json +4 -0
  601. package/examples/labels-clean.py +5 -0
  602. package/integrations/zed/Cargo.lock +1 -1
  603. package/integrations/zed/Cargo.toml +1 -1
  604. package/integrations/zed/LICENSE +201 -0
  605. package/integrations/zed/extension.toml +3 -3
  606. package/integrations/zed/extension.wasm +0 -0
  607. package/integrations/zed/src/lib.rs +108 -8
  608. package/package.json +29 -14
  609. package/polyglot/performance/rules/csharp.yml +200 -8
  610. package/polyglot/performance/rules/go.yml +15 -7
  611. package/polyglot/performance/rules/input.yml +5 -30
  612. package/polyglot/performance/rules/java.yml +76 -2
  613. package/polyglot/performance/rules/php.yml +146 -0
  614. package/polyglot/performance/rules/python.yml +80 -4
  615. package/polyglot/performance/rules/ruby.yml +81 -0
  616. package/polyglot/performance/sgconfig.yml +3 -0
  617. package/polyglot/reliability/rules/csharp.yml +117 -6
  618. package/polyglot/reliability/rules/go.yml +425 -6
  619. package/polyglot/reliability/rules/input.yml +6 -0
  620. package/polyglot/reliability/rules/java.yml +240 -1
  621. package/polyglot/reliability/rules/kotlin.yml +49 -0
  622. package/polyglot/reliability/rules/python.yml +288 -0
  623. package/polyglot/reliability/rules/rust.yml +83 -0
  624. package/polyglot/reliability/sgconfig.yml +2 -0
  625. package/polyglot/security/rules/csharp.yml +143 -3
  626. package/polyglot/security/rules/go.yml +159 -26
  627. package/polyglot/security/rules/java.yml +103 -0
  628. package/polyglot/security/rules/python.yml +465 -5
  629. package/polyglot/security/rules/rust.yml +241 -3
  630. package/polyglot/security/sgconfig.yml +3 -0
  631. package/polyglot/security/utils/java-imported-jca-cipher.yml +32 -0
  632. package/polyglot/security/utils/java-unshadowed-javax.yml +29 -0
  633. package/polyglot/shared-rules/input.yml +37 -0
  634. package/schema/loadwise.config.schema.json +1571 -642
  635. package/schema/loadwise.outcomes.schema.json +43 -0
  636. package/types/scan.d.ts +53 -0
  637. package/dist/lib/maintainability/site-fixes/exports.js +0 -25
  638. package/docs/assets/cli-workflow.gif +0 -0
  639. package/plugin/.claude-plugin/plugin.json +0 -9
  640. package/plugin/commands/loadwise.md +0 -29
  641. package/plugin/hooks/check-edited-file.mjs +0 -151
  642. package/plugin/hooks/hooks.json +0 -17
  643. /package/dist/lib/{maintainability/types/changed-lines.js → editor/types/workspace-fix.js} +0 -0
@@ -2,6 +2,24 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "title": "loadwise.config.json",
4
4
  "type": "object",
5
+ "definitions": {
6
+ "projectRelativeFolder": {
7
+ "type": "string",
8
+ "description": "A project-relative folder, or . for the project root.",
9
+ "anyOf": [
10
+ {
11
+ "pattern": "^\\.(?:[/\\\\]\\.[/\\\\]?)?$"
12
+ },
13
+ {
14
+ "pattern": "^(?:\\.[/\\\\])?[^/\\\\\\u0000]+(?:[/\\\\][^/\\\\\\u0000]+)*[/\\\\]?$",
15
+ "not": {
16
+ "$comment": "The runtime trims a trailing separator only when it follows a character matched by JavaScript's dot.",
17
+ "pattern": "^(?:(?:\\.[/\\\\])?[A-Za-z]:|\\.\\.(?:[/\\\\]|$)|\\.[/\\\\]?$)|[/\\\\]\\.{1,2}(?:[/\\\\]|$)|[\\r\\n\\u2028\\u2029][/\\\\]$"
18
+ }
19
+ }
20
+ ]
21
+ }
22
+ },
5
23
  "properties": {
6
24
  "$schema": {
7
25
  "type": "string"
@@ -17,295 +35,419 @@
17
35
  "ignore": {
18
36
  "type": "array",
19
37
  "items": {
20
- "type": "string",
21
- "minLength": 1
38
+ "oneOf": [
39
+ {
40
+ "type": "string",
41
+ "minLength": 1
42
+ },
43
+ {
44
+ "type": "object",
45
+ "properties": {
46
+ "include": {
47
+ "type": "string",
48
+ "minLength": 1
49
+ }
50
+ },
51
+ "required": ["include"],
52
+ "additionalProperties": false
53
+ }
54
+ ]
22
55
  },
23
- "description": "Glob patterns, relative to this file, excluded from every checker."
56
+ "description": "Ordered path globs relative to this file. Strings exclude paths and include objects re-include them."
24
57
  },
25
58
  "rules": {
26
59
  "type": "object",
27
60
  "propertyNames": {
28
- "enum": [
29
- "a11y-button-missing-type",
30
- "a11y-clickable-non-interactive",
31
- "a11y-heading-level-skipped",
32
- "a11y-html-missing-lang",
33
- "a11y-iframe-missing-title",
34
- "a11y-img-missing-alt",
35
- "a11y-input-missing-autocomplete",
36
- "a11y-invalid-aria",
37
- "a11y-link-text-not-descriptive",
38
- "a11y-media-autoplay",
39
- "a11y-missing-form-label",
40
- "a11y-positive-tabindex",
41
- "a11y-viewport-zoom-disabled",
42
- "angular-bypass-security-trust",
43
- "angular-default-change-detection",
44
- "angular-ngfor-missing-trackby",
45
- "angular-subscribe-without-cleanup",
46
- "api-enum-value-removed",
47
- "api-removed-field",
48
- "api-removed-operation",
49
- "api-required-input",
50
- "api-type-changed",
51
- "array-repeated-find",
52
- "array-repeated-membership",
53
- "assignment-in-condition",
54
- "async-callback-unhandled-rejection",
55
- "async-route-unhandled-rejection",
56
- "auth-route-without-rate-limit",
57
- "await-before-early-exit",
58
- "bcrypt-low-cost",
59
- "browser-not-closed",
60
- "check-then-update-race",
61
- "child-process-without-error-listener",
62
- "client-env-secret-exposed",
63
- "code-injection",
64
- "command-injection",
65
- "committed-secret",
66
- "compose-hardcoded-secret",
67
- "cookie-missing-security-flags",
68
- "cors-credentials-any-origin",
69
- "cors-origin-regex-unanchored",
70
- "count-then-page-serial",
71
- "crlf-unsafe-line-split",
72
- "data-access-boundary",
73
- "database-error-in-response",
74
- "db-duplicate-index",
75
- "db-missing-index",
76
- "db-seq-scan-heavy-table",
77
- "db-slow-query-plan",
78
- "db-unindexed-foreign-key",
79
- "db-unused-index",
80
- "deep-control-flow",
81
- "dependency-cycle",
82
- "dependency-known-vulnerability",
83
- "deprecated-node-api",
84
- "discarded-error-result",
85
- "dockerfile-add-remote-url",
86
- "dockerfile-runs-as-root",
87
- "dockerfile-secret-in-build",
88
- "dockerfile-unpinned-base-image",
89
- "dom-layout-thrashing",
90
- "dom-listener-without-cleanup",
91
- "dom-unthrottled-scroll-resize",
92
- "dom-xss-sink",
93
- "double-type-assertion",
94
- "drizzle-last-insert-id",
95
- "drizzle-query-in-loop",
96
- "drizzle-scope-unverified",
97
- "drizzle-sql-raw-dynamic",
98
- "drizzle-unfiltered-write",
99
- "drizzle-write-preflight",
100
- "duplicate-implementation",
101
- "error-logged-without-stack",
102
- "error-rethrown-without-cause",
103
- "error-stack-in-response",
104
- "escape-replace-incomplete",
105
- "express-cookie-auth-missing-csrf",
106
- "express-missing-compression",
107
- "express-missing-helmet",
108
- "external-call-in-transaction",
109
- "file-handle-not-closed",
110
- "file-placement",
111
- "filter-for-existence",
112
- "find-then-create-race",
113
- "floating-promise",
114
- "focused-test-committed",
115
- "folder-boundary",
116
- "frontend-barrel-heavy-import",
117
- "frontend-storage-secret-token",
118
- "graphql-batching-unbounded",
119
- "graphql-introspection-enabled",
120
- "graphql-n-plus-one-resolver",
121
- "graphql-query-depth-unbounded",
122
- "guard-query-per-request",
123
- "hardcoded-secret",
124
- "heavy-media-in-request-handler",
125
- "high-branch-complexity",
126
- "http-call-without-timeout",
127
- "index-missing-filter",
128
- "index-missing-foreign-key",
129
- "index-missing-order",
130
- "index-redundant-prefix",
131
- "index-unusable-expression",
132
- "index-unusable-pattern",
133
- "insecure-cipher",
134
- "insecure-random-for-secret",
135
- "interval-not-cleared",
136
- "invalid-typeof-comparison",
137
- "json-parse-unguarded",
138
- "json-roundtrip-clone",
139
- "json-stringify-in-loop",
140
- "jsx-javascript-url",
141
- "jwt-decode-for-auth",
142
- "jwt-none-algorithm",
143
- "jwt-sign-without-expiry",
144
- "jwt-verify-without-algorithms",
145
- "jwt-weak-secret-literal",
146
- "knex-raw-dynamic-text",
147
- "known-reads-awaited-serially",
148
- "large-class",
149
- "large-module",
150
- "list-count-per-request",
151
- "list-query-overfetch",
152
- "llm-call-without-max-tokens",
153
- "long-parameter-list",
154
- "loop-copy-accumulator",
155
- "loop-index-past-length",
156
- "mass-assignment",
157
- "migration-breaking-drop",
158
- "migration-breaking-rename",
159
- "migration-column-type-rewrite",
160
- "migration-concurrent-in-transaction",
161
- "migration-constraint-not-valid",
162
- "migration-constraint-without-index",
163
- "migration-index-not-concurrent",
164
- "migration-missing-lock-timeout",
165
- "migration-mysql-lock-unspecified",
166
- "migration-mysql-table-copy",
167
- "migration-not-null-without-default",
168
- "migration-set-not-null-scan",
169
- "migration-table-rewrite-command",
170
- "migration-unparsed",
171
- "migration-volatile-default",
172
- "mongo-collection-scan-observed",
173
- "mongoose-aggregate-uncast-id",
174
- "mongoose-hydrate-for-to-object",
175
- "mongoose-missing-lean",
176
- "mysql-dynamic-query-text",
177
- "nan-comparison",
178
- "nest-validation-without-whitelist",
179
- "next-image-any-remote-host",
180
- "next-server-env-in-client",
181
- "node-event-listener-leak",
182
- "node-sync-compression-in-async",
183
- "node-sync-crypto-in-async",
184
- "node-sync-fs-in-async",
185
- "node-sync-process-in-async",
186
- "nosql-operator-injection",
187
- "notification-send-in-loop",
188
- "numeric-sort-for-extreme",
189
- "open-redirect",
190
- "orm-cartesian-include",
191
- "orm-count-materialization",
192
- "orm-deep-offset",
193
- "orm-query-in-loop",
194
- "parse-failure-resets-file",
195
- "password-hash-in-response",
196
- "password-hash-pure-js",
197
- "password-hash-sync-in-async",
198
- "path-traversal",
199
- "payment-missing-idempotency-key",
200
- "pg-count-materialization",
201
- "pg-dynamic-query-text",
202
- "pg-filter-materialization",
203
- "pg-first-materialization",
204
- "pg-query-in-loop",
205
- "pg-top-k-materialization",
206
- "pg-transaction-on-pool",
207
- "pg-unreleased-checkout",
208
- "plaintext-password-storage",
209
- "pool-created-per-request-or-item",
210
- "pool-without-connection-timeout",
211
- "postmessage-missing-origin-check",
212
- "prisma-count-for-existence",
213
- "prisma-count-materialization",
214
- "prisma-dependent-writes",
215
- "prisma-distinct-in-memory",
216
- "prisma-filter-materialization",
217
- "prisma-first-materialization",
218
- "prisma-query-in-loop",
219
- "prisma-raw-unsafe-dynamic",
220
- "prisma-read-modify-write",
221
- "prisma-relation-count-in-list",
222
- "prisma-scope-unverified",
223
- "prisma-top-k-materialization",
224
- "prisma-transaction-client-escape",
225
- "promise-combinator-serial-await",
226
- "promise-return-escapes-catch",
227
- "prototype-pollution",
228
- "query-mutates-state",
229
- "query-runner-not-released",
230
- "queue-add-in-loop",
231
- "react-async-effect-callback",
232
- "react-component-defined-in-component",
233
- "react-context-value-recreated",
234
- "react-dangerously-set-inner-html",
235
- "react-effect-sets-state-every-render",
236
- "react-fetch-in-effect-no-abort",
237
- "react-index-as-key",
238
- "react-inline-object-in-jsx-prop",
239
- "react-list-missing-key",
240
- "react-missing-cleanup",
241
- "react-state-mutated-in-place",
242
- "rebuild-lookup-in-loop",
243
- "redis-command-in-loop",
244
- "redis-incr-then-expire",
245
- "redis-keys-command",
246
- "reduce-copy-accumulator",
247
- "reflected-xss-response",
248
- "regex-catastrophic-backtracking",
249
- "regex-from-input",
250
- "repeated-workbook-decode",
251
- "request-number-unvalidated",
252
- "retry-without-backoff",
253
- "return-in-finally",
254
- "return-newline",
255
- "secret-compared-non-constant-time",
256
- "secret-in-log",
257
- "secret-in-url-query",
258
- "sequelize-dynamic-query-text",
259
- "sequential-http-in-loop",
260
- "serial-awaits-in-literal",
261
- "server-action-missing-auth",
262
- "service-query-in-loop",
263
- "session-memory-store",
264
- "sql-insert-truncated-at-semicolon",
265
- "sql-select-star-in-query",
266
- "ssrf-redirect-bypass",
267
- "ssrf-request-url",
268
- "storage-object-public-acl",
269
- "stray-console",
270
- "stream-pipe-unhandled-error",
271
- "swallowed-error",
272
- "switch-not-exhaustive",
273
- "template-autoescape-disabled",
274
- "template-injection",
275
- "test-cleanup-after-await",
276
- "throw-non-error",
277
- "tls-verification-disabled",
278
- "ts-suppression-without-reason",
279
- "tsconfig-strict-disabled",
280
- "typeorm-dynamic-query-text",
281
- "typeorm-existence-materialization",
282
- "typeorm-load-then-save",
283
- "typeorm-transaction-client-escape",
284
- "typeorm-transaction-in-loop",
285
- "typeorm-unused-count",
286
- "typeorm-wide-projection",
287
- "unbounded-list-query",
288
- "unbounded-module-cache",
289
- "unbounded-promise-all",
290
- "uncaught-exception-continues",
291
- "unguarded-boundary-access",
292
- "unreachable-code",
293
- "unreferenced-file",
294
- "unused-export",
295
- "unused-import",
296
- "unused-local-function",
297
- "unused-local-variable",
298
- "upload-client-filename",
299
- "upload-without-size-limit",
300
- "vm-sandbox-escape",
301
- "vue-v-for-missing-key",
302
- "vue-v-html-unsanitized",
303
- "vue-watch-missing-cleanup",
304
- "weak-password-hash",
305
- "webhook-missing-idempotency-check",
306
- "whole-payload-in-memory",
307
- "xml-external-entities",
308
- "zip-slip-extraction"
61
+ "anyOf": [
62
+ {
63
+ "enum": [
64
+ "a11y-aria-hidden-focus",
65
+ "a11y-aria-role-missing-checked",
66
+ "a11y-button-missing-name",
67
+ "a11y-button-missing-type",
68
+ "a11y-clickable-non-interactive",
69
+ "a11y-competing-autofocus",
70
+ "a11y-data-table-missing-headers",
71
+ "a11y-heading-level-skipped",
72
+ "a11y-html-invalid-lang",
73
+ "a11y-html-missing-lang",
74
+ "a11y-iframe-missing-title",
75
+ "a11y-img-missing-alt",
76
+ "a11y-input-missing-autocomplete",
77
+ "a11y-invalid-aria",
78
+ "a11y-invalid-id-reference",
79
+ "a11y-link-text-not-descriptive",
80
+ "a11y-media-autoplay",
81
+ "a11y-missing-form-label",
82
+ "a11y-nested-interactive",
83
+ "a11y-placeholder-link-action",
84
+ "a11y-positive-tabindex",
85
+ "a11y-svg-image-missing-name",
86
+ "a11y-video-captions-review",
87
+ "a11y-viewport-zoom-disabled",
88
+ "angular-bypass-security-trust",
89
+ "angular-default-change-detection",
90
+ "angular-ngfor-missing-trackby",
91
+ "angular-subscribe-without-cleanup",
92
+ "api-enum-value-removed",
93
+ "api-removed-field",
94
+ "api-removed-operation",
95
+ "api-required-input",
96
+ "api-type-changed",
97
+ "array-repeated-find",
98
+ "array-repeated-membership",
99
+ "array-shift-in-fifo-drain",
100
+ "assignment-in-condition",
101
+ "async-array-predicate",
102
+ "async-callback-unhandled-rejection",
103
+ "async-promise-executor",
104
+ "async-route-unhandled-rejection",
105
+ "auth-route-without-rate-limit",
106
+ "await-before-early-exit",
107
+ "bcrypt-low-cost",
108
+ "browser-not-closed",
109
+ "check-then-update-race",
110
+ "child-process-without-error-listener",
111
+ "client-env-secret-exposed",
112
+ "code-injection",
113
+ "command-injection",
114
+ "committed-secret",
115
+ "compose-hardcoded-secret",
116
+ "cookie-missing-security-flags",
117
+ "cors-credentials-any-origin",
118
+ "cors-origin-regex-unanchored",
119
+ "count-then-page-serial",
120
+ "crlf-unsafe-line-split",
121
+ "csharp-async-void",
122
+ "csharp-binaryformatter-request-deserialization",
123
+ "csharp-disposable-without-using",
124
+ "csharp-ef-count-materialized",
125
+ "csharp-ef-from-sql-raw",
126
+ "csharp-ef-query-in-loop",
127
+ "csharp-fixed-regex-in-loop",
128
+ "csharp-process-start",
129
+ "csharp-string-concat-in-loop",
130
+ "csharp-sync-task-wait-in-async",
131
+ "data-access-boundary",
132
+ "database-error-in-response",
133
+ "db-duplicate-index",
134
+ "db-missing-index",
135
+ "db-pool-client-not-released",
136
+ "db-seq-scan-heavy-table",
137
+ "db-slow-query-plan",
138
+ "db-sqlite-large-scan",
139
+ "db-unindexed-foreign-key",
140
+ "db-unused-index",
141
+ "deep-control-flow",
142
+ "dependency-cycle",
143
+ "dependency-known-vulnerability",
144
+ "deprecated-node-api",
145
+ "discarded-error-result",
146
+ "discarded-file-write-count",
147
+ "discarded-signature-verification-result",
148
+ "dockerfile-add-remote-url",
149
+ "dockerfile-runs-as-root",
150
+ "dockerfile-secret-in-build",
151
+ "dockerfile-unpinned-base-image",
152
+ "dom-layout-thrashing",
153
+ "dom-listener-without-cleanup",
154
+ "dom-unthrottled-scroll-resize",
155
+ "dom-xss-sink",
156
+ "double-type-assertion",
157
+ "drizzle-last-insert-id",
158
+ "drizzle-query-in-loop",
159
+ "drizzle-scope-unverified",
160
+ "drizzle-sql-raw-dynamic",
161
+ "drizzle-unfiltered-write",
162
+ "drizzle-write-preflight",
163
+ "duplicate-implementation",
164
+ "error-logged-without-stack",
165
+ "error-rethrown-without-cause",
166
+ "error-stack-in-response",
167
+ "escape-replace-incomplete",
168
+ "explicit-any",
169
+ "express-cookie-auth-missing-csrf",
170
+ "express-missing-compression",
171
+ "express-missing-helmet",
172
+ "external-call-in-transaction",
173
+ "file-handle-not-closed",
174
+ "file-placement",
175
+ "filter-for-existence",
176
+ "find-then-create-race",
177
+ "floating-promise",
178
+ "focused-test-committed",
179
+ "folder-boundary",
180
+ "frontend-barrel-heavy-import",
181
+ "frontend-storage-secret-token",
182
+ "go-defer-before-error-check",
183
+ "go-error-discarded",
184
+ "go-exec-command-shell",
185
+ "go-fixed-regexp-in-loop",
186
+ "go-http-call-without-deadline",
187
+ "go-http-response-body-not-closed",
188
+ "go-sql-query-in-loop",
189
+ "go-sql-rows-leaked",
190
+ "go-sql-rows-unchecked-err",
191
+ "go-sql-sprintf-injection",
192
+ "go-string-concat-in-loop",
193
+ "go-tls-insecure-skip-verify",
194
+ "graphql-batching-unbounded",
195
+ "graphql-introspection-enabled",
196
+ "graphql-n-plus-one-resolver",
197
+ "graphql-query-depth-unbounded",
198
+ "guard-query-per-request",
199
+ "hardcoded-secret",
200
+ "heavy-media-in-request-handler",
201
+ "high-branch-complexity",
202
+ "http-call-without-timeout",
203
+ "index-missing-filter",
204
+ "index-missing-foreign-key",
205
+ "index-missing-order",
206
+ "index-redundant-prefix",
207
+ "index-unusable-expression",
208
+ "index-unusable-pattern",
209
+ "insecure-cipher",
210
+ "insecure-deserialization",
211
+ "insecure-random-for-secret",
212
+ "interval-not-cleared",
213
+ "invalid-typeof-comparison",
214
+ "java-des-cipher",
215
+ "java-fixed-regex-in-loop",
216
+ "java-jdbc-query-in-loop",
217
+ "java-objectinputstream-request-deserialization",
218
+ "java-resource-without-try",
219
+ "java-runtime-exec",
220
+ "java-shared-date-format",
221
+ "java-sql-string-concat",
222
+ "java-string-concat-in-loop",
223
+ "js-fixed-regexp-in-loop",
224
+ "js-yaml-unsafe-schema",
225
+ "json-parse-unguarded",
226
+ "json-roundtrip-clone",
227
+ "json-stringify-in-loop",
228
+ "jsx-javascript-url",
229
+ "jwt-decode-for-auth",
230
+ "jwt-none-algorithm",
231
+ "jwt-sign-without-expiry",
232
+ "jwt-verify-without-algorithms",
233
+ "jwt-weak-secret-literal",
234
+ "knex-raw-dynamic-text",
235
+ "known-reads-awaited-serially",
236
+ "kotlin-run-blocking-in-suspend",
237
+ "kubernetes-privileged-container",
238
+ "kysely-scope-unverified",
239
+ "large-class",
240
+ "large-module",
241
+ "ldap-filter-injection",
242
+ "list-count-per-request",
243
+ "list-query-overfetch",
244
+ "llm-call-without-max-tokens",
245
+ "long-parameter-list",
246
+ "loop-copy-accumulator",
247
+ "loop-index-past-length",
248
+ "lossy-same-file-text-rewrite",
249
+ "mass-assignment",
250
+ "migration-breaking-drop",
251
+ "migration-breaking-rename",
252
+ "migration-column-type-rewrite",
253
+ "migration-concurrent-in-transaction",
254
+ "migration-constraint-not-valid",
255
+ "migration-constraint-without-index",
256
+ "migration-index-not-concurrent",
257
+ "migration-missing-lock-timeout",
258
+ "migration-mysql-lock-unspecified",
259
+ "migration-mysql-table-copy",
260
+ "migration-not-null-without-default",
261
+ "migration-set-not-null-scan",
262
+ "migration-sqlserver-offline-index",
263
+ "migration-table-access-exclusive-lock",
264
+ "migration-table-rewrite-command",
265
+ "migration-unparsed",
266
+ "migration-volatile-default",
267
+ "mongo-collection-scan-observed",
268
+ "mongoose-aggregate-uncast-id",
269
+ "mongoose-hydrate-for-to-object",
270
+ "mongoose-missing-lean",
271
+ "mysql-dynamic-query-text",
272
+ "nan-comparison",
273
+ "nest-validation-without-whitelist",
274
+ "next-image-any-remote-host",
275
+ "next-server-env-in-client",
276
+ "next-server-fetch-waterfall",
277
+ "node-event-listener-leak",
278
+ "node-sync-compression-in-async",
279
+ "node-sync-crypto-in-async",
280
+ "node-sync-fs-in-async",
281
+ "node-sync-process-in-async",
282
+ "nosql-operator-injection",
283
+ "notification-send-in-loop",
284
+ "numeric-array-default-sort",
285
+ "numeric-sort-for-extreme",
286
+ "open-redirect",
287
+ "orm-cartesian-include",
288
+ "orm-count-materialization",
289
+ "orm-deep-offset",
290
+ "orm-query-in-loop",
291
+ "parse-failure-resets-file",
292
+ "password-hash-in-response",
293
+ "password-hash-pure-js",
294
+ "password-hash-sync-in-async",
295
+ "path-traversal",
296
+ "payment-missing-idempotency-key",
297
+ "pg-advisory-lock-session",
298
+ "pg-count-materialization",
299
+ "pg-dynamic-query-text",
300
+ "pg-filter-materialization",
301
+ "pg-first-materialization",
302
+ "pg-listen-session",
303
+ "pg-query-in-loop",
304
+ "pg-top-k-materialization",
305
+ "pg-transaction-on-pool",
306
+ "pg-unreleased-checkout",
307
+ "php-eloquent-query-in-loop",
308
+ "plaintext-password-storage",
309
+ "pool-created-per-request-or-item",
310
+ "pool-without-connection-timeout",
311
+ "postmessage-missing-origin-check",
312
+ "prisma-count-for-existence",
313
+ "prisma-count-materialization",
314
+ "prisma-dependent-writes",
315
+ "prisma-distinct-in-memory",
316
+ "prisma-filter-materialization",
317
+ "prisma-first-materialization",
318
+ "prisma-query-in-loop",
319
+ "prisma-raw-unsafe-dynamic",
320
+ "prisma-read-modify-write",
321
+ "prisma-relation-count-in-list",
322
+ "prisma-scope-unverified",
323
+ "prisma-top-k-materialization",
324
+ "prisma-transaction-client-escape",
325
+ "promise-combinator-serial-await",
326
+ "promise-return-escapes-catch",
327
+ "prototype-pollution",
328
+ "python-bare-except",
329
+ "python-blocking-sleep-in-async",
330
+ "python-copy-growing-list",
331
+ "python-file-not-closed",
332
+ "python-fixed-regex-in-loop",
333
+ "python-insecure-deserialization",
334
+ "python-interactive-debugger",
335
+ "python-mutated-mutable-default",
336
+ "python-n-plus-one-orm-loop",
337
+ "python-requests-tls-verify-disabled",
338
+ "python-requests-without-timeout",
339
+ "python-sqlite-unbound-value",
340
+ "python-subprocess-shell-true",
341
+ "python-swallowed-exception",
342
+ "python-sync-requests-in-async",
343
+ "python-unbounded-comprehension",
344
+ "python-unsafe-yaml-load",
345
+ "query-mutates-state",
346
+ "query-runner-not-released",
347
+ "queue-add-in-loop",
348
+ "raw-content-disposition-filename",
349
+ "react-async-effect-callback",
350
+ "react-component-defined-in-component",
351
+ "react-context-value-recreated",
352
+ "react-dangerously-set-inner-html",
353
+ "react-effect-sets-state-every-render",
354
+ "react-fetch-in-effect-no-abort",
355
+ "react-index-as-key",
356
+ "react-inline-object-in-jsx-prop",
357
+ "react-list-missing-key",
358
+ "react-missing-cleanup",
359
+ "react-state-mutated-in-place",
360
+ "rebuild-lookup-in-loop",
361
+ "redis-command-in-loop",
362
+ "redis-incr-then-expire",
363
+ "redis-keys-command",
364
+ "reduce-copy-accumulator",
365
+ "reflected-xss-response",
366
+ "regex-catastrophic-backtracking",
367
+ "regex-from-input",
368
+ "repeated-workbook-decode",
369
+ "request-number-unvalidated",
370
+ "request-selected-executable",
371
+ "retry-without-backoff",
372
+ "return-in-finally",
373
+ "return-newline",
374
+ "ruby-active-record-query-in-loop",
375
+ "rust-blocking-std-in-async",
376
+ "rust-clone-in-loop",
377
+ "rust-command-shell",
378
+ "rust-fixed-regex-in-loop",
379
+ "rust-format-in-loop",
380
+ "rust-mutex-guard-across-await",
381
+ "rust-reqwest-danger-accept-invalid-certs",
382
+ "rust-unsafe-raw-pointer-deref",
383
+ "rust-unwrap-in-production",
384
+ "same-file-stream-truncation",
385
+ "secret-compared-non-constant-time",
386
+ "secret-in-log",
387
+ "secret-in-url-query",
388
+ "sequelize-dynamic-query-text",
389
+ "sequential-http-in-loop",
390
+ "serial-awaits-in-literal",
391
+ "server-action-missing-auth",
392
+ "service-query-in-loop",
393
+ "session-memory-store",
394
+ "sql-insert-truncated-at-semicolon",
395
+ "sql-select-star-in-query",
396
+ "ssrf-redirect-bypass",
397
+ "ssrf-request-url",
398
+ "storage-object-public-acl",
399
+ "stray-console",
400
+ "stream-pipe-unhandled-error",
401
+ "swallowed-error",
402
+ "switch-not-exhaustive",
403
+ "template-autoescape-disabled",
404
+ "template-injection",
405
+ "template-raw-html-binding",
406
+ "test-cleanup-after-await",
407
+ "throw-non-error",
408
+ "tls-verification-disabled",
409
+ "trust-boundary-violation",
410
+ "ts-suppression-without-reason",
411
+ "tsconfig-strict-disabled",
412
+ "typeorm-dynamic-query-text",
413
+ "typeorm-existence-materialization",
414
+ "typeorm-load-then-save",
415
+ "typeorm-transaction-client-escape",
416
+ "typeorm-transaction-in-loop",
417
+ "typeorm-unused-count",
418
+ "typeorm-wide-projection",
419
+ "unbounded-list-query",
420
+ "unbounded-module-cache",
421
+ "unbounded-promise-all",
422
+ "uncaught-exception-continues",
423
+ "unchecked-json-cast",
424
+ "unguarded-boundary-access",
425
+ "unreachable-code",
426
+ "unreferenced-file",
427
+ "unsafe-wide-type",
428
+ "unused-export",
429
+ "unused-import",
430
+ "unused-local-function",
431
+ "unused-local-variable",
432
+ "upload-client-filename",
433
+ "upload-without-size-limit",
434
+ "vm-sandbox-escape",
435
+ "vue-v-for-missing-key",
436
+ "vue-v-html-unsanitized",
437
+ "vue-watch-missing-cleanup",
438
+ "weak-hash",
439
+ "weak-password-hash",
440
+ "webhook-body-without-verification",
441
+ "webhook-missing-idempotency-check",
442
+ "whole-payload-in-memory",
443
+ "xml-external-entities",
444
+ "xpath-injection",
445
+ "zip-slip-extraction"
446
+ ]
447
+ },
448
+ {
449
+ "pattern": "^project-[a-z0-9]+(?:-[a-z0-9]+)*--[a-z0-9]+(?:-[a-z0-9]+)*$"
450
+ }
309
451
  ]
310
452
  },
311
453
  "additionalProperties": {
@@ -318,54 +460,349 @@
318
460
  "properties": {
319
461
  "level": {
320
462
  "enum": ["off", "warn", "error"]
463
+ }
464
+ },
465
+ "required": ["level"],
466
+ "additionalProperties": false
467
+ }
468
+ ]
469
+ },
470
+ "properties": {
471
+ "deep-control-flow": {
472
+ "oneOf": [
473
+ {
474
+ "enum": ["off", "warn", "error"]
475
+ },
476
+ {
477
+ "type": "object",
478
+ "properties": {
479
+ "level": {
480
+ "enum": ["off", "warn", "error"]
481
+ },
482
+ "options": {
483
+ "type": "object",
484
+ "properties": {
485
+ "maxDepth": {
486
+ "type": "integer",
487
+ "minimum": 1
488
+ }
489
+ },
490
+ "additionalProperties": false
491
+ }
321
492
  },
322
- "options": {
323
- "type": "object",
324
- "properties": {
325
- "maxDepth": {
326
- "type": "integer",
327
- "minimum": 1
493
+ "required": ["level"],
494
+ "additionalProperties": false
495
+ }
496
+ ]
497
+ },
498
+ "high-branch-complexity": {
499
+ "oneOf": [
500
+ {
501
+ "enum": ["off", "warn", "error"]
502
+ },
503
+ {
504
+ "type": "object",
505
+ "properties": {
506
+ "level": {
507
+ "enum": ["off", "warn", "error"]
508
+ },
509
+ "options": {
510
+ "type": "object",
511
+ "properties": {
512
+ "maxComplexity": {
513
+ "type": "integer",
514
+ "minimum": 1
515
+ }
328
516
  },
329
- "maxComplexity": {
330
- "type": "integer",
331
- "minimum": 1
517
+ "additionalProperties": false
518
+ }
519
+ },
520
+ "required": ["level"],
521
+ "additionalProperties": false
522
+ }
523
+ ]
524
+ },
525
+ "long-parameter-list": {
526
+ "oneOf": [
527
+ {
528
+ "enum": ["off", "warn", "error"]
529
+ },
530
+ {
531
+ "type": "object",
532
+ "properties": {
533
+ "level": {
534
+ "enum": ["off", "warn", "error"]
535
+ },
536
+ "options": {
537
+ "type": "object",
538
+ "properties": {
539
+ "maxParams": {
540
+ "type": "integer",
541
+ "minimum": 1
542
+ }
332
543
  },
333
- "maxParams": {
334
- "type": "integer",
335
- "minimum": 1
544
+ "additionalProperties": false
545
+ }
546
+ },
547
+ "required": ["level"],
548
+ "additionalProperties": false
549
+ }
550
+ ]
551
+ },
552
+ "large-module": {
553
+ "oneOf": [
554
+ {
555
+ "enum": ["off", "warn", "error"]
556
+ },
557
+ {
558
+ "type": "object",
559
+ "properties": {
560
+ "level": {
561
+ "enum": ["off", "warn", "error"]
562
+ },
563
+ "options": {
564
+ "type": "object",
565
+ "properties": {
566
+ "maxLines": {
567
+ "type": "integer",
568
+ "minimum": 1
569
+ }
336
570
  },
337
- "maxLines": {
338
- "type": "integer",
339
- "minimum": 1
571
+ "additionalProperties": false
572
+ }
573
+ },
574
+ "required": ["level"],
575
+ "additionalProperties": false
576
+ }
577
+ ]
578
+ },
579
+ "large-class": {
580
+ "oneOf": [
581
+ {
582
+ "enum": ["off", "warn", "error"]
583
+ },
584
+ {
585
+ "type": "object",
586
+ "properties": {
587
+ "level": {
588
+ "enum": ["off", "warn", "error"]
589
+ },
590
+ "options": {
591
+ "type": "object",
592
+ "properties": {
593
+ "maxMethods": {
594
+ "type": "integer",
595
+ "minimum": 1
596
+ },
597
+ "maxLines": {
598
+ "type": "integer",
599
+ "minimum": 1
600
+ }
340
601
  },
341
- "maxMethods": {
342
- "type": "integer",
343
- "minimum": 1
602
+ "additionalProperties": false
603
+ }
604
+ },
605
+ "required": ["level"],
606
+ "additionalProperties": false
607
+ }
608
+ ]
609
+ },
610
+ "bcrypt-low-cost": {
611
+ "oneOf": [
612
+ {
613
+ "enum": ["off", "warn", "error"]
614
+ },
615
+ {
616
+ "type": "object",
617
+ "properties": {
618
+ "level": {
619
+ "enum": ["off", "warn", "error"]
620
+ },
621
+ "options": {
622
+ "type": "object",
623
+ "properties": {
624
+ "minCost": {
625
+ "type": "integer",
626
+ "minimum": 1,
627
+ "maximum": 31
628
+ }
344
629
  },
345
- "minCost": {
346
- "type": "integer",
347
- "minimum": 1
630
+ "additionalProperties": false
631
+ }
632
+ },
633
+ "required": ["level"],
634
+ "additionalProperties": false
635
+ }
636
+ ]
637
+ },
638
+ "duplicate-implementation": {
639
+ "oneOf": [
640
+ {
641
+ "enum": ["off", "warn", "error"]
642
+ },
643
+ {
644
+ "type": "object",
645
+ "properties": {
646
+ "level": {
647
+ "enum": ["off", "warn", "error"]
648
+ },
649
+ "options": {
650
+ "type": "object",
651
+ "properties": {
652
+ "minNodes": {
653
+ "type": "integer",
654
+ "minimum": 1,
655
+ "maximum": 8192
656
+ }
348
657
  },
349
- "maxBatchSize": {
350
- "type": "integer",
351
- "minimum": 1
658
+ "additionalProperties": false
659
+ }
660
+ },
661
+ "required": ["level"],
662
+ "additionalProperties": false
663
+ }
664
+ ]
665
+ },
666
+ "orm-deep-offset": {
667
+ "oneOf": [
668
+ {
669
+ "enum": ["off", "warn", "error"]
670
+ },
671
+ {
672
+ "type": "object",
673
+ "properties": {
674
+ "level": {
675
+ "enum": ["off", "warn", "error"]
676
+ },
677
+ "options": {
678
+ "type": "object",
679
+ "properties": {
680
+ "maxOffset": {
681
+ "type": "integer",
682
+ "minimum": 1
683
+ }
352
684
  },
353
- "maxOffset": {
354
- "type": "integer",
355
- "minimum": 1
685
+ "additionalProperties": false
686
+ }
687
+ },
688
+ "required": ["level"],
689
+ "additionalProperties": false
690
+ }
691
+ ]
692
+ },
693
+ "upload-without-size-limit": {
694
+ "oneOf": [
695
+ {
696
+ "enum": ["off", "warn", "error"]
697
+ },
698
+ {
699
+ "type": "object",
700
+ "properties": {
701
+ "level": {
702
+ "enum": ["off", "warn", "error"]
703
+ },
704
+ "options": {
705
+ "type": "object",
706
+ "properties": {
707
+ "maxBytes": {
708
+ "type": "integer",
709
+ "minimum": 1
710
+ }
356
711
  },
357
- "maxBytes": {
358
- "type": "integer",
359
- "minimum": 1
360
- }
712
+ "additionalProperties": false
713
+ }
714
+ },
715
+ "required": ["level"],
716
+ "additionalProperties": false
717
+ }
718
+ ]
719
+ },
720
+ "pool-without-connection-timeout": {
721
+ "oneOf": [
722
+ {
723
+ "enum": ["off", "warn", "error"]
724
+ },
725
+ {
726
+ "type": "object",
727
+ "properties": {
728
+ "level": {
729
+ "enum": ["off", "warn", "error"]
361
730
  },
362
- "additionalProperties": false
363
- }
731
+ "options": {
732
+ "type": "object",
733
+ "properties": {
734
+ "connectionTimeoutMillis": {
735
+ "type": "integer",
736
+ "minimum": 1,
737
+ "maximum": 2147483647
738
+ }
739
+ },
740
+ "additionalProperties": false
741
+ }
742
+ },
743
+ "required": ["level"],
744
+ "additionalProperties": false
745
+ }
746
+ ]
747
+ },
748
+ "llm-call-without-max-tokens": {
749
+ "oneOf": [
750
+ {
751
+ "enum": ["off", "warn", "error"]
364
752
  },
365
- "required": ["level"],
366
- "additionalProperties": false
367
- }
368
- ]
753
+ {
754
+ "type": "object",
755
+ "properties": {
756
+ "level": {
757
+ "enum": ["off", "warn", "error"]
758
+ },
759
+ "options": {
760
+ "type": "object",
761
+ "properties": {
762
+ "maxOutputTokens": {
763
+ "type": "integer",
764
+ "minimum": 1,
765
+ "maximum": 9007199254740991
766
+ }
767
+ },
768
+ "additionalProperties": false
769
+ }
770
+ },
771
+ "required": ["level"],
772
+ "additionalProperties": false
773
+ }
774
+ ]
775
+ },
776
+ "stray-console": {
777
+ "oneOf": [
778
+ {
779
+ "enum": ["off", "warn", "error"]
780
+ },
781
+ {
782
+ "type": "object",
783
+ "properties": {
784
+ "level": {
785
+ "enum": ["off", "warn", "error"]
786
+ },
787
+ "options": {
788
+ "type": "object",
789
+ "properties": {
790
+ "allowedMethods": {
791
+ "type": "array",
792
+ "items": {
793
+ "type": "string",
794
+ "enum": ["log", "info", "debug", "warn", "error", "trace", "dir", "table"]
795
+ }
796
+ }
797
+ },
798
+ "additionalProperties": false
799
+ }
800
+ },
801
+ "required": ["level"],
802
+ "additionalProperties": false
803
+ }
804
+ ]
805
+ }
369
806
  }
370
807
  },
371
808
  "overrides": {
@@ -384,287 +821,396 @@
384
821
  "rules": {
385
822
  "type": "object",
386
823
  "propertyNames": {
387
- "enum": [
388
- "a11y-button-missing-type",
389
- "a11y-clickable-non-interactive",
390
- "a11y-heading-level-skipped",
391
- "a11y-html-missing-lang",
392
- "a11y-iframe-missing-title",
393
- "a11y-img-missing-alt",
394
- "a11y-input-missing-autocomplete",
395
- "a11y-invalid-aria",
396
- "a11y-link-text-not-descriptive",
397
- "a11y-media-autoplay",
398
- "a11y-missing-form-label",
399
- "a11y-positive-tabindex",
400
- "a11y-viewport-zoom-disabled",
401
- "angular-bypass-security-trust",
402
- "angular-default-change-detection",
403
- "angular-ngfor-missing-trackby",
404
- "angular-subscribe-without-cleanup",
405
- "api-enum-value-removed",
406
- "api-removed-field",
407
- "api-removed-operation",
408
- "api-required-input",
409
- "api-type-changed",
410
- "array-repeated-find",
411
- "array-repeated-membership",
412
- "assignment-in-condition",
413
- "async-callback-unhandled-rejection",
414
- "async-route-unhandled-rejection",
415
- "auth-route-without-rate-limit",
416
- "await-before-early-exit",
417
- "bcrypt-low-cost",
418
- "browser-not-closed",
419
- "check-then-update-race",
420
- "child-process-without-error-listener",
421
- "client-env-secret-exposed",
422
- "code-injection",
423
- "command-injection",
424
- "committed-secret",
425
- "compose-hardcoded-secret",
426
- "cookie-missing-security-flags",
427
- "cors-credentials-any-origin",
428
- "cors-origin-regex-unanchored",
429
- "count-then-page-serial",
430
- "crlf-unsafe-line-split",
431
- "data-access-boundary",
432
- "database-error-in-response",
433
- "db-duplicate-index",
434
- "db-missing-index",
435
- "db-seq-scan-heavy-table",
436
- "db-slow-query-plan",
437
- "db-unindexed-foreign-key",
438
- "db-unused-index",
439
- "deep-control-flow",
440
- "dependency-cycle",
441
- "dependency-known-vulnerability",
442
- "deprecated-node-api",
443
- "discarded-error-result",
444
- "dockerfile-add-remote-url",
445
- "dockerfile-runs-as-root",
446
- "dockerfile-secret-in-build",
447
- "dockerfile-unpinned-base-image",
448
- "dom-layout-thrashing",
449
- "dom-listener-without-cleanup",
450
- "dom-unthrottled-scroll-resize",
451
- "dom-xss-sink",
452
- "double-type-assertion",
453
- "drizzle-last-insert-id",
454
- "drizzle-query-in-loop",
455
- "drizzle-scope-unverified",
456
- "drizzle-sql-raw-dynamic",
457
- "drizzle-unfiltered-write",
458
- "drizzle-write-preflight",
459
- "duplicate-implementation",
460
- "error-logged-without-stack",
461
- "error-rethrown-without-cause",
462
- "error-stack-in-response",
463
- "escape-replace-incomplete",
464
- "express-cookie-auth-missing-csrf",
465
- "express-missing-compression",
466
- "express-missing-helmet",
467
- "external-call-in-transaction",
468
- "file-handle-not-closed",
469
- "file-placement",
470
- "filter-for-existence",
471
- "find-then-create-race",
472
- "floating-promise",
473
- "focused-test-committed",
474
- "folder-boundary",
475
- "frontend-barrel-heavy-import",
476
- "frontend-storage-secret-token",
477
- "graphql-batching-unbounded",
478
- "graphql-introspection-enabled",
479
- "graphql-n-plus-one-resolver",
480
- "graphql-query-depth-unbounded",
481
- "guard-query-per-request",
482
- "hardcoded-secret",
483
- "heavy-media-in-request-handler",
484
- "high-branch-complexity",
485
- "http-call-without-timeout",
486
- "index-missing-filter",
487
- "index-missing-foreign-key",
488
- "index-missing-order",
489
- "index-redundant-prefix",
490
- "index-unusable-expression",
491
- "index-unusable-pattern",
492
- "insecure-cipher",
493
- "insecure-random-for-secret",
494
- "interval-not-cleared",
495
- "invalid-typeof-comparison",
496
- "json-parse-unguarded",
497
- "json-roundtrip-clone",
498
- "json-stringify-in-loop",
499
- "jsx-javascript-url",
500
- "jwt-decode-for-auth",
501
- "jwt-none-algorithm",
502
- "jwt-sign-without-expiry",
503
- "jwt-verify-without-algorithms",
504
- "jwt-weak-secret-literal",
505
- "knex-raw-dynamic-text",
506
- "known-reads-awaited-serially",
507
- "large-class",
508
- "large-module",
509
- "list-count-per-request",
510
- "list-query-overfetch",
511
- "llm-call-without-max-tokens",
512
- "long-parameter-list",
513
- "loop-copy-accumulator",
514
- "loop-index-past-length",
515
- "mass-assignment",
516
- "migration-breaking-drop",
517
- "migration-breaking-rename",
518
- "migration-column-type-rewrite",
519
- "migration-concurrent-in-transaction",
520
- "migration-constraint-not-valid",
521
- "migration-constraint-without-index",
522
- "migration-index-not-concurrent",
523
- "migration-missing-lock-timeout",
524
- "migration-mysql-lock-unspecified",
525
- "migration-mysql-table-copy",
526
- "migration-not-null-without-default",
527
- "migration-set-not-null-scan",
528
- "migration-table-rewrite-command",
529
- "migration-unparsed",
530
- "migration-volatile-default",
531
- "mongo-collection-scan-observed",
532
- "mongoose-aggregate-uncast-id",
533
- "mongoose-hydrate-for-to-object",
534
- "mongoose-missing-lean",
535
- "mysql-dynamic-query-text",
536
- "nan-comparison",
537
- "nest-validation-without-whitelist",
538
- "next-image-any-remote-host",
539
- "next-server-env-in-client",
540
- "node-event-listener-leak",
541
- "node-sync-compression-in-async",
542
- "node-sync-crypto-in-async",
543
- "node-sync-fs-in-async",
544
- "node-sync-process-in-async",
545
- "nosql-operator-injection",
546
- "notification-send-in-loop",
547
- "numeric-sort-for-extreme",
548
- "open-redirect",
549
- "orm-cartesian-include",
550
- "orm-count-materialization",
551
- "orm-deep-offset",
552
- "orm-query-in-loop",
553
- "parse-failure-resets-file",
554
- "password-hash-in-response",
555
- "password-hash-pure-js",
556
- "password-hash-sync-in-async",
557
- "path-traversal",
558
- "payment-missing-idempotency-key",
559
- "pg-count-materialization",
560
- "pg-dynamic-query-text",
561
- "pg-filter-materialization",
562
- "pg-first-materialization",
563
- "pg-query-in-loop",
564
- "pg-top-k-materialization",
565
- "pg-transaction-on-pool",
566
- "pg-unreleased-checkout",
567
- "plaintext-password-storage",
568
- "pool-created-per-request-or-item",
569
- "pool-without-connection-timeout",
570
- "postmessage-missing-origin-check",
571
- "prisma-count-for-existence",
572
- "prisma-count-materialization",
573
- "prisma-dependent-writes",
574
- "prisma-distinct-in-memory",
575
- "prisma-filter-materialization",
576
- "prisma-first-materialization",
577
- "prisma-query-in-loop",
578
- "prisma-raw-unsafe-dynamic",
579
- "prisma-read-modify-write",
580
- "prisma-relation-count-in-list",
581
- "prisma-scope-unverified",
582
- "prisma-top-k-materialization",
583
- "prisma-transaction-client-escape",
584
- "promise-combinator-serial-await",
585
- "promise-return-escapes-catch",
586
- "prototype-pollution",
587
- "query-mutates-state",
588
- "query-runner-not-released",
589
- "queue-add-in-loop",
590
- "react-async-effect-callback",
591
- "react-component-defined-in-component",
592
- "react-context-value-recreated",
593
- "react-dangerously-set-inner-html",
594
- "react-effect-sets-state-every-render",
595
- "react-fetch-in-effect-no-abort",
596
- "react-index-as-key",
597
- "react-inline-object-in-jsx-prop",
598
- "react-list-missing-key",
599
- "react-missing-cleanup",
600
- "react-state-mutated-in-place",
601
- "rebuild-lookup-in-loop",
602
- "redis-command-in-loop",
603
- "redis-incr-then-expire",
604
- "redis-keys-command",
605
- "reduce-copy-accumulator",
606
- "reflected-xss-response",
607
- "regex-catastrophic-backtracking",
608
- "regex-from-input",
609
- "repeated-workbook-decode",
610
- "request-number-unvalidated",
611
- "retry-without-backoff",
612
- "return-in-finally",
613
- "return-newline",
614
- "secret-compared-non-constant-time",
615
- "secret-in-log",
616
- "secret-in-url-query",
617
- "sequelize-dynamic-query-text",
618
- "sequential-http-in-loop",
619
- "serial-awaits-in-literal",
620
- "server-action-missing-auth",
621
- "service-query-in-loop",
622
- "session-memory-store",
623
- "sql-insert-truncated-at-semicolon",
624
- "sql-select-star-in-query",
625
- "ssrf-redirect-bypass",
626
- "ssrf-request-url",
627
- "storage-object-public-acl",
628
- "stray-console",
629
- "stream-pipe-unhandled-error",
630
- "swallowed-error",
631
- "switch-not-exhaustive",
632
- "template-autoescape-disabled",
633
- "template-injection",
634
- "test-cleanup-after-await",
635
- "throw-non-error",
636
- "tls-verification-disabled",
637
- "ts-suppression-without-reason",
638
- "tsconfig-strict-disabled",
639
- "typeorm-dynamic-query-text",
640
- "typeorm-existence-materialization",
641
- "typeorm-load-then-save",
642
- "typeorm-transaction-client-escape",
643
- "typeorm-transaction-in-loop",
644
- "typeorm-unused-count",
645
- "typeorm-wide-projection",
646
- "unbounded-list-query",
647
- "unbounded-module-cache",
648
- "unbounded-promise-all",
649
- "uncaught-exception-continues",
650
- "unguarded-boundary-access",
651
- "unreachable-code",
652
- "unreferenced-file",
653
- "unused-export",
654
- "unused-import",
655
- "unused-local-function",
656
- "unused-local-variable",
657
- "upload-client-filename",
658
- "upload-without-size-limit",
659
- "vm-sandbox-escape",
660
- "vue-v-for-missing-key",
661
- "vue-v-html-unsanitized",
662
- "vue-watch-missing-cleanup",
663
- "weak-password-hash",
664
- "webhook-missing-idempotency-check",
665
- "whole-payload-in-memory",
666
- "xml-external-entities",
667
- "zip-slip-extraction"
824
+ "anyOf": [
825
+ {
826
+ "enum": [
827
+ "a11y-aria-hidden-focus",
828
+ "a11y-aria-role-missing-checked",
829
+ "a11y-button-missing-name",
830
+ "a11y-button-missing-type",
831
+ "a11y-clickable-non-interactive",
832
+ "a11y-competing-autofocus",
833
+ "a11y-data-table-missing-headers",
834
+ "a11y-heading-level-skipped",
835
+ "a11y-html-invalid-lang",
836
+ "a11y-html-missing-lang",
837
+ "a11y-iframe-missing-title",
838
+ "a11y-img-missing-alt",
839
+ "a11y-input-missing-autocomplete",
840
+ "a11y-invalid-aria",
841
+ "a11y-invalid-id-reference",
842
+ "a11y-link-text-not-descriptive",
843
+ "a11y-media-autoplay",
844
+ "a11y-missing-form-label",
845
+ "a11y-nested-interactive",
846
+ "a11y-placeholder-link-action",
847
+ "a11y-positive-tabindex",
848
+ "a11y-svg-image-missing-name",
849
+ "a11y-video-captions-review",
850
+ "a11y-viewport-zoom-disabled",
851
+ "angular-bypass-security-trust",
852
+ "angular-default-change-detection",
853
+ "angular-ngfor-missing-trackby",
854
+ "angular-subscribe-without-cleanup",
855
+ "api-enum-value-removed",
856
+ "api-removed-field",
857
+ "api-removed-operation",
858
+ "api-required-input",
859
+ "api-type-changed",
860
+ "array-repeated-find",
861
+ "array-repeated-membership",
862
+ "array-shift-in-fifo-drain",
863
+ "assignment-in-condition",
864
+ "async-array-predicate",
865
+ "async-callback-unhandled-rejection",
866
+ "async-promise-executor",
867
+ "async-route-unhandled-rejection",
868
+ "auth-route-without-rate-limit",
869
+ "await-before-early-exit",
870
+ "bcrypt-low-cost",
871
+ "browser-not-closed",
872
+ "check-then-update-race",
873
+ "child-process-without-error-listener",
874
+ "client-env-secret-exposed",
875
+ "code-injection",
876
+ "command-injection",
877
+ "committed-secret",
878
+ "compose-hardcoded-secret",
879
+ "cookie-missing-security-flags",
880
+ "cors-credentials-any-origin",
881
+ "cors-origin-regex-unanchored",
882
+ "count-then-page-serial",
883
+ "crlf-unsafe-line-split",
884
+ "csharp-async-void",
885
+ "csharp-binaryformatter-request-deserialization",
886
+ "csharp-disposable-without-using",
887
+ "csharp-ef-count-materialized",
888
+ "csharp-ef-from-sql-raw",
889
+ "csharp-ef-query-in-loop",
890
+ "csharp-fixed-regex-in-loop",
891
+ "csharp-process-start",
892
+ "csharp-string-concat-in-loop",
893
+ "csharp-sync-task-wait-in-async",
894
+ "data-access-boundary",
895
+ "database-error-in-response",
896
+ "db-duplicate-index",
897
+ "db-missing-index",
898
+ "db-pool-client-not-released",
899
+ "db-seq-scan-heavy-table",
900
+ "db-slow-query-plan",
901
+ "db-sqlite-large-scan",
902
+ "db-unindexed-foreign-key",
903
+ "db-unused-index",
904
+ "deep-control-flow",
905
+ "dependency-cycle",
906
+ "dependency-known-vulnerability",
907
+ "deprecated-node-api",
908
+ "discarded-error-result",
909
+ "discarded-file-write-count",
910
+ "discarded-signature-verification-result",
911
+ "dockerfile-add-remote-url",
912
+ "dockerfile-runs-as-root",
913
+ "dockerfile-secret-in-build",
914
+ "dockerfile-unpinned-base-image",
915
+ "dom-layout-thrashing",
916
+ "dom-listener-without-cleanup",
917
+ "dom-unthrottled-scroll-resize",
918
+ "dom-xss-sink",
919
+ "double-type-assertion",
920
+ "drizzle-last-insert-id",
921
+ "drizzle-query-in-loop",
922
+ "drizzle-scope-unverified",
923
+ "drizzle-sql-raw-dynamic",
924
+ "drizzle-unfiltered-write",
925
+ "drizzle-write-preflight",
926
+ "duplicate-implementation",
927
+ "error-logged-without-stack",
928
+ "error-rethrown-without-cause",
929
+ "error-stack-in-response",
930
+ "escape-replace-incomplete",
931
+ "explicit-any",
932
+ "express-cookie-auth-missing-csrf",
933
+ "express-missing-compression",
934
+ "express-missing-helmet",
935
+ "external-call-in-transaction",
936
+ "file-handle-not-closed",
937
+ "file-placement",
938
+ "filter-for-existence",
939
+ "find-then-create-race",
940
+ "floating-promise",
941
+ "focused-test-committed",
942
+ "folder-boundary",
943
+ "frontend-barrel-heavy-import",
944
+ "frontend-storage-secret-token",
945
+ "go-defer-before-error-check",
946
+ "go-error-discarded",
947
+ "go-exec-command-shell",
948
+ "go-fixed-regexp-in-loop",
949
+ "go-http-call-without-deadline",
950
+ "go-http-response-body-not-closed",
951
+ "go-sql-query-in-loop",
952
+ "go-sql-rows-leaked",
953
+ "go-sql-rows-unchecked-err",
954
+ "go-sql-sprintf-injection",
955
+ "go-string-concat-in-loop",
956
+ "go-tls-insecure-skip-verify",
957
+ "graphql-batching-unbounded",
958
+ "graphql-introspection-enabled",
959
+ "graphql-n-plus-one-resolver",
960
+ "graphql-query-depth-unbounded",
961
+ "guard-query-per-request",
962
+ "hardcoded-secret",
963
+ "heavy-media-in-request-handler",
964
+ "high-branch-complexity",
965
+ "http-call-without-timeout",
966
+ "index-missing-filter",
967
+ "index-missing-foreign-key",
968
+ "index-missing-order",
969
+ "index-redundant-prefix",
970
+ "index-unusable-expression",
971
+ "index-unusable-pattern",
972
+ "insecure-cipher",
973
+ "insecure-deserialization",
974
+ "insecure-random-for-secret",
975
+ "interval-not-cleared",
976
+ "invalid-typeof-comparison",
977
+ "java-des-cipher",
978
+ "java-fixed-regex-in-loop",
979
+ "java-jdbc-query-in-loop",
980
+ "java-objectinputstream-request-deserialization",
981
+ "java-resource-without-try",
982
+ "java-runtime-exec",
983
+ "java-shared-date-format",
984
+ "java-sql-string-concat",
985
+ "java-string-concat-in-loop",
986
+ "js-fixed-regexp-in-loop",
987
+ "js-yaml-unsafe-schema",
988
+ "json-parse-unguarded",
989
+ "json-roundtrip-clone",
990
+ "json-stringify-in-loop",
991
+ "jsx-javascript-url",
992
+ "jwt-decode-for-auth",
993
+ "jwt-none-algorithm",
994
+ "jwt-sign-without-expiry",
995
+ "jwt-verify-without-algorithms",
996
+ "jwt-weak-secret-literal",
997
+ "knex-raw-dynamic-text",
998
+ "known-reads-awaited-serially",
999
+ "kotlin-run-blocking-in-suspend",
1000
+ "kubernetes-privileged-container",
1001
+ "kysely-scope-unverified",
1002
+ "large-class",
1003
+ "large-module",
1004
+ "ldap-filter-injection",
1005
+ "list-count-per-request",
1006
+ "list-query-overfetch",
1007
+ "llm-call-without-max-tokens",
1008
+ "long-parameter-list",
1009
+ "loop-copy-accumulator",
1010
+ "loop-index-past-length",
1011
+ "lossy-same-file-text-rewrite",
1012
+ "mass-assignment",
1013
+ "migration-breaking-drop",
1014
+ "migration-breaking-rename",
1015
+ "migration-column-type-rewrite",
1016
+ "migration-concurrent-in-transaction",
1017
+ "migration-constraint-not-valid",
1018
+ "migration-constraint-without-index",
1019
+ "migration-index-not-concurrent",
1020
+ "migration-missing-lock-timeout",
1021
+ "migration-mysql-lock-unspecified",
1022
+ "migration-mysql-table-copy",
1023
+ "migration-not-null-without-default",
1024
+ "migration-set-not-null-scan",
1025
+ "migration-sqlserver-offline-index",
1026
+ "migration-table-access-exclusive-lock",
1027
+ "migration-table-rewrite-command",
1028
+ "migration-unparsed",
1029
+ "migration-volatile-default",
1030
+ "mongo-collection-scan-observed",
1031
+ "mongoose-aggregate-uncast-id",
1032
+ "mongoose-hydrate-for-to-object",
1033
+ "mongoose-missing-lean",
1034
+ "mysql-dynamic-query-text",
1035
+ "nan-comparison",
1036
+ "nest-validation-without-whitelist",
1037
+ "next-image-any-remote-host",
1038
+ "next-server-env-in-client",
1039
+ "next-server-fetch-waterfall",
1040
+ "node-event-listener-leak",
1041
+ "node-sync-compression-in-async",
1042
+ "node-sync-crypto-in-async",
1043
+ "node-sync-fs-in-async",
1044
+ "node-sync-process-in-async",
1045
+ "nosql-operator-injection",
1046
+ "notification-send-in-loop",
1047
+ "numeric-array-default-sort",
1048
+ "numeric-sort-for-extreme",
1049
+ "open-redirect",
1050
+ "orm-cartesian-include",
1051
+ "orm-count-materialization",
1052
+ "orm-deep-offset",
1053
+ "orm-query-in-loop",
1054
+ "parse-failure-resets-file",
1055
+ "password-hash-in-response",
1056
+ "password-hash-pure-js",
1057
+ "password-hash-sync-in-async",
1058
+ "path-traversal",
1059
+ "payment-missing-idempotency-key",
1060
+ "pg-advisory-lock-session",
1061
+ "pg-count-materialization",
1062
+ "pg-dynamic-query-text",
1063
+ "pg-filter-materialization",
1064
+ "pg-first-materialization",
1065
+ "pg-listen-session",
1066
+ "pg-query-in-loop",
1067
+ "pg-top-k-materialization",
1068
+ "pg-transaction-on-pool",
1069
+ "pg-unreleased-checkout",
1070
+ "php-eloquent-query-in-loop",
1071
+ "plaintext-password-storage",
1072
+ "pool-created-per-request-or-item",
1073
+ "pool-without-connection-timeout",
1074
+ "postmessage-missing-origin-check",
1075
+ "prisma-count-for-existence",
1076
+ "prisma-count-materialization",
1077
+ "prisma-dependent-writes",
1078
+ "prisma-distinct-in-memory",
1079
+ "prisma-filter-materialization",
1080
+ "prisma-first-materialization",
1081
+ "prisma-query-in-loop",
1082
+ "prisma-raw-unsafe-dynamic",
1083
+ "prisma-read-modify-write",
1084
+ "prisma-relation-count-in-list",
1085
+ "prisma-scope-unverified",
1086
+ "prisma-top-k-materialization",
1087
+ "prisma-transaction-client-escape",
1088
+ "promise-combinator-serial-await",
1089
+ "promise-return-escapes-catch",
1090
+ "prototype-pollution",
1091
+ "python-bare-except",
1092
+ "python-blocking-sleep-in-async",
1093
+ "python-copy-growing-list",
1094
+ "python-file-not-closed",
1095
+ "python-fixed-regex-in-loop",
1096
+ "python-insecure-deserialization",
1097
+ "python-interactive-debugger",
1098
+ "python-mutated-mutable-default",
1099
+ "python-n-plus-one-orm-loop",
1100
+ "python-requests-tls-verify-disabled",
1101
+ "python-requests-without-timeout",
1102
+ "python-sqlite-unbound-value",
1103
+ "python-subprocess-shell-true",
1104
+ "python-swallowed-exception",
1105
+ "python-sync-requests-in-async",
1106
+ "python-unbounded-comprehension",
1107
+ "python-unsafe-yaml-load",
1108
+ "query-mutates-state",
1109
+ "query-runner-not-released",
1110
+ "queue-add-in-loop",
1111
+ "raw-content-disposition-filename",
1112
+ "react-async-effect-callback",
1113
+ "react-component-defined-in-component",
1114
+ "react-context-value-recreated",
1115
+ "react-dangerously-set-inner-html",
1116
+ "react-effect-sets-state-every-render",
1117
+ "react-fetch-in-effect-no-abort",
1118
+ "react-index-as-key",
1119
+ "react-inline-object-in-jsx-prop",
1120
+ "react-list-missing-key",
1121
+ "react-missing-cleanup",
1122
+ "react-state-mutated-in-place",
1123
+ "rebuild-lookup-in-loop",
1124
+ "redis-command-in-loop",
1125
+ "redis-incr-then-expire",
1126
+ "redis-keys-command",
1127
+ "reduce-copy-accumulator",
1128
+ "reflected-xss-response",
1129
+ "regex-catastrophic-backtracking",
1130
+ "regex-from-input",
1131
+ "repeated-workbook-decode",
1132
+ "request-number-unvalidated",
1133
+ "request-selected-executable",
1134
+ "retry-without-backoff",
1135
+ "return-in-finally",
1136
+ "return-newline",
1137
+ "ruby-active-record-query-in-loop",
1138
+ "rust-blocking-std-in-async",
1139
+ "rust-clone-in-loop",
1140
+ "rust-command-shell",
1141
+ "rust-fixed-regex-in-loop",
1142
+ "rust-format-in-loop",
1143
+ "rust-mutex-guard-across-await",
1144
+ "rust-reqwest-danger-accept-invalid-certs",
1145
+ "rust-unsafe-raw-pointer-deref",
1146
+ "rust-unwrap-in-production",
1147
+ "same-file-stream-truncation",
1148
+ "secret-compared-non-constant-time",
1149
+ "secret-in-log",
1150
+ "secret-in-url-query",
1151
+ "sequelize-dynamic-query-text",
1152
+ "sequential-http-in-loop",
1153
+ "serial-awaits-in-literal",
1154
+ "server-action-missing-auth",
1155
+ "service-query-in-loop",
1156
+ "session-memory-store",
1157
+ "sql-insert-truncated-at-semicolon",
1158
+ "sql-select-star-in-query",
1159
+ "ssrf-redirect-bypass",
1160
+ "ssrf-request-url",
1161
+ "storage-object-public-acl",
1162
+ "stray-console",
1163
+ "stream-pipe-unhandled-error",
1164
+ "swallowed-error",
1165
+ "switch-not-exhaustive",
1166
+ "template-autoescape-disabled",
1167
+ "template-injection",
1168
+ "template-raw-html-binding",
1169
+ "test-cleanup-after-await",
1170
+ "throw-non-error",
1171
+ "tls-verification-disabled",
1172
+ "trust-boundary-violation",
1173
+ "ts-suppression-without-reason",
1174
+ "tsconfig-strict-disabled",
1175
+ "typeorm-dynamic-query-text",
1176
+ "typeorm-existence-materialization",
1177
+ "typeorm-load-then-save",
1178
+ "typeorm-transaction-client-escape",
1179
+ "typeorm-transaction-in-loop",
1180
+ "typeorm-unused-count",
1181
+ "typeorm-wide-projection",
1182
+ "unbounded-list-query",
1183
+ "unbounded-module-cache",
1184
+ "unbounded-promise-all",
1185
+ "uncaught-exception-continues",
1186
+ "unchecked-json-cast",
1187
+ "unguarded-boundary-access",
1188
+ "unreachable-code",
1189
+ "unreferenced-file",
1190
+ "unsafe-wide-type",
1191
+ "unused-export",
1192
+ "unused-import",
1193
+ "unused-local-function",
1194
+ "unused-local-variable",
1195
+ "upload-client-filename",
1196
+ "upload-without-size-limit",
1197
+ "vm-sandbox-escape",
1198
+ "vue-v-for-missing-key",
1199
+ "vue-v-html-unsanitized",
1200
+ "vue-watch-missing-cleanup",
1201
+ "weak-hash",
1202
+ "weak-password-hash",
1203
+ "webhook-body-without-verification",
1204
+ "webhook-missing-idempotency-check",
1205
+ "whole-payload-in-memory",
1206
+ "xml-external-entities",
1207
+ "xpath-injection",
1208
+ "zip-slip-extraction"
1209
+ ]
1210
+ },
1211
+ {
1212
+ "pattern": "^project-[a-z0-9]+(?:-[a-z0-9]+)*--[a-z0-9]+(?:-[a-z0-9]+)*$"
1213
+ }
668
1214
  ]
669
1215
  },
670
1216
  "additionalProperties": {
@@ -677,54 +1223,349 @@
677
1223
  "properties": {
678
1224
  "level": {
679
1225
  "enum": ["off", "warn", "error"]
1226
+ }
1227
+ },
1228
+ "required": ["level"],
1229
+ "additionalProperties": false
1230
+ }
1231
+ ]
1232
+ },
1233
+ "properties": {
1234
+ "deep-control-flow": {
1235
+ "oneOf": [
1236
+ {
1237
+ "enum": ["off", "warn", "error"]
1238
+ },
1239
+ {
1240
+ "type": "object",
1241
+ "properties": {
1242
+ "level": {
1243
+ "enum": ["off", "warn", "error"]
1244
+ },
1245
+ "options": {
1246
+ "type": "object",
1247
+ "properties": {
1248
+ "maxDepth": {
1249
+ "type": "integer",
1250
+ "minimum": 1
1251
+ }
1252
+ },
1253
+ "additionalProperties": false
1254
+ }
680
1255
  },
681
- "options": {
682
- "type": "object",
683
- "properties": {
684
- "maxDepth": {
685
- "type": "integer",
686
- "minimum": 1
1256
+ "required": ["level"],
1257
+ "additionalProperties": false
1258
+ }
1259
+ ]
1260
+ },
1261
+ "high-branch-complexity": {
1262
+ "oneOf": [
1263
+ {
1264
+ "enum": ["off", "warn", "error"]
1265
+ },
1266
+ {
1267
+ "type": "object",
1268
+ "properties": {
1269
+ "level": {
1270
+ "enum": ["off", "warn", "error"]
1271
+ },
1272
+ "options": {
1273
+ "type": "object",
1274
+ "properties": {
1275
+ "maxComplexity": {
1276
+ "type": "integer",
1277
+ "minimum": 1
1278
+ }
687
1279
  },
688
- "maxComplexity": {
689
- "type": "integer",
690
- "minimum": 1
1280
+ "additionalProperties": false
1281
+ }
1282
+ },
1283
+ "required": ["level"],
1284
+ "additionalProperties": false
1285
+ }
1286
+ ]
1287
+ },
1288
+ "long-parameter-list": {
1289
+ "oneOf": [
1290
+ {
1291
+ "enum": ["off", "warn", "error"]
1292
+ },
1293
+ {
1294
+ "type": "object",
1295
+ "properties": {
1296
+ "level": {
1297
+ "enum": ["off", "warn", "error"]
1298
+ },
1299
+ "options": {
1300
+ "type": "object",
1301
+ "properties": {
1302
+ "maxParams": {
1303
+ "type": "integer",
1304
+ "minimum": 1
1305
+ }
691
1306
  },
692
- "maxParams": {
693
- "type": "integer",
694
- "minimum": 1
1307
+ "additionalProperties": false
1308
+ }
1309
+ },
1310
+ "required": ["level"],
1311
+ "additionalProperties": false
1312
+ }
1313
+ ]
1314
+ },
1315
+ "large-module": {
1316
+ "oneOf": [
1317
+ {
1318
+ "enum": ["off", "warn", "error"]
1319
+ },
1320
+ {
1321
+ "type": "object",
1322
+ "properties": {
1323
+ "level": {
1324
+ "enum": ["off", "warn", "error"]
1325
+ },
1326
+ "options": {
1327
+ "type": "object",
1328
+ "properties": {
1329
+ "maxLines": {
1330
+ "type": "integer",
1331
+ "minimum": 1
1332
+ }
695
1333
  },
696
- "maxLines": {
697
- "type": "integer",
698
- "minimum": 1
1334
+ "additionalProperties": false
1335
+ }
1336
+ },
1337
+ "required": ["level"],
1338
+ "additionalProperties": false
1339
+ }
1340
+ ]
1341
+ },
1342
+ "large-class": {
1343
+ "oneOf": [
1344
+ {
1345
+ "enum": ["off", "warn", "error"]
1346
+ },
1347
+ {
1348
+ "type": "object",
1349
+ "properties": {
1350
+ "level": {
1351
+ "enum": ["off", "warn", "error"]
1352
+ },
1353
+ "options": {
1354
+ "type": "object",
1355
+ "properties": {
1356
+ "maxMethods": {
1357
+ "type": "integer",
1358
+ "minimum": 1
1359
+ },
1360
+ "maxLines": {
1361
+ "type": "integer",
1362
+ "minimum": 1
1363
+ }
699
1364
  },
700
- "maxMethods": {
701
- "type": "integer",
702
- "minimum": 1
1365
+ "additionalProperties": false
1366
+ }
1367
+ },
1368
+ "required": ["level"],
1369
+ "additionalProperties": false
1370
+ }
1371
+ ]
1372
+ },
1373
+ "bcrypt-low-cost": {
1374
+ "oneOf": [
1375
+ {
1376
+ "enum": ["off", "warn", "error"]
1377
+ },
1378
+ {
1379
+ "type": "object",
1380
+ "properties": {
1381
+ "level": {
1382
+ "enum": ["off", "warn", "error"]
1383
+ },
1384
+ "options": {
1385
+ "type": "object",
1386
+ "properties": {
1387
+ "minCost": {
1388
+ "type": "integer",
1389
+ "minimum": 1,
1390
+ "maximum": 31
1391
+ }
1392
+ },
1393
+ "additionalProperties": false
1394
+ }
1395
+ },
1396
+ "required": ["level"],
1397
+ "additionalProperties": false
1398
+ }
1399
+ ]
1400
+ },
1401
+ "duplicate-implementation": {
1402
+ "oneOf": [
1403
+ {
1404
+ "enum": ["off", "warn", "error"]
1405
+ },
1406
+ {
1407
+ "type": "object",
1408
+ "properties": {
1409
+ "level": {
1410
+ "enum": ["off", "warn", "error"]
1411
+ },
1412
+ "options": {
1413
+ "type": "object",
1414
+ "properties": {
1415
+ "minNodes": {
1416
+ "type": "integer",
1417
+ "minimum": 1,
1418
+ "maximum": 8192
1419
+ }
703
1420
  },
704
- "minCost": {
705
- "type": "integer",
706
- "minimum": 1
1421
+ "additionalProperties": false
1422
+ }
1423
+ },
1424
+ "required": ["level"],
1425
+ "additionalProperties": false
1426
+ }
1427
+ ]
1428
+ },
1429
+ "orm-deep-offset": {
1430
+ "oneOf": [
1431
+ {
1432
+ "enum": ["off", "warn", "error"]
1433
+ },
1434
+ {
1435
+ "type": "object",
1436
+ "properties": {
1437
+ "level": {
1438
+ "enum": ["off", "warn", "error"]
1439
+ },
1440
+ "options": {
1441
+ "type": "object",
1442
+ "properties": {
1443
+ "maxOffset": {
1444
+ "type": "integer",
1445
+ "minimum": 1
1446
+ }
707
1447
  },
708
- "maxBatchSize": {
709
- "type": "integer",
710
- "minimum": 1
1448
+ "additionalProperties": false
1449
+ }
1450
+ },
1451
+ "required": ["level"],
1452
+ "additionalProperties": false
1453
+ }
1454
+ ]
1455
+ },
1456
+ "upload-without-size-limit": {
1457
+ "oneOf": [
1458
+ {
1459
+ "enum": ["off", "warn", "error"]
1460
+ },
1461
+ {
1462
+ "type": "object",
1463
+ "properties": {
1464
+ "level": {
1465
+ "enum": ["off", "warn", "error"]
1466
+ },
1467
+ "options": {
1468
+ "type": "object",
1469
+ "properties": {
1470
+ "maxBytes": {
1471
+ "type": "integer",
1472
+ "minimum": 1
1473
+ }
711
1474
  },
712
- "maxOffset": {
713
- "type": "integer",
714
- "minimum": 1
1475
+ "additionalProperties": false
1476
+ }
1477
+ },
1478
+ "required": ["level"],
1479
+ "additionalProperties": false
1480
+ }
1481
+ ]
1482
+ },
1483
+ "pool-without-connection-timeout": {
1484
+ "oneOf": [
1485
+ {
1486
+ "enum": ["off", "warn", "error"]
1487
+ },
1488
+ {
1489
+ "type": "object",
1490
+ "properties": {
1491
+ "level": {
1492
+ "enum": ["off", "warn", "error"]
1493
+ },
1494
+ "options": {
1495
+ "type": "object",
1496
+ "properties": {
1497
+ "connectionTimeoutMillis": {
1498
+ "type": "integer",
1499
+ "minimum": 1,
1500
+ "maximum": 2147483647
1501
+ }
715
1502
  },
716
- "maxBytes": {
717
- "type": "integer",
718
- "minimum": 1
719
- }
1503
+ "additionalProperties": false
1504
+ }
1505
+ },
1506
+ "required": ["level"],
1507
+ "additionalProperties": false
1508
+ }
1509
+ ]
1510
+ },
1511
+ "llm-call-without-max-tokens": {
1512
+ "oneOf": [
1513
+ {
1514
+ "enum": ["off", "warn", "error"]
1515
+ },
1516
+ {
1517
+ "type": "object",
1518
+ "properties": {
1519
+ "level": {
1520
+ "enum": ["off", "warn", "error"]
720
1521
  },
721
- "additionalProperties": false
722
- }
1522
+ "options": {
1523
+ "type": "object",
1524
+ "properties": {
1525
+ "maxOutputTokens": {
1526
+ "type": "integer",
1527
+ "minimum": 1,
1528
+ "maximum": 9007199254740991
1529
+ }
1530
+ },
1531
+ "additionalProperties": false
1532
+ }
1533
+ },
1534
+ "required": ["level"],
1535
+ "additionalProperties": false
1536
+ }
1537
+ ]
1538
+ },
1539
+ "stray-console": {
1540
+ "oneOf": [
1541
+ {
1542
+ "enum": ["off", "warn", "error"]
723
1543
  },
724
- "required": ["level"],
725
- "additionalProperties": false
726
- }
727
- ]
1544
+ {
1545
+ "type": "object",
1546
+ "properties": {
1547
+ "level": {
1548
+ "enum": ["off", "warn", "error"]
1549
+ },
1550
+ "options": {
1551
+ "type": "object",
1552
+ "properties": {
1553
+ "allowedMethods": {
1554
+ "type": "array",
1555
+ "items": {
1556
+ "type": "string",
1557
+ "enum": ["log", "info", "debug", "warn", "error", "trace", "dir", "table"]
1558
+ }
1559
+ }
1560
+ },
1561
+ "additionalProperties": false
1562
+ }
1563
+ },
1564
+ "required": ["level"],
1565
+ "additionalProperties": false
1566
+ }
1567
+ ]
1568
+ }
728
1569
  }
729
1570
  }
730
1571
  },
@@ -734,7 +1575,7 @@
734
1575
  },
735
1576
  "performance": {
736
1577
  "type": "object",
737
- "description": "The query policy: prismaScopes, drizzleScopes, parallelReads and fireAndForget.",
1578
+ "description": "The query policy: prismaScopes, drizzleScopes, kyselyScopes, parallelReads and fireAndForget.",
738
1579
  "properties": {
739
1580
  "prismaScopes": {
740
1581
  "type": "object"
@@ -742,8 +1583,34 @@
742
1583
  "drizzleScopes": {
743
1584
  "type": "object"
744
1585
  },
1586
+ "kyselyScopes": {
1587
+ "type": "object"
1588
+ },
745
1589
  "parallelReads": {
746
- "type": "array"
1590
+ "type": "array",
1591
+ "minItems": 1,
1592
+ "items": {
1593
+ "type": "object",
1594
+ "properties": {
1595
+ "from": {
1596
+ "type": "string",
1597
+ "description": "A stable module specifier for the read functions.",
1598
+ "pattern": "^(?:#|@(?:[\\w-][\\w.-]*)?/)?[\\w-][\\w.-]*(?:/[\\w-][\\w.-]*)*$"
1599
+ },
1600
+ "exports": {
1601
+ "type": "array",
1602
+ "description": "Distinct named exports that can be read independently.",
1603
+ "minItems": 2,
1604
+ "uniqueItems": true,
1605
+ "items": {
1606
+ "type": "string",
1607
+ "pattern": "^[A-Za-z_$][\\w$]*$"
1608
+ }
1609
+ }
1610
+ },
1611
+ "required": ["from", "exports"],
1612
+ "additionalProperties": false
1613
+ }
747
1614
  },
748
1615
  "fireAndForget": {
749
1616
  "type": "array",
@@ -757,6 +1624,35 @@
757
1624
  "minProperties": 1,
758
1625
  "additionalProperties": false
759
1626
  },
1627
+ "security": {
1628
+ "type": "object",
1629
+ "description": "Optional trusted imports for review guidance on security findings.",
1630
+ "properties": {
1631
+ "trustedBindings": {
1632
+ "type": "array",
1633
+ "uniqueItems": true,
1634
+ "items": {
1635
+ "type": "object",
1636
+ "properties": {
1637
+ "module": {
1638
+ "type": "string",
1639
+ "pattern": "^[A-Za-z0-9_@./:#-]+$"
1640
+ },
1641
+ "export": {
1642
+ "type": "string",
1643
+ "pattern": "^[A-Za-z_$][A-Za-z0-9_$]*$"
1644
+ },
1645
+ "use": {
1646
+ "enum": ["auth-route-middleware", "redirect-target-predicate"]
1647
+ }
1648
+ },
1649
+ "required": ["module", "export", "use"],
1650
+ "additionalProperties": false
1651
+ }
1652
+ }
1653
+ },
1654
+ "additionalProperties": false
1655
+ },
760
1656
  "maintainability": {
761
1657
  "type": "object",
762
1658
  "description": "The content of the maintainability policy file.",
@@ -768,7 +1664,25 @@
768
1664
  }
769
1665
  },
770
1666
  "boundaries": {
771
- "type": "array"
1667
+ "type": "array",
1668
+ "items": {
1669
+ "type": "object",
1670
+ "properties": {
1671
+ "from": {
1672
+ "$ref": "#/definitions/projectRelativeFolder"
1673
+ },
1674
+ "disallow": {
1675
+ "type": "array",
1676
+ "description": "Folders that source files under from may not import.",
1677
+ "minItems": 1,
1678
+ "items": {
1679
+ "$ref": "#/definitions/projectRelativeFolder"
1680
+ }
1681
+ }
1682
+ },
1683
+ "required": ["from", "disallow"],
1684
+ "additionalProperties": false
1685
+ }
772
1686
  },
773
1687
  "placement": {
774
1688
  "type": "array"
@@ -781,6 +1695,21 @@
781
1695
  }
782
1696
  },
783
1697
  "additionalProperties": false
1698
+ },
1699
+ "extends": {
1700
+ "type": "string",
1701
+ "minLength": 1,
1702
+ "pattern": "^(?![\\w+.-]+:|[/\\\\]|\\s)(?!.*\\u0000).*[^\\s]$",
1703
+ "description": "Path to a local parent configuration, relative to the declaring file."
1704
+ },
1705
+ "rulePacks": {
1706
+ "type": "array",
1707
+ "description": "Project rule packs relative to this configuration file.",
1708
+ "items": {
1709
+ "type": "string",
1710
+ "minLength": 1,
1711
+ "pattern": "\\.loadwise-rules\\.json$"
1712
+ }
784
1713
  }
785
1714
  },
786
1715
  "additionalProperties": false