loadwise 0.6.2 → 0.8.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 (278) hide show
  1. package/README.md +175 -115
  2. package/dist/bin/loadwise.js +132 -67
  3. package/dist/lib/accessibility/analyze.js +5 -3
  4. package/dist/lib/accessibility/angular-inline.js +9 -11
  5. package/dist/lib/accessibility/angular-literal.js +39 -0
  6. package/dist/lib/accessibility/form-context.js +36 -0
  7. package/dist/lib/accessibility/frame-head.js +92 -0
  8. package/dist/lib/accessibility/frame-viewport.js +149 -0
  9. package/dist/lib/accessibility/frontend-detect.js +6 -5
  10. package/dist/lib/accessibility/jsx-elements.js +13 -3
  11. package/dist/lib/accessibility/markup-files.js +7 -2
  12. package/dist/lib/accessibility/rule-ids.js +3 -0
  13. package/dist/lib/accessibility/rules.js +128 -41
  14. package/dist/lib/accessibility/site-fixes/buttons.js +5 -1
  15. package/dist/lib/accessibility/template-attributes.js +5 -3
  16. package/dist/lib/accessibility/template-elements.js +25 -6
  17. package/dist/lib/accessibility/template-file.js +40 -25
  18. package/dist/lib/accessibility/usage.js +10 -2
  19. package/dist/lib/editor/accessibility-examples.js +6 -1
  20. package/dist/lib/editor/actions.js +46 -7
  21. package/dist/lib/editor/apply-fix.js +69 -4
  22. package/dist/lib/editor/configured-setup.js +63 -0
  23. package/dist/lib/editor/diagnostics.js +206 -17
  24. package/dist/lib/editor/dismissals.js +85 -26
  25. package/dist/lib/editor/editor-document.js +5 -2
  26. package/dist/lib/editor/editor-launcher.js +170 -0
  27. package/dist/lib/editor/fix-edits.js +19 -0
  28. package/dist/lib/editor/jetbrains-setup.js +53 -0
  29. package/dist/lib/editor/language-server.js +80 -24
  30. package/dist/lib/editor/managed-config.js +37 -0
  31. package/dist/lib/editor/native-setup.js +86 -0
  32. package/dist/lib/editor/perf-watch.js +8 -6
  33. package/dist/lib/editor/release-vsix.js +61 -0
  34. package/dist/lib/editor/reliability-examples.js +15 -0
  35. package/dist/lib/editor/scan-session.js +29 -8
  36. package/dist/lib/editor/server-commands.js +38 -9
  37. package/dist/lib/editor/setup-server.js +87 -0
  38. package/dist/lib/editor/setup-vim.js +63 -0
  39. package/dist/lib/editor/setup.js +131 -0
  40. package/dist/lib/editor/stdio-setup.js +6 -0
  41. package/dist/lib/editor/workspace-files.js +61 -7
  42. package/dist/lib/editor/workspace-paths.js +41 -1
  43. package/dist/lib/maintainability/analysis/analyze-source.js +1 -1
  44. package/dist/lib/maintainability/architecture/architecture.js +4 -4
  45. package/dist/lib/maintainability/cli/changed-lines.js +20 -2
  46. package/dist/lib/maintainability/cli/inputs.js +12 -3
  47. package/dist/lib/maintainability/cli.js +18 -5
  48. package/dist/lib/maintainability/entry-points/entry-points.js +44 -15
  49. package/dist/lib/maintainability/entry-points/html-entry-points.js +5 -1
  50. package/dist/lib/maintainability/examples.js +4 -0
  51. package/dist/lib/maintainability/quality/functions.js +9 -6
  52. package/dist/lib/maintainability/quality/limits.js +19 -0
  53. package/dist/lib/maintainability/quality/size-limits.js +8 -2
  54. package/dist/lib/maintainability/quality/stray-console.js +62 -1
  55. package/dist/lib/maintainability/quality/tsconfig-strict.js +2 -0
  56. package/dist/lib/maintainability/rule-ids.js +3 -0
  57. package/dist/lib/maintainability/scan-changed.js +4 -1
  58. package/dist/lib/maintainability/scan-worker.js +6 -2
  59. package/dist/lib/maintainability/scan.js +21 -8
  60. package/dist/lib/maintainability/site-fixes/unused-bindings.js +138 -3
  61. package/dist/lib/maintainability/unused/module-usage.js +43 -21
  62. package/dist/lib/maintainability/unused/unused-bindings.js +39 -4
  63. package/dist/lib/maintainability/unused/unused-modules.js +5 -10
  64. package/dist/lib/performance/analysis/source-inputs.js +7 -2
  65. package/dist/lib/performance/analysis/source-options.js +7 -6
  66. package/dist/lib/performance/analyze.js +16 -3
  67. package/dist/lib/performance/cli/changed-lines.js +8 -1
  68. package/dist/lib/performance/cli/cli-arguments.js +19 -8
  69. package/dist/lib/performance/cli/cli-output.js +4 -0
  70. package/dist/lib/performance/cli/cli-scan.js +21 -2
  71. package/dist/lib/performance/cli.js +16 -7
  72. package/dist/lib/performance/collections/memory-growth.js +55 -12
  73. package/dist/lib/performance/contracts/openapi.js +13 -4
  74. package/dist/lib/performance/datastores/pg-integrity.js +68 -22
  75. package/dist/lib/performance/datastores/pg-session-release.js +114 -0
  76. package/dist/lib/performance/datastores/pg-session-sql.js +144 -0
  77. package/dist/lib/performance/datastores/pooling.js +62 -3
  78. package/dist/lib/performance/datastores/redis.js +94 -18
  79. package/dist/lib/performance/datastores/session-store.js +2 -1
  80. package/dist/lib/performance/db/checks.js +19 -8
  81. package/dist/lib/performance/db/gateway.js +3 -1
  82. package/dist/lib/performance/db/plan-estimates.js +4 -4
  83. package/dist/lib/performance/engine/native-syntax.js +3 -0
  84. package/dist/lib/performance/engine/native.js +11 -7
  85. package/dist/lib/performance/evidence/plans.js +7 -5
  86. package/dist/lib/performance/evidence/traces.js +21 -1
  87. package/dist/lib/performance/frontend/angular-teardown.js +96 -0
  88. package/dist/lib/performance/frontend/effect-cleanup.js +148 -0
  89. package/dist/lib/performance/frontend/frontend-dom-perf.js +14 -2
  90. package/dist/lib/performance/frontend/frontend-helpers.js +1 -9
  91. package/dist/lib/performance/frontend/frontend-perf.js +149 -74
  92. package/dist/lib/performance/migrations/extract-code-sql.js +16 -4
  93. package/dist/lib/performance/migrations/extract-code.js +13 -5
  94. package/dist/lib/performance/migrations/extract-sql.js +82 -38
  95. package/dist/lib/performance/migrations/operations.js +56 -13
  96. package/dist/lib/performance/migrations/postgres-lock-timeout.js +52 -0
  97. package/dist/lib/performance/migrations/postgres-registry.js +127 -26
  98. package/dist/lib/performance/migrations/postgres-settings.js +78 -0
  99. package/dist/lib/performance/migrations/rules-postgres-add-column.js +3 -3
  100. package/dist/lib/performance/migrations/rules-postgres-shared.js +9 -0
  101. package/dist/lib/performance/migrations/rules-postgres.js +88 -39
  102. package/dist/lib/performance/orm/offset-pagination.js +6 -4
  103. package/dist/lib/performance/orm/prisma-aggregates.js +69 -18
  104. package/dist/lib/performance/orm/unbounded-list-chain.js +29 -0
  105. package/dist/lib/performance/orm/unbounded-list-queries.js +18 -13
  106. package/dist/lib/performance/polyglot.js +111 -14
  107. package/dist/lib/performance/projects.js +3 -3
  108. package/dist/lib/performance/query-loops/sequential-loops.js +1 -0
  109. package/dist/lib/performance/request/backend-mastery.js +151 -42
  110. package/dist/lib/performance/request/bulk-listener-registration.js +111 -0
  111. package/dist/lib/performance/request/fastify-receivers.js +93 -0
  112. package/dist/lib/performance/request/fresh-loop-socket.js +103 -0
  113. package/dist/lib/performance/request/mongoose-lean.js +298 -46
  114. package/dist/lib/performance/request/node-event-listener-leak.js +99 -5
  115. package/dist/lib/performance/request/phase5-ast.js +6 -7
  116. package/dist/lib/performance/request/phase5-rules.js +204 -23
  117. package/dist/lib/performance/request/request-handlers.js +120 -23
  118. package/dist/lib/performance/request/sql-select-star.js +150 -0
  119. package/dist/lib/performance/request/unbounded-promise-all.js +54 -29
  120. package/dist/lib/performance/request/upload-limits.js +5 -1
  121. package/dist/lib/performance/site-fix.js +4 -4
  122. package/dist/lib/performance/site-fixes/backend-mastery-fixes.js +298 -16
  123. package/dist/lib/performance/site-fixes/collection-existence.js +2 -1
  124. package/dist/lib/performance/site-fixes/collections.js +1 -2
  125. package/dist/lib/performance/site-fixes/frontend-fixes.js +358 -14
  126. package/dist/lib/performance/site-fixes/helpers.js +3 -4
  127. package/dist/lib/performance/site-fixes/integrity.js +2 -4
  128. package/dist/lib/performance/site-fixes/migration-context.js +8 -1
  129. package/dist/lib/performance/site-fixes/migration-lock-rules.js +66 -30
  130. package/dist/lib/performance/site-fixes/prisma-aggregates.js +29 -9
  131. package/dist/lib/performance/site-fixes/small-rewrites.js +168 -10
  132. package/dist/lib/performance/site-fixes/sync-calls.js +14 -12
  133. package/dist/lib/performance/site-fixes/upload-limits.js +13 -7
  134. package/dist/lib/performance/sql/mysql-tokens.js +38 -12
  135. package/dist/lib/reliability/boundary-access.js +114 -57
  136. package/dist/lib/reliability/react-bugs.js +29 -7
  137. package/dist/lib/reliability/resource-leak-intervals.js +258 -0
  138. package/dist/lib/reliability/resource-leaks.js +209 -195
  139. package/dist/lib/reliability/rule-ids.js +10 -1
  140. package/dist/lib/reliability/site-fixes/resource-leaks.js +16 -1
  141. package/dist/lib/reliability/swallowed-errors.js +107 -21
  142. package/dist/lib/reliability/test-cleanup-after-await.js +92 -18
  143. package/dist/lib/reliability/usage.js +16 -5
  144. package/dist/lib/reliability/walk.js +3 -2
  145. package/dist/lib/security/auth-crypto/hashing.js +24 -8
  146. package/dist/lib/security/auth-crypto/jwt.js +21 -6
  147. package/dist/lib/security/auth-crypto/secrets.js +44 -1
  148. package/dist/lib/security/auth-crypto/shared.js +3 -1
  149. package/dist/lib/security/auth-crypto/signing-algorithm.js +79 -0
  150. package/dist/lib/security/auth-crypto/transport-and-ciphers.js +85 -1
  151. package/dist/lib/security/cli.js +21 -6
  152. package/dist/lib/security/cookie-credentials.js +115 -0
  153. package/dist/lib/security/cookie-csrf.js +241 -0
  154. package/dist/lib/security/deps/advisory.js +50 -109
  155. package/dist/lib/security/deps/cli.js +1 -1
  156. package/dist/lib/security/deps/cvss-score.js +14 -0
  157. package/dist/lib/security/deps/fixed-version.js +97 -0
  158. package/dist/lib/security/deps/lockfiles.js +135 -74
  159. package/dist/lib/security/deps/osv.js +11 -3
  160. package/dist/lib/security/deps/scan.js +47 -20
  161. package/dist/lib/security/deps/yarn-lock.js +158 -0
  162. package/dist/lib/security/examples/injection.cjs +4 -0
  163. package/dist/lib/security/exposure/cookies.js +17 -2
  164. package/dist/lib/security/exposure/cors-origin-regex.js +2 -3
  165. package/dist/lib/security/exposure/frontend-security.js +21 -14
  166. package/dist/lib/security/exposure/jsx-url.js +18 -33
  167. package/dist/lib/security/exposure/logging.js +49 -10
  168. package/dist/lib/security/exposure/prototype-pollution.js +126 -56
  169. package/dist/lib/security/exposure/react-html.js +26 -0
  170. package/dist/lib/security/exposure/reflected-xss.js +34 -5
  171. package/dist/lib/security/files/compose.js +126 -1
  172. package/dist/lib/security/files/dockerfile.js +62 -4
  173. package/dist/lib/security/files/index.js +1 -1
  174. package/dist/lib/security/injection/command.js +46 -18
  175. package/dist/lib/security/injection/index.js +2 -0
  176. package/dist/lib/security/injection/ldap.js +86 -0
  177. package/dist/lib/security/injection/nosql.js +28 -4
  178. package/dist/lib/security/injection/redos.js +1 -1
  179. package/dist/lib/security/injection/rule-ids.js +1 -0
  180. package/dist/lib/security/injection/shared.js +5 -1
  181. package/dist/lib/security/injection/sql.js +28 -13
  182. package/dist/lib/security/lexical-declaration.js +113 -0
  183. package/dist/lib/security/pg-dynamic-query.js +28 -1
  184. package/dist/lib/security/pg-identifier-guards.js +107 -3
  185. package/dist/lib/security/phase5-rules.js +26 -135
  186. package/dist/lib/security/polyglot.js +2 -2
  187. package/dist/lib/security/redirect-settings.js +98 -0
  188. package/dist/lib/security/request-forgery/open-redirect.js +18 -5
  189. package/dist/lib/security/request-forgery/path-traversal.js +84 -6
  190. package/dist/lib/security/request-forgery/shared.js +1 -7
  191. package/dist/lib/security/request-forgery/ssrf.js +176 -14
  192. package/dist/lib/security/rule-descriptions.js +5 -1
  193. package/dist/lib/security/rule-ids.js +7 -0
  194. package/dist/lib/security/site-fixes/auth-crypto.js +5 -78
  195. package/dist/lib/security/site-fixes/exposure.js +21 -3
  196. package/dist/lib/security/site-fixes/files.js +11 -13
  197. package/dist/lib/security/site-fixes/frontend-security-fixes.js +2 -2
  198. package/dist/lib/security/site-fixes/injection.js +17 -4
  199. package/dist/lib/security/site-fixes/jwt.js +1 -20
  200. package/dist/lib/security/site-fixes/request-forgery.js +37 -29
  201. package/dist/lib/security/taint/binding-inputs.js +236 -0
  202. package/dist/lib/security/taint/filename-guard.js +45 -45
  203. package/dist/lib/security/taint/guards.js +14 -8
  204. package/dist/lib/security/taint/index.js +126 -154
  205. package/dist/lib/security/taint/propagate.js +43 -9
  206. package/dist/lib/security/taint/record-writes.js +161 -0
  207. package/dist/lib/security/taint/resolution-cache.js +13 -7
  208. package/dist/lib/security/taint/sanitizers.js +89 -5
  209. package/dist/lib/security/taint/trace-nodes.js +61 -0
  210. package/dist/lib/security/taint/validators.js +89 -9
  211. package/dist/lib/shared/agent/agent-init.js +28 -5
  212. package/dist/lib/shared/agent/agent-prompt.js +74 -0
  213. package/dist/lib/shared/agent/agent-session.js +6 -1
  214. package/dist/lib/shared/agent/agent-verify.js +58 -11
  215. package/dist/lib/shared/agent/git-hook.js +17 -6
  216. package/dist/lib/shared/agent/review-delivery.js +1 -1
  217. package/dist/lib/shared/agent/review-mcp.js +8 -2
  218. package/dist/lib/shared/analysis/ast-semantics.js +2 -2
  219. package/dist/lib/shared/analysis/scan-cache.js +99 -14
  220. package/dist/lib/shared/check.js +172 -20
  221. package/dist/lib/shared/cli-dispatch.js +17 -0
  222. package/dist/lib/shared/config.js +27 -10
  223. package/dist/lib/shared/explain.js +1 -1
  224. package/dist/lib/shared/fix/fix-convergence.js +19 -31
  225. package/dist/lib/shared/fix/fix-handoff.js +16 -11
  226. package/dist/lib/shared/fix/fix-imports.js +4 -162
  227. package/dist/lib/shared/fix/fix-presentation-comments.js +23 -9
  228. package/dist/lib/shared/fix/fix-presentation-prettier.js +1 -46
  229. package/dist/lib/shared/fix/fix-presentation-rows.js +45 -1
  230. package/dist/lib/shared/fix/fix-presentation.js +9 -6
  231. package/dist/lib/shared/fix/fix-safety.js +32 -1
  232. package/dist/lib/shared/fix/fix-scope.js +82 -0
  233. package/dist/lib/shared/fix/fix-terminal.js +28 -1
  234. package/dist/lib/shared/fix/fix-typecheck.js +8 -4
  235. package/dist/lib/shared/fix/import-text-edits.js +148 -0
  236. package/dist/lib/shared/fix/project-file-access.js +17 -26
  237. package/dist/lib/shared/fix/read-fix-text.js +20 -0
  238. package/dist/lib/shared/fix.js +241 -104
  239. package/dist/lib/shared/formats/finding-location.js +4 -1
  240. package/dist/lib/shared/formats/github.js +3 -3
  241. package/dist/lib/shared/formats/sarif.js +9 -3
  242. package/dist/lib/shared/report-fp.js +97 -0
  243. package/dist/lib/shared/reporting/automatic-fix-signal.js +10 -0
  244. package/dist/lib/shared/reporting/baseline.js +7 -5
  245. package/dist/lib/shared/reporting/check-text.js +50 -0
  246. package/dist/lib/shared/reporting/pillars.js +54 -19
  247. package/dist/lib/shared/reporting/source-report.js +3 -0
  248. package/dist/lib/shared/system/atomic-write.js +5 -2
  249. package/dist/lib/shared/system/glob.js +34 -8
  250. package/dist/lib/shared/system/sentry.js +222 -0
  251. package/dist/lib/shared/system/shell-argument.js +5 -1
  252. package/dist/lib/shared/system/terminal-safe.js +3 -2
  253. package/dist/lib/shared/system/terminal-style.js +131 -0
  254. package/dist/lib/shared/workspaces.js +15 -3
  255. package/docs/assets/cli-workflow.gif +0 -0
  256. package/integrations/sublime/plugin.py +22 -0
  257. package/integrations/zed/Cargo.lock +845 -0
  258. package/integrations/zed/Cargo.toml +11 -0
  259. package/integrations/zed/extension.toml +11 -0
  260. package/integrations/zed/src/lib.rs +25 -0
  261. package/package.json +15 -3
  262. package/plugin/.claude-plugin/plugin.json +1 -1
  263. package/plugin/commands/loadwise.md +11 -6
  264. package/plugin/hooks/check-edited-file.mjs +27 -5
  265. package/polyglot/performance/rules/csharp.yml +34 -5
  266. package/polyglot/performance/rules/java.yml +24 -1
  267. package/polyglot/performance/rules/python.yml +74 -2
  268. package/polyglot/performance/sgconfig.yml +1 -0
  269. package/polyglot/reliability/rules/csharp.yml +12 -6
  270. package/polyglot/reliability/rules/go.yml +86 -6
  271. package/polyglot/reliability/rules/java.yml +22 -1
  272. package/polyglot/reliability/sgconfig.yml +1 -0
  273. package/polyglot/security/rules/go.yml +100 -22
  274. package/polyglot/security/rules/python.yml +74 -6
  275. package/polyglot/security/rules/rust.yml +65 -0
  276. package/polyglot/security/sgconfig.yml +1 -0
  277. package/schema/loadwise.config.schema.json +556 -76
  278. /package/polyglot/{performance/rules → shared-rules}/input.yml +0 -0
@@ -26,6 +26,7 @@
26
26
  "type": "object",
27
27
  "propertyNames": {
28
28
  "enum": [
29
+ "a11y-aria-hidden-focus",
29
30
  "a11y-button-missing-type",
30
31
  "a11y-clickable-non-interactive",
31
32
  "a11y-heading-level-skipped",
@@ -73,6 +74,7 @@
73
74
  "database-error-in-response",
74
75
  "db-duplicate-index",
75
76
  "db-missing-index",
77
+ "db-pool-client-not-released",
76
78
  "db-seq-scan-heavy-table",
77
79
  "db-slow-query-plan",
78
80
  "db-unindexed-foreign-key",
@@ -147,6 +149,7 @@
147
149
  "known-reads-awaited-serially",
148
150
  "large-class",
149
151
  "large-module",
152
+ "ldap-filter-injection",
150
153
  "list-count-per-request",
151
154
  "list-query-overfetch",
152
155
  "llm-call-without-max-tokens",
@@ -197,10 +200,12 @@
197
200
  "password-hash-sync-in-async",
198
201
  "path-traversal",
199
202
  "payment-missing-idempotency-key",
203
+ "pg-advisory-lock-session",
200
204
  "pg-count-materialization",
201
205
  "pg-dynamic-query-text",
202
206
  "pg-filter-materialization",
203
207
  "pg-first-materialization",
208
+ "pg-listen-session",
204
209
  "pg-query-in-loop",
205
210
  "pg-top-k-materialization",
206
211
  "pg-transaction-on-pool",
@@ -293,6 +298,7 @@
293
298
  "unreferenced-file",
294
299
  "unused-export",
295
300
  "unused-import",
301
+ "unused-local-function",
296
302
  "unused-local-variable",
297
303
  "upload-client-filename",
298
304
  "upload-without-size-limit",
@@ -317,54 +323,288 @@
317
323
  "properties": {
318
324
  "level": {
319
325
  "enum": ["off", "warn", "error"]
320
- },
321
- "options": {
322
- "type": "object",
323
- "properties": {
324
- "maxDepth": {
325
- "type": "integer",
326
- "minimum": 1
326
+ }
327
+ },
328
+ "required": ["level"],
329
+ "additionalProperties": false
330
+ }
331
+ ]
332
+ },
333
+ "properties": {
334
+ "deep-control-flow": {
335
+ "oneOf": [
336
+ {
337
+ "enum": ["off", "warn", "error"]
338
+ },
339
+ {
340
+ "type": "object",
341
+ "properties": {
342
+ "level": {
343
+ "enum": ["off", "warn", "error"]
344
+ },
345
+ "options": {
346
+ "type": "object",
347
+ "properties": {
348
+ "maxDepth": {
349
+ "type": "integer",
350
+ "minimum": 1
351
+ }
327
352
  },
328
- "maxComplexity": {
329
- "type": "integer",
330
- "minimum": 1
353
+ "additionalProperties": false
354
+ }
355
+ },
356
+ "required": ["level"],
357
+ "additionalProperties": false
358
+ }
359
+ ]
360
+ },
361
+ "high-branch-complexity": {
362
+ "oneOf": [
363
+ {
364
+ "enum": ["off", "warn", "error"]
365
+ },
366
+ {
367
+ "type": "object",
368
+ "properties": {
369
+ "level": {
370
+ "enum": ["off", "warn", "error"]
371
+ },
372
+ "options": {
373
+ "type": "object",
374
+ "properties": {
375
+ "maxComplexity": {
376
+ "type": "integer",
377
+ "minimum": 1
378
+ }
331
379
  },
332
- "maxParams": {
333
- "type": "integer",
334
- "minimum": 1
380
+ "additionalProperties": false
381
+ }
382
+ },
383
+ "required": ["level"],
384
+ "additionalProperties": false
385
+ }
386
+ ]
387
+ },
388
+ "long-parameter-list": {
389
+ "oneOf": [
390
+ {
391
+ "enum": ["off", "warn", "error"]
392
+ },
393
+ {
394
+ "type": "object",
395
+ "properties": {
396
+ "level": {
397
+ "enum": ["off", "warn", "error"]
398
+ },
399
+ "options": {
400
+ "type": "object",
401
+ "properties": {
402
+ "maxParams": {
403
+ "type": "integer",
404
+ "minimum": 1
405
+ }
335
406
  },
336
- "maxLines": {
337
- "type": "integer",
338
- "minimum": 1
407
+ "additionalProperties": false
408
+ }
409
+ },
410
+ "required": ["level"],
411
+ "additionalProperties": false
412
+ }
413
+ ]
414
+ },
415
+ "large-module": {
416
+ "oneOf": [
417
+ {
418
+ "enum": ["off", "warn", "error"]
419
+ },
420
+ {
421
+ "type": "object",
422
+ "properties": {
423
+ "level": {
424
+ "enum": ["off", "warn", "error"]
425
+ },
426
+ "options": {
427
+ "type": "object",
428
+ "properties": {
429
+ "maxLines": {
430
+ "type": "integer",
431
+ "minimum": 1
432
+ }
339
433
  },
340
- "maxMethods": {
341
- "type": "integer",
342
- "minimum": 1
434
+ "additionalProperties": false
435
+ }
436
+ },
437
+ "required": ["level"],
438
+ "additionalProperties": false
439
+ }
440
+ ]
441
+ },
442
+ "large-class": {
443
+ "oneOf": [
444
+ {
445
+ "enum": ["off", "warn", "error"]
446
+ },
447
+ {
448
+ "type": "object",
449
+ "properties": {
450
+ "level": {
451
+ "enum": ["off", "warn", "error"]
452
+ },
453
+ "options": {
454
+ "type": "object",
455
+ "properties": {
456
+ "maxMethods": {
457
+ "type": "integer",
458
+ "minimum": 1
459
+ },
460
+ "maxLines": {
461
+ "type": "integer",
462
+ "minimum": 1
463
+ }
343
464
  },
344
- "minCost": {
345
- "type": "integer",
346
- "minimum": 1
465
+ "additionalProperties": false
466
+ }
467
+ },
468
+ "required": ["level"],
469
+ "additionalProperties": false
470
+ }
471
+ ]
472
+ },
473
+ "bcrypt-low-cost": {
474
+ "oneOf": [
475
+ {
476
+ "enum": ["off", "warn", "error"]
477
+ },
478
+ {
479
+ "type": "object",
480
+ "properties": {
481
+ "level": {
482
+ "enum": ["off", "warn", "error"]
483
+ },
484
+ "options": {
485
+ "type": "object",
486
+ "properties": {
487
+ "minCost": {
488
+ "type": "integer",
489
+ "minimum": 1
490
+ }
347
491
  },
348
- "maxBatchSize": {
349
- "type": "integer",
350
- "minimum": 1
492
+ "additionalProperties": false
493
+ }
494
+ },
495
+ "required": ["level"],
496
+ "additionalProperties": false
497
+ }
498
+ ]
499
+ },
500
+ "graphql-query-depth-unbounded": {
501
+ "oneOf": [
502
+ {
503
+ "enum": ["off", "warn", "error"]
504
+ },
505
+ {
506
+ "type": "object",
507
+ "properties": {
508
+ "level": {
509
+ "enum": ["off", "warn", "error"]
510
+ },
511
+ "options": {
512
+ "type": "object",
513
+ "properties": {
514
+ "maxDepth": {
515
+ "type": "integer",
516
+ "minimum": 1
517
+ }
351
518
  },
352
- "maxOffset": {
353
- "type": "integer",
354
- "minimum": 1
519
+ "additionalProperties": false
520
+ }
521
+ },
522
+ "required": ["level"],
523
+ "additionalProperties": false
524
+ }
525
+ ]
526
+ },
527
+ "graphql-batching-unbounded": {
528
+ "oneOf": [
529
+ {
530
+ "enum": ["off", "warn", "error"]
531
+ },
532
+ {
533
+ "type": "object",
534
+ "properties": {
535
+ "level": {
536
+ "enum": ["off", "warn", "error"]
537
+ },
538
+ "options": {
539
+ "type": "object",
540
+ "properties": {
541
+ "maxBatchSize": {
542
+ "type": "integer",
543
+ "minimum": 1
544
+ }
355
545
  },
356
- "maxBytes": {
357
- "type": "integer",
358
- "minimum": 1
359
- }
546
+ "additionalProperties": false
547
+ }
548
+ },
549
+ "required": ["level"],
550
+ "additionalProperties": false
551
+ }
552
+ ]
553
+ },
554
+ "orm-deep-offset": {
555
+ "oneOf": [
556
+ {
557
+ "enum": ["off", "warn", "error"]
558
+ },
559
+ {
560
+ "type": "object",
561
+ "properties": {
562
+ "level": {
563
+ "enum": ["off", "warn", "error"]
360
564
  },
361
- "additionalProperties": false
362
- }
565
+ "options": {
566
+ "type": "object",
567
+ "properties": {
568
+ "maxOffset": {
569
+ "type": "integer",
570
+ "minimum": 1
571
+ }
572
+ },
573
+ "additionalProperties": false
574
+ }
575
+ },
576
+ "required": ["level"],
577
+ "additionalProperties": false
578
+ }
579
+ ]
580
+ },
581
+ "upload-without-size-limit": {
582
+ "oneOf": [
583
+ {
584
+ "enum": ["off", "warn", "error"]
363
585
  },
364
- "required": ["level"],
365
- "additionalProperties": false
366
- }
367
- ]
586
+ {
587
+ "type": "object",
588
+ "properties": {
589
+ "level": {
590
+ "enum": ["off", "warn", "error"]
591
+ },
592
+ "options": {
593
+ "type": "object",
594
+ "properties": {
595
+ "maxBytes": {
596
+ "type": "integer",
597
+ "minimum": 1
598
+ }
599
+ },
600
+ "additionalProperties": false
601
+ }
602
+ },
603
+ "required": ["level"],
604
+ "additionalProperties": false
605
+ }
606
+ ]
607
+ }
368
608
  }
369
609
  },
370
610
  "overrides": {
@@ -384,6 +624,7 @@
384
624
  "type": "object",
385
625
  "propertyNames": {
386
626
  "enum": [
627
+ "a11y-aria-hidden-focus",
387
628
  "a11y-button-missing-type",
388
629
  "a11y-clickable-non-interactive",
389
630
  "a11y-heading-level-skipped",
@@ -431,6 +672,7 @@
431
672
  "database-error-in-response",
432
673
  "db-duplicate-index",
433
674
  "db-missing-index",
675
+ "db-pool-client-not-released",
434
676
  "db-seq-scan-heavy-table",
435
677
  "db-slow-query-plan",
436
678
  "db-unindexed-foreign-key",
@@ -505,6 +747,7 @@
505
747
  "known-reads-awaited-serially",
506
748
  "large-class",
507
749
  "large-module",
750
+ "ldap-filter-injection",
508
751
  "list-count-per-request",
509
752
  "list-query-overfetch",
510
753
  "llm-call-without-max-tokens",
@@ -555,10 +798,12 @@
555
798
  "password-hash-sync-in-async",
556
799
  "path-traversal",
557
800
  "payment-missing-idempotency-key",
801
+ "pg-advisory-lock-session",
558
802
  "pg-count-materialization",
559
803
  "pg-dynamic-query-text",
560
804
  "pg-filter-materialization",
561
805
  "pg-first-materialization",
806
+ "pg-listen-session",
562
807
  "pg-query-in-loop",
563
808
  "pg-top-k-materialization",
564
809
  "pg-transaction-on-pool",
@@ -651,6 +896,7 @@
651
896
  "unreferenced-file",
652
897
  "unused-export",
653
898
  "unused-import",
899
+ "unused-local-function",
654
900
  "unused-local-variable",
655
901
  "upload-client-filename",
656
902
  "upload-without-size-limit",
@@ -675,54 +921,288 @@
675
921
  "properties": {
676
922
  "level": {
677
923
  "enum": ["off", "warn", "error"]
678
- },
679
- "options": {
680
- "type": "object",
681
- "properties": {
682
- "maxDepth": {
683
- "type": "integer",
684
- "minimum": 1
924
+ }
925
+ },
926
+ "required": ["level"],
927
+ "additionalProperties": false
928
+ }
929
+ ]
930
+ },
931
+ "properties": {
932
+ "deep-control-flow": {
933
+ "oneOf": [
934
+ {
935
+ "enum": ["off", "warn", "error"]
936
+ },
937
+ {
938
+ "type": "object",
939
+ "properties": {
940
+ "level": {
941
+ "enum": ["off", "warn", "error"]
942
+ },
943
+ "options": {
944
+ "type": "object",
945
+ "properties": {
946
+ "maxDepth": {
947
+ "type": "integer",
948
+ "minimum": 1
949
+ }
685
950
  },
686
- "maxComplexity": {
687
- "type": "integer",
688
- "minimum": 1
951
+ "additionalProperties": false
952
+ }
953
+ },
954
+ "required": ["level"],
955
+ "additionalProperties": false
956
+ }
957
+ ]
958
+ },
959
+ "high-branch-complexity": {
960
+ "oneOf": [
961
+ {
962
+ "enum": ["off", "warn", "error"]
963
+ },
964
+ {
965
+ "type": "object",
966
+ "properties": {
967
+ "level": {
968
+ "enum": ["off", "warn", "error"]
969
+ },
970
+ "options": {
971
+ "type": "object",
972
+ "properties": {
973
+ "maxComplexity": {
974
+ "type": "integer",
975
+ "minimum": 1
976
+ }
689
977
  },
690
- "maxParams": {
691
- "type": "integer",
692
- "minimum": 1
978
+ "additionalProperties": false
979
+ }
980
+ },
981
+ "required": ["level"],
982
+ "additionalProperties": false
983
+ }
984
+ ]
985
+ },
986
+ "long-parameter-list": {
987
+ "oneOf": [
988
+ {
989
+ "enum": ["off", "warn", "error"]
990
+ },
991
+ {
992
+ "type": "object",
993
+ "properties": {
994
+ "level": {
995
+ "enum": ["off", "warn", "error"]
996
+ },
997
+ "options": {
998
+ "type": "object",
999
+ "properties": {
1000
+ "maxParams": {
1001
+ "type": "integer",
1002
+ "minimum": 1
1003
+ }
693
1004
  },
694
- "maxLines": {
695
- "type": "integer",
696
- "minimum": 1
1005
+ "additionalProperties": false
1006
+ }
1007
+ },
1008
+ "required": ["level"],
1009
+ "additionalProperties": false
1010
+ }
1011
+ ]
1012
+ },
1013
+ "large-module": {
1014
+ "oneOf": [
1015
+ {
1016
+ "enum": ["off", "warn", "error"]
1017
+ },
1018
+ {
1019
+ "type": "object",
1020
+ "properties": {
1021
+ "level": {
1022
+ "enum": ["off", "warn", "error"]
1023
+ },
1024
+ "options": {
1025
+ "type": "object",
1026
+ "properties": {
1027
+ "maxLines": {
1028
+ "type": "integer",
1029
+ "minimum": 1
1030
+ }
697
1031
  },
698
- "maxMethods": {
699
- "type": "integer",
700
- "minimum": 1
1032
+ "additionalProperties": false
1033
+ }
1034
+ },
1035
+ "required": ["level"],
1036
+ "additionalProperties": false
1037
+ }
1038
+ ]
1039
+ },
1040
+ "large-class": {
1041
+ "oneOf": [
1042
+ {
1043
+ "enum": ["off", "warn", "error"]
1044
+ },
1045
+ {
1046
+ "type": "object",
1047
+ "properties": {
1048
+ "level": {
1049
+ "enum": ["off", "warn", "error"]
1050
+ },
1051
+ "options": {
1052
+ "type": "object",
1053
+ "properties": {
1054
+ "maxMethods": {
1055
+ "type": "integer",
1056
+ "minimum": 1
1057
+ },
1058
+ "maxLines": {
1059
+ "type": "integer",
1060
+ "minimum": 1
1061
+ }
701
1062
  },
702
- "minCost": {
703
- "type": "integer",
704
- "minimum": 1
1063
+ "additionalProperties": false
1064
+ }
1065
+ },
1066
+ "required": ["level"],
1067
+ "additionalProperties": false
1068
+ }
1069
+ ]
1070
+ },
1071
+ "bcrypt-low-cost": {
1072
+ "oneOf": [
1073
+ {
1074
+ "enum": ["off", "warn", "error"]
1075
+ },
1076
+ {
1077
+ "type": "object",
1078
+ "properties": {
1079
+ "level": {
1080
+ "enum": ["off", "warn", "error"]
1081
+ },
1082
+ "options": {
1083
+ "type": "object",
1084
+ "properties": {
1085
+ "minCost": {
1086
+ "type": "integer",
1087
+ "minimum": 1
1088
+ }
705
1089
  },
706
- "maxBatchSize": {
707
- "type": "integer",
708
- "minimum": 1
1090
+ "additionalProperties": false
1091
+ }
1092
+ },
1093
+ "required": ["level"],
1094
+ "additionalProperties": false
1095
+ }
1096
+ ]
1097
+ },
1098
+ "graphql-query-depth-unbounded": {
1099
+ "oneOf": [
1100
+ {
1101
+ "enum": ["off", "warn", "error"]
1102
+ },
1103
+ {
1104
+ "type": "object",
1105
+ "properties": {
1106
+ "level": {
1107
+ "enum": ["off", "warn", "error"]
1108
+ },
1109
+ "options": {
1110
+ "type": "object",
1111
+ "properties": {
1112
+ "maxDepth": {
1113
+ "type": "integer",
1114
+ "minimum": 1
1115
+ }
709
1116
  },
710
- "maxOffset": {
711
- "type": "integer",
712
- "minimum": 1
1117
+ "additionalProperties": false
1118
+ }
1119
+ },
1120
+ "required": ["level"],
1121
+ "additionalProperties": false
1122
+ }
1123
+ ]
1124
+ },
1125
+ "graphql-batching-unbounded": {
1126
+ "oneOf": [
1127
+ {
1128
+ "enum": ["off", "warn", "error"]
1129
+ },
1130
+ {
1131
+ "type": "object",
1132
+ "properties": {
1133
+ "level": {
1134
+ "enum": ["off", "warn", "error"]
1135
+ },
1136
+ "options": {
1137
+ "type": "object",
1138
+ "properties": {
1139
+ "maxBatchSize": {
1140
+ "type": "integer",
1141
+ "minimum": 1
1142
+ }
713
1143
  },
714
- "maxBytes": {
715
- "type": "integer",
716
- "minimum": 1
717
- }
1144
+ "additionalProperties": false
1145
+ }
1146
+ },
1147
+ "required": ["level"],
1148
+ "additionalProperties": false
1149
+ }
1150
+ ]
1151
+ },
1152
+ "orm-deep-offset": {
1153
+ "oneOf": [
1154
+ {
1155
+ "enum": ["off", "warn", "error"]
1156
+ },
1157
+ {
1158
+ "type": "object",
1159
+ "properties": {
1160
+ "level": {
1161
+ "enum": ["off", "warn", "error"]
718
1162
  },
719
- "additionalProperties": false
720
- }
1163
+ "options": {
1164
+ "type": "object",
1165
+ "properties": {
1166
+ "maxOffset": {
1167
+ "type": "integer",
1168
+ "minimum": 1
1169
+ }
1170
+ },
1171
+ "additionalProperties": false
1172
+ }
1173
+ },
1174
+ "required": ["level"],
1175
+ "additionalProperties": false
1176
+ }
1177
+ ]
1178
+ },
1179
+ "upload-without-size-limit": {
1180
+ "oneOf": [
1181
+ {
1182
+ "enum": ["off", "warn", "error"]
721
1183
  },
722
- "required": ["level"],
723
- "additionalProperties": false
724
- }
725
- ]
1184
+ {
1185
+ "type": "object",
1186
+ "properties": {
1187
+ "level": {
1188
+ "enum": ["off", "warn", "error"]
1189
+ },
1190
+ "options": {
1191
+ "type": "object",
1192
+ "properties": {
1193
+ "maxBytes": {
1194
+ "type": "integer",
1195
+ "minimum": 1
1196
+ }
1197
+ },
1198
+ "additionalProperties": false
1199
+ }
1200
+ },
1201
+ "required": ["level"],
1202
+ "additionalProperties": false
1203
+ }
1204
+ ]
1205
+ }
726
1206
  }
727
1207
  }
728
1208
  },