loadwise 0.8.0 → 0.9.0

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