loadwise 0.7.0 → 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 (228) hide show
  1. package/README.md +23 -15
  2. package/dist/bin/loadwise.js +12 -24
  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/jsx-elements.js +13 -3
  10. package/dist/lib/accessibility/markup-files.js +7 -2
  11. package/dist/lib/accessibility/rule-ids.js +3 -0
  12. package/dist/lib/accessibility/rules.js +128 -41
  13. package/dist/lib/accessibility/site-fixes/buttons.js +5 -1
  14. package/dist/lib/accessibility/template-attributes.js +5 -3
  15. package/dist/lib/accessibility/template-elements.js +25 -6
  16. package/dist/lib/accessibility/template-file.js +40 -25
  17. package/dist/lib/editor/accessibility-examples.js +6 -1
  18. package/dist/lib/editor/actions.js +46 -7
  19. package/dist/lib/editor/apply-fix.js +69 -4
  20. package/dist/lib/editor/configured-setup.js +5 -3
  21. package/dist/lib/editor/diagnostics.js +206 -17
  22. package/dist/lib/editor/dismissals.js +85 -26
  23. package/dist/lib/editor/editor-document.js +5 -2
  24. package/dist/lib/editor/editor-launcher.js +7 -2
  25. package/dist/lib/editor/language-server.js +64 -25
  26. package/dist/lib/editor/native-setup.js +3 -2
  27. package/dist/lib/editor/perf-watch.js +8 -6
  28. package/dist/lib/editor/reliability-examples.js +15 -0
  29. package/dist/lib/editor/scan-session.js +29 -8
  30. package/dist/lib/editor/server-commands.js +36 -9
  31. package/dist/lib/editor/setup-server.js +1 -1
  32. package/dist/lib/editor/setup-vim.js +6 -4
  33. package/dist/lib/editor/workspace-files.js +61 -7
  34. package/dist/lib/editor/workspace-paths.js +41 -1
  35. package/dist/lib/maintainability/analysis/analyze-source.js +1 -1
  36. package/dist/lib/maintainability/architecture/architecture.js +4 -4
  37. package/dist/lib/maintainability/cli/changed-lines.js +20 -2
  38. package/dist/lib/maintainability/cli/inputs.js +9 -1
  39. package/dist/lib/maintainability/cli.js +4 -0
  40. package/dist/lib/maintainability/entry-points/entry-points.js +44 -15
  41. package/dist/lib/maintainability/entry-points/html-entry-points.js +5 -1
  42. package/dist/lib/maintainability/quality/functions.js +9 -6
  43. package/dist/lib/maintainability/quality/limits.js +19 -0
  44. package/dist/lib/maintainability/quality/size-limits.js +8 -2
  45. package/dist/lib/maintainability/quality/stray-console.js +62 -1
  46. package/dist/lib/maintainability/quality/tsconfig-strict.js +2 -0
  47. package/dist/lib/maintainability/scan-changed.js +4 -1
  48. package/dist/lib/maintainability/scan-worker.js +6 -2
  49. package/dist/lib/maintainability/scan.js +21 -8
  50. package/dist/lib/maintainability/unused/module-usage.js +43 -21
  51. package/dist/lib/maintainability/unused/unused-modules.js +5 -10
  52. package/dist/lib/performance/analysis/source-inputs.js +7 -2
  53. package/dist/lib/performance/analysis/source-options.js +7 -6
  54. package/dist/lib/performance/analyze.js +16 -3
  55. package/dist/lib/performance/cli/cli-output.js +1 -0
  56. package/dist/lib/performance/cli/cli-scan.js +21 -2
  57. package/dist/lib/performance/cli.js +8 -3
  58. package/dist/lib/performance/collections/memory-growth.js +55 -12
  59. package/dist/lib/performance/contracts/openapi.js +13 -4
  60. package/dist/lib/performance/datastores/pg-integrity.js +61 -22
  61. package/dist/lib/performance/datastores/pg-session-release.js +114 -0
  62. package/dist/lib/performance/datastores/pg-session-sql.js +144 -0
  63. package/dist/lib/performance/datastores/pooling.js +56 -2
  64. package/dist/lib/performance/datastores/redis.js +94 -18
  65. package/dist/lib/performance/datastores/session-store.js +2 -1
  66. package/dist/lib/performance/db/checks.js +19 -8
  67. package/dist/lib/performance/db/gateway.js +3 -1
  68. package/dist/lib/performance/db/plan-estimates.js +4 -4
  69. package/dist/lib/performance/engine/native.js +11 -7
  70. package/dist/lib/performance/evidence/plans.js +7 -5
  71. package/dist/lib/performance/evidence/traces.js +21 -1
  72. package/dist/lib/performance/frontend/angular-teardown.js +96 -0
  73. package/dist/lib/performance/frontend/effect-cleanup.js +148 -0
  74. package/dist/lib/performance/frontend/frontend-dom-perf.js +14 -2
  75. package/dist/lib/performance/frontend/frontend-helpers.js +1 -9
  76. package/dist/lib/performance/frontend/frontend-perf.js +72 -57
  77. package/dist/lib/performance/migrations/extract-code-sql.js +16 -4
  78. package/dist/lib/performance/migrations/extract-code.js +13 -5
  79. package/dist/lib/performance/migrations/extract-sql.js +82 -38
  80. package/dist/lib/performance/migrations/operations.js +56 -13
  81. package/dist/lib/performance/migrations/postgres-lock-timeout.js +52 -0
  82. package/dist/lib/performance/migrations/postgres-registry.js +127 -26
  83. package/dist/lib/performance/migrations/postgres-settings.js +78 -0
  84. package/dist/lib/performance/migrations/rules-postgres-add-column.js +3 -3
  85. package/dist/lib/performance/migrations/rules-postgres-shared.js +9 -0
  86. package/dist/lib/performance/migrations/rules-postgres.js +88 -39
  87. package/dist/lib/performance/orm/offset-pagination.js +6 -4
  88. package/dist/lib/performance/orm/prisma-aggregates.js +69 -18
  89. package/dist/lib/performance/orm/unbounded-list-chain.js +29 -0
  90. package/dist/lib/performance/orm/unbounded-list-queries.js +18 -13
  91. package/dist/lib/performance/polyglot.js +111 -14
  92. package/dist/lib/performance/projects.js +3 -3
  93. package/dist/lib/performance/query-loops/sequential-loops.js +1 -0
  94. package/dist/lib/performance/request/backend-mastery.js +151 -42
  95. package/dist/lib/performance/request/mongoose-lean.js +175 -10
  96. package/dist/lib/performance/request/phase5-rules.js +74 -13
  97. package/dist/lib/performance/request/sql-select-star.js +150 -0
  98. package/dist/lib/performance/request/unbounded-promise-all.js +54 -29
  99. package/dist/lib/performance/request/upload-limits.js +5 -1
  100. package/dist/lib/performance/site-fix.js +4 -4
  101. package/dist/lib/performance/site-fixes/backend-mastery-fixes.js +298 -16
  102. package/dist/lib/performance/site-fixes/frontend-fixes.js +350 -10
  103. package/dist/lib/performance/site-fixes/migration-context.js +8 -1
  104. package/dist/lib/performance/site-fixes/migration-lock-rules.js +66 -30
  105. package/dist/lib/performance/site-fixes/prisma-aggregates.js +29 -9
  106. package/dist/lib/performance/site-fixes/small-rewrites.js +168 -10
  107. package/dist/lib/performance/site-fixes/sync-calls.js +14 -12
  108. package/dist/lib/performance/site-fixes/upload-limits.js +13 -7
  109. package/dist/lib/performance/sql/mysql-tokens.js +38 -12
  110. package/dist/lib/reliability/boundary-access.js +114 -57
  111. package/dist/lib/reliability/react-bugs.js +18 -4
  112. package/dist/lib/reliability/resource-leak-intervals.js +258 -0
  113. package/dist/lib/reliability/resource-leaks.js +209 -195
  114. package/dist/lib/reliability/rule-ids.js +10 -1
  115. package/dist/lib/reliability/site-fixes/resource-leaks.js +16 -1
  116. package/dist/lib/reliability/swallowed-errors.js +107 -21
  117. package/dist/lib/reliability/test-cleanup-after-await.js +92 -18
  118. package/dist/lib/reliability/walk.js +3 -2
  119. package/dist/lib/security/auth-crypto/hashing.js +24 -8
  120. package/dist/lib/security/auth-crypto/jwt.js +21 -6
  121. package/dist/lib/security/auth-crypto/secrets.js +44 -1
  122. package/dist/lib/security/auth-crypto/shared.js +3 -1
  123. package/dist/lib/security/auth-crypto/signing-algorithm.js +79 -0
  124. package/dist/lib/security/auth-crypto/transport-and-ciphers.js +85 -1
  125. package/dist/lib/security/cli.js +6 -2
  126. package/dist/lib/security/cookie-credentials.js +115 -0
  127. package/dist/lib/security/cookie-csrf.js +241 -0
  128. package/dist/lib/security/deps/advisory.js +50 -109
  129. package/dist/lib/security/deps/cli.js +1 -1
  130. package/dist/lib/security/deps/cvss-score.js +14 -0
  131. package/dist/lib/security/deps/fixed-version.js +97 -0
  132. package/dist/lib/security/deps/lockfiles.js +135 -74
  133. package/dist/lib/security/deps/osv.js +11 -3
  134. package/dist/lib/security/deps/scan.js +47 -20
  135. package/dist/lib/security/deps/yarn-lock.js +158 -0
  136. package/dist/lib/security/examples/injection.cjs +4 -0
  137. package/dist/lib/security/exposure/cookies.js +17 -2
  138. package/dist/lib/security/exposure/cors-origin-regex.js +2 -3
  139. package/dist/lib/security/exposure/frontend-security.js +21 -14
  140. package/dist/lib/security/exposure/jsx-url.js +18 -33
  141. package/dist/lib/security/exposure/logging.js +49 -10
  142. package/dist/lib/security/exposure/prototype-pollution.js +126 -56
  143. package/dist/lib/security/exposure/react-html.js +26 -0
  144. package/dist/lib/security/exposure/reflected-xss.js +34 -5
  145. package/dist/lib/security/files/compose.js +126 -1
  146. package/dist/lib/security/files/dockerfile.js +62 -4
  147. package/dist/lib/security/files/index.js +1 -1
  148. package/dist/lib/security/injection/command.js +46 -18
  149. package/dist/lib/security/injection/index.js +2 -0
  150. package/dist/lib/security/injection/ldap.js +86 -0
  151. package/dist/lib/security/injection/nosql.js +28 -4
  152. package/dist/lib/security/injection/redos.js +1 -1
  153. package/dist/lib/security/injection/rule-ids.js +1 -0
  154. package/dist/lib/security/injection/shared.js +5 -1
  155. package/dist/lib/security/injection/sql.js +28 -13
  156. package/dist/lib/security/lexical-declaration.js +113 -0
  157. package/dist/lib/security/pg-dynamic-query.js +28 -1
  158. package/dist/lib/security/pg-identifier-guards.js +107 -3
  159. package/dist/lib/security/phase5-rules.js +26 -135
  160. package/dist/lib/security/polyglot.js +2 -2
  161. package/dist/lib/security/redirect-settings.js +98 -0
  162. package/dist/lib/security/request-forgery/open-redirect.js +18 -5
  163. package/dist/lib/security/request-forgery/path-traversal.js +84 -6
  164. package/dist/lib/security/request-forgery/shared.js +1 -7
  165. package/dist/lib/security/request-forgery/ssrf.js +176 -14
  166. package/dist/lib/security/rule-descriptions.js +5 -1
  167. package/dist/lib/security/rule-ids.js +7 -0
  168. package/dist/lib/security/site-fixes/auth-crypto.js +5 -78
  169. package/dist/lib/security/site-fixes/exposure.js +21 -3
  170. package/dist/lib/security/site-fixes/files.js +11 -13
  171. package/dist/lib/security/site-fixes/frontend-security-fixes.js +2 -2
  172. package/dist/lib/security/site-fixes/injection.js +17 -4
  173. package/dist/lib/security/site-fixes/jwt.js +1 -20
  174. package/dist/lib/security/site-fixes/request-forgery.js +37 -29
  175. package/dist/lib/security/taint/binding-inputs.js +236 -0
  176. package/dist/lib/security/taint/filename-guard.js +45 -45
  177. package/dist/lib/security/taint/guards.js +14 -8
  178. package/dist/lib/security/taint/index.js +126 -154
  179. package/dist/lib/security/taint/propagate.js +43 -9
  180. package/dist/lib/security/taint/record-writes.js +161 -0
  181. package/dist/lib/security/taint/resolution-cache.js +13 -7
  182. package/dist/lib/security/taint/sanitizers.js +89 -5
  183. package/dist/lib/security/taint/trace-nodes.js +61 -0
  184. package/dist/lib/security/taint/validators.js +89 -9
  185. package/dist/lib/shared/agent/agent-init.js +2 -1
  186. package/dist/lib/shared/agent/agent-verify.js +4 -1
  187. package/dist/lib/shared/agent/git-hook.js +17 -6
  188. package/dist/lib/shared/agent/review-mcp.js +8 -2
  189. package/dist/lib/shared/analysis/ast-semantics.js +2 -2
  190. package/dist/lib/shared/analysis/scan-cache.js +96 -12
  191. package/dist/lib/shared/cli-dispatch.js +17 -0
  192. package/dist/lib/shared/config.js +27 -10
  193. package/dist/lib/shared/explain.js +1 -1
  194. package/dist/lib/shared/fix/fix-convergence.js +5 -3
  195. package/dist/lib/shared/fix/fix-imports.js +4 -171
  196. package/dist/lib/shared/fix/fix-presentation-comments.js +23 -9
  197. package/dist/lib/shared/fix/fix-presentation.js +5 -3
  198. package/dist/lib/shared/fix/fix-safety.js +7 -1
  199. package/dist/lib/shared/fix/fix-typecheck.js +8 -4
  200. package/dist/lib/shared/fix/import-text-edits.js +148 -0
  201. package/dist/lib/shared/fix.js +31 -7
  202. package/dist/lib/shared/formats/finding-location.js +4 -1
  203. package/dist/lib/shared/formats/github.js +3 -3
  204. package/dist/lib/shared/formats/sarif.js +9 -3
  205. package/dist/lib/shared/report-fp.js +6 -2
  206. package/dist/lib/shared/reporting/baseline.js +7 -5
  207. package/dist/lib/shared/reporting/pillars.js +9 -3
  208. package/dist/lib/shared/reporting/source-report.js +1 -0
  209. package/dist/lib/shared/system/glob.js +34 -8
  210. package/dist/lib/shared/system/sentry.js +26 -7
  211. package/dist/lib/shared/workspaces.js +15 -3
  212. package/package.json +5 -1
  213. package/plugin/.claude-plugin/plugin.json +1 -1
  214. package/plugin/hooks/check-edited-file.mjs +27 -5
  215. package/polyglot/performance/rules/csharp.yml +34 -5
  216. package/polyglot/performance/rules/java.yml +24 -1
  217. package/polyglot/performance/rules/python.yml +74 -2
  218. package/polyglot/performance/sgconfig.yml +1 -0
  219. package/polyglot/reliability/rules/csharp.yml +12 -6
  220. package/polyglot/reliability/rules/go.yml +86 -6
  221. package/polyglot/reliability/rules/java.yml +22 -1
  222. package/polyglot/reliability/sgconfig.yml +1 -0
  223. package/polyglot/security/rules/go.yml +100 -22
  224. package/polyglot/security/rules/python.yml +74 -6
  225. package/polyglot/security/rules/rust.yml +65 -0
  226. package/polyglot/security/sgconfig.yml +1 -0
  227. package/schema/loadwise.config.schema.json +554 -76
  228. /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",
@@ -318,54 +323,288 @@
318
323
  "properties": {
319
324
  "level": {
320
325
  "enum": ["off", "warn", "error"]
321
- },
322
- "options": {
323
- "type": "object",
324
- "properties": {
325
- "maxDepth": {
326
- "type": "integer",
327
- "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
+ }
328
352
  },
329
- "maxComplexity": {
330
- "type": "integer",
331
- "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
+ }
332
379
  },
333
- "maxParams": {
334
- "type": "integer",
335
- "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
+ }
336
406
  },
337
- "maxLines": {
338
- "type": "integer",
339
- "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
+ }
340
433
  },
341
- "maxMethods": {
342
- "type": "integer",
343
- "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
+ }
344
464
  },
345
- "minCost": {
346
- "type": "integer",
347
- "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
+ }
348
491
  },
349
- "maxBatchSize": {
350
- "type": "integer",
351
- "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
+ }
352
518
  },
353
- "maxOffset": {
354
- "type": "integer",
355
- "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
+ }
356
545
  },
357
- "maxBytes": {
358
- "type": "integer",
359
- "minimum": 1
360
- }
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"]
361
564
  },
362
- "additionalProperties": false
363
- }
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"]
364
585
  },
365
- "required": ["level"],
366
- "additionalProperties": false
367
- }
368
- ]
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
+ }
369
608
  }
370
609
  },
371
610
  "overrides": {
@@ -385,6 +624,7 @@
385
624
  "type": "object",
386
625
  "propertyNames": {
387
626
  "enum": [
627
+ "a11y-aria-hidden-focus",
388
628
  "a11y-button-missing-type",
389
629
  "a11y-clickable-non-interactive",
390
630
  "a11y-heading-level-skipped",
@@ -432,6 +672,7 @@
432
672
  "database-error-in-response",
433
673
  "db-duplicate-index",
434
674
  "db-missing-index",
675
+ "db-pool-client-not-released",
435
676
  "db-seq-scan-heavy-table",
436
677
  "db-slow-query-plan",
437
678
  "db-unindexed-foreign-key",
@@ -506,6 +747,7 @@
506
747
  "known-reads-awaited-serially",
507
748
  "large-class",
508
749
  "large-module",
750
+ "ldap-filter-injection",
509
751
  "list-count-per-request",
510
752
  "list-query-overfetch",
511
753
  "llm-call-without-max-tokens",
@@ -556,10 +798,12 @@
556
798
  "password-hash-sync-in-async",
557
799
  "path-traversal",
558
800
  "payment-missing-idempotency-key",
801
+ "pg-advisory-lock-session",
559
802
  "pg-count-materialization",
560
803
  "pg-dynamic-query-text",
561
804
  "pg-filter-materialization",
562
805
  "pg-first-materialization",
806
+ "pg-listen-session",
563
807
  "pg-query-in-loop",
564
808
  "pg-top-k-materialization",
565
809
  "pg-transaction-on-pool",
@@ -677,54 +921,288 @@
677
921
  "properties": {
678
922
  "level": {
679
923
  "enum": ["off", "warn", "error"]
680
- },
681
- "options": {
682
- "type": "object",
683
- "properties": {
684
- "maxDepth": {
685
- "type": "integer",
686
- "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
+ }
687
950
  },
688
- "maxComplexity": {
689
- "type": "integer",
690
- "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
+ }
691
977
  },
692
- "maxParams": {
693
- "type": "integer",
694
- "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
+ }
695
1004
  },
696
- "maxLines": {
697
- "type": "integer",
698
- "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
+ }
699
1031
  },
700
- "maxMethods": {
701
- "type": "integer",
702
- "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
+ }
703
1062
  },
704
- "minCost": {
705
- "type": "integer",
706
- "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
+ }
707
1089
  },
708
- "maxBatchSize": {
709
- "type": "integer",
710
- "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
+ }
711
1116
  },
712
- "maxOffset": {
713
- "type": "integer",
714
- "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
+ }
715
1143
  },
716
- "maxBytes": {
717
- "type": "integer",
718
- "minimum": 1
719
- }
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"]
720
1162
  },
721
- "additionalProperties": false
722
- }
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"]
723
1183
  },
724
- "required": ["level"],
725
- "additionalProperties": false
726
- }
727
- ]
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
+ }
728
1206
  }
729
1207
  }
730
1208
  },