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