loadwise 0.6.2 → 0.7.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 (86) hide show
  1. package/README.md +152 -100
  2. package/dist/bin/loadwise.js +126 -49
  3. package/dist/lib/accessibility/frontend-detect.js +6 -5
  4. package/dist/lib/accessibility/usage.js +10 -2
  5. package/dist/lib/editor/configured-setup.js +61 -0
  6. package/dist/lib/editor/editor-launcher.js +165 -0
  7. package/dist/lib/editor/fix-edits.js +19 -0
  8. package/dist/lib/editor/jetbrains-setup.js +53 -0
  9. package/dist/lib/editor/language-server.js +31 -14
  10. package/dist/lib/editor/managed-config.js +37 -0
  11. package/dist/lib/editor/native-setup.js +85 -0
  12. package/dist/lib/editor/release-vsix.js +61 -0
  13. package/dist/lib/editor/server-commands.js +2 -0
  14. package/dist/lib/editor/setup-server.js +87 -0
  15. package/dist/lib/editor/setup-vim.js +61 -0
  16. package/dist/lib/editor/setup.js +131 -0
  17. package/dist/lib/editor/stdio-setup.js +6 -0
  18. package/dist/lib/maintainability/cli/inputs.js +3 -2
  19. package/dist/lib/maintainability/cli.js +14 -5
  20. package/dist/lib/maintainability/examples.js +4 -0
  21. package/dist/lib/maintainability/rule-ids.js +3 -0
  22. package/dist/lib/maintainability/site-fixes/unused-bindings.js +138 -3
  23. package/dist/lib/maintainability/unused/unused-bindings.js +39 -4
  24. package/dist/lib/performance/cli/changed-lines.js +8 -1
  25. package/dist/lib/performance/cli/cli-arguments.js +19 -8
  26. package/dist/lib/performance/cli/cli-output.js +3 -0
  27. package/dist/lib/performance/cli.js +8 -4
  28. package/dist/lib/performance/datastores/pg-integrity.js +7 -0
  29. package/dist/lib/performance/datastores/pooling.js +6 -1
  30. package/dist/lib/performance/engine/native-syntax.js +3 -0
  31. package/dist/lib/performance/frontend/frontend-perf.js +80 -20
  32. package/dist/lib/performance/request/bulk-listener-registration.js +111 -0
  33. package/dist/lib/performance/request/fastify-receivers.js +93 -0
  34. package/dist/lib/performance/request/fresh-loop-socket.js +103 -0
  35. package/dist/lib/performance/request/mongoose-lean.js +140 -53
  36. package/dist/lib/performance/request/node-event-listener-leak.js +99 -5
  37. package/dist/lib/performance/request/phase5-ast.js +6 -7
  38. package/dist/lib/performance/request/phase5-rules.js +133 -13
  39. package/dist/lib/performance/request/request-handlers.js +120 -23
  40. package/dist/lib/performance/site-fixes/collection-existence.js +2 -1
  41. package/dist/lib/performance/site-fixes/collections.js +1 -2
  42. package/dist/lib/performance/site-fixes/frontend-fixes.js +10 -6
  43. package/dist/lib/performance/site-fixes/helpers.js +3 -4
  44. package/dist/lib/performance/site-fixes/integrity.js +2 -4
  45. package/dist/lib/reliability/react-bugs.js +11 -3
  46. package/dist/lib/reliability/usage.js +16 -5
  47. package/dist/lib/security/cli.js +15 -4
  48. package/dist/lib/shared/agent/agent-init.js +26 -4
  49. package/dist/lib/shared/agent/agent-prompt.js +74 -0
  50. package/dist/lib/shared/agent/agent-session.js +6 -1
  51. package/dist/lib/shared/agent/agent-verify.js +54 -10
  52. package/dist/lib/shared/agent/review-delivery.js +1 -1
  53. package/dist/lib/shared/analysis/scan-cache.js +3 -2
  54. package/dist/lib/shared/check.js +172 -20
  55. package/dist/lib/shared/fix/fix-convergence.js +15 -29
  56. package/dist/lib/shared/fix/fix-handoff.js +16 -11
  57. package/dist/lib/shared/fix/fix-imports.js +47 -38
  58. package/dist/lib/shared/fix/fix-presentation-prettier.js +1 -46
  59. package/dist/lib/shared/fix/fix-presentation-rows.js +45 -1
  60. package/dist/lib/shared/fix/fix-presentation.js +4 -3
  61. package/dist/lib/shared/fix/fix-safety.js +26 -1
  62. package/dist/lib/shared/fix/fix-scope.js +82 -0
  63. package/dist/lib/shared/fix/fix-terminal.js +28 -1
  64. package/dist/lib/shared/fix/project-file-access.js +17 -26
  65. package/dist/lib/shared/fix/read-fix-text.js +20 -0
  66. package/dist/lib/shared/fix.js +215 -102
  67. package/dist/lib/shared/report-fp.js +93 -0
  68. package/dist/lib/shared/reporting/automatic-fix-signal.js +10 -0
  69. package/dist/lib/shared/reporting/check-text.js +50 -0
  70. package/dist/lib/shared/reporting/pillars.js +45 -16
  71. package/dist/lib/shared/reporting/source-report.js +2 -0
  72. package/dist/lib/shared/system/atomic-write.js +5 -2
  73. package/dist/lib/shared/system/sentry.js +203 -0
  74. package/dist/lib/shared/system/shell-argument.js +5 -1
  75. package/dist/lib/shared/system/terminal-safe.js +3 -2
  76. package/dist/lib/shared/system/terminal-style.js +131 -0
  77. package/docs/assets/cli-workflow.gif +0 -0
  78. package/integrations/sublime/plugin.py +22 -0
  79. package/integrations/zed/Cargo.lock +845 -0
  80. package/integrations/zed/Cargo.toml +11 -0
  81. package/integrations/zed/extension.toml +11 -0
  82. package/integrations/zed/src/lib.rs +25 -0
  83. package/package.json +11 -3
  84. package/plugin/.claude-plugin/plugin.json +1 -1
  85. package/plugin/commands/loadwise.md +11 -6
  86. package/schema/loadwise.config.schema.json +2 -0
package/README.md CHANGED
@@ -2,84 +2,138 @@
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/loadwise)](https://www.npmjs.com/package/loadwise) [![check](https://github.com/IbrahimHafez1/loadwise/actions/workflows/check.yml/badge.svg)](https://github.com/IbrahimHafez1/loadwise/actions/workflows/check.yml) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/IbrahimHafez1/loadwise/badge)](https://scorecard.dev/viewer/?uri=github.com/IbrahimHafez1/loadwise) [![license](https://img.shields.io/npm/l/loadwise?cacheSeconds=3600)](LICENSE)
4
4
 
5
- **[npm package](https://www.npmjs.com/package/loadwise)** · **[Documentation](https://loadwise.mintlify.app/)** · **[Sponsor](https://github.com/sponsors/IbrahimHafez1)**
5
+ **[npm package](https://www.npmjs.com/package/loadwise)** · **[Documentation](https://loadwise.mintlify.app/)** · **[Accuracy Scorecard](https://github.com/IbrahimHafez1/loadwise/blob/main/bench/corpus/scorecard.md)** · **[Sponsor](https://github.com/sponsors/IbrahimHafez1)**
6
6
 
7
- Loadwise checks a TypeScript or JavaScript project before it ships. Its deepest coverage is backend and database code, and it also checks React, Next.js, Vue and Angular frontends. One CLI runs five checkers:
7
+ [Quick Start](#install--quick-start) · [Commands](#commands) · [GitHub Action](#github-action) · [AI Agents & Editor](#use-with-ai-coding-agents) · [Rule Reference](#full-rule--checker-reference) · [Sponsors](#sponsors)
8
8
 
9
- - **Performance** (`loadwise perf`): repeated database work, ORM and query integrity, blocking calls, collection complexity, React, Vue and Angular rendering and cleanup work, schema-aware indexes, OpenTelemetry traces, executed query plans and an optional read-only database inspection.
10
- - **Reliability** (`loadwise rel`): unhandled rejections and swallowed errors, races and transaction-client escapes, missing timeouts and idempotency keys, React effect and state bugs, migration safety and breaking API changes.
11
- - **Maintainability** (`loadwise maint`): deep nesting, branch complexity, duplicate implementations, dependency cycles and the folder, placement and data-access rules a team declares.
12
- - **Security** (`loadwise sec`): request data reaching sensitive operations, authentication and cryptography, exposed credentials including secrets bundled into client code, unsafe HTML in JSX, Vue and Angular, `javascript:` URLs in JSX, Docker and Compose configuration, declared row scopes, and optionally dependency advisories.
13
- - **Accessibility** (`loadwise a11y`): images without alt text, unlabelled form controls, click handlers on non-interactive elements, invalid ARIA and missing page language in JSX, HTML, Vue, Svelte and Angular templates. Skipped on projects without frontend sources.
9
+ ![Loadwise finds repeated array lookups, previews a Set-based edit with loadwise fix, applies it with --apply, and checks the project again](docs/assets/cli-workflow.gif)
14
10
 
15
- Each finding has a stable `#id` for review. Where a checker can generate an edit, it shows the diff and any assumptions to verify. Supported source rules accept a `loadwise-reviewed` comment with a reason for intentional code. Every rule has its own page under [docs/rules](docs/rules/), linked from the rule tables below.
11
+ You already run `tsc`, ESLint, and CI. None of them stop a pull request that starts a PostgreSQL transaction on a connection pool and accidentally sends `BEGIN`, `UPDATE`, and `COMMIT` to different connections:
16
12
 
17
- > **Pre-1.0.** Loadwise is under active development. Until 1.0, rule ids, CLI flags, the JSON report and the config schema can change in a minor release. Every such change is listed in the [changelog](CHANGELOG.md), and a moved or renamed rule keeps accepting its old id where possible. False-positive reports are the most useful feedback: [open one](https://github.com/IbrahimHafez1/loadwise/issues/new?template=false-positive.yml).
13
+ ```ts
14
+ // transfer.ts — passes tsc and ESLint cleanly
15
+ import type { Pool } from 'pg';
16
+
17
+ export async function transfer(pool: Pool, fromId: string, toId: string, amount: number) {
18
+ await pool.query('BEGIN');
19
+ await pool.query('UPDATE accounts SET balance = balance - $1 WHERE id = $2', [amount, fromId]);
20
+ await pool.query('UPDATE accounts SET balance = balance + $1 WHERE id = $2', [amount, toId]);
21
+ await pool.query('COMMIT');
22
+ }
23
+ ```
24
+
25
+ With **Node.js 22.13.0 or later**, run `npx loadwise check` locally—no config file, no API key, no network upload by default (opt-in crash reporting stays off unless you run `npx loadwise --report-crashes check`, set `LOADWISE_CRASH_REPORTS=1`, or configure a valid `LOADWISE_SENTRY_DSN`), and your source files stay untouched. This excerpt focuses on the reliability checker.
18
26
 
19
- ## Install
27
+ ```text
28
+ $ npx loadwise check --only rel
29
+ Scope: . (all files)
30
+ Checkers: rel
31
+
32
+ == Reliability ==
33
+ [pg-transaction-on-pool] critical (2 findings)
34
+ Why: Each pool.query() can run on a different connection, so BEGIN and COMMIT do not share one
35
+ transaction. Use `const client = await pool.connect()`, run every statement on `client`, and
36
+ call `client.release()` in finally.
37
+ transfer.ts:5:14 #245ca194d514
38
+ ```
20
39
 
21
- Use Node.js 22 or later. From the project root, install Loadwise from npm and run a check.
40
+ Both findings point to the same review-marked fix. Preview the edit for the first finding and apply it after reviewing the diff.
22
41
 
23
42
  ```sh
24
- npm install --save-dev loadwise
25
- npx loadwise check
43
+ npx loadwise fix --only rel --id 245ca194d514 --dry-run
44
+ npx loadwise fix --only rel --id 245ca194d514
26
45
  ```
27
46
 
28
- For a one-off scan, run `npx loadwise check` without adding a project dependency. Run `npx loadwise --version` to check the installed version. [Editor integration](docs/editor.mdx#set-up-a-custom-stdio-lsp-client) is optional.
47
+ The full rescan reports zero findings.
48
+
49
+ ```text
50
+ $ npx loadwise check
51
+ Scope: . (all files)
52
+ Checkers: perf, rel, maint, sec, a11y
29
53
 
30
- By default `loadwise check` runs all five checkers; see the [corpus rule scorecard](bench/corpus/scorecard.md) for measured precision and recall across real-world open-source backends.
54
+ == Performance ==
55
+ 1 file checked, 0 findings.
31
56
 
32
- **Autofix example:** `npx loadwise fix --yes` rewrites eligible issues in place and verifies TypeScript projects with a post-edit typecheck:
57
+ == Reliability ==
58
+ 1 file checked, 0 findings.
33
59
 
34
- ```diff
35
- - const names = visible.map((order) => customers.find((c) => c.id === order.customerId)?.name ?? 'Unknown');
36
- + const customersById = new Map(customers.map((c) => [c.id, c] as const).reverse());
37
- + const names = visible.map((order) => customersById.get(order.customerId)?.name ?? 'Unknown');
60
+ == Maintainability ==
61
+ 1 source file, 0 findings, 0 contract findings.
62
+
63
+ == Security ==
64
+ 1 file checked, 0 findings.
38
65
  ```
39
66
 
40
- **With an AI coding agent**, say **“Run Loadwise”** in your project chat. The agent can run the installed CLI directly. It should check the findings against the code, explain what it would fix or leave alone and why, and let you choose before making edits. [Active-agent workflow and optional MCP setup](#using-loadwise-with-an-active-coding-agent)
67
+ _Loadwise skips accessibility on projects without frontend sources._
41
68
 
42
- ### Try a finding and a fix
69
+ ## Five Checkers in One CLI
70
+
71
+ Loadwise checks TypeScript and JavaScript projects—deepest on backend and database code, plus React, Next.js, Vue, and Angular frontends:
72
+
73
+ - **Performance** (`loadwise perf`): N+1 queries, ORM/SQL query integrity, blocking sync calls, quadratic collection loops, React/Vue/Angular render & cleanup issues, schema-aware indexes, OpenTelemetry traces, and optional read-only DB inspection.
74
+ - **Reliability** (`loadwise rel`): transaction-client escapes (`pg`, Prisma, TypeORM), unreleased checkouts, unhandled rejections and swallowed errors, missing HTTP/pool timeouts, idempotency keys, migration lock risks, and breaking OpenAPI changes.
75
+ - **Maintainability** (`loadwise maint`): deep nesting, branch complexity, duplicate implementations, dependency cycles, and declared architecture boundaries.
76
+ - **Security** (`loadwise sec`): request-to-sink injection, auth/crypto flaws, exposed secrets (including client bundles), unsafe HTML/URLs, Docker/Compose checks, row-scope verification, and optional `--online` advisories.
77
+ - **Accessibility** (`loadwise a11y`): missing alt text, unlabelled controls, non-interactive click handlers, invalid ARIA, and missing page language in JSX, HTML, Vue, Svelte, and Angular templates.
78
+
79
+ See the **[corpus rule scorecard](https://github.com/IbrahimHafez1/loadwise/blob/main/bench/corpus/scorecard.md)** for measured precision and recall across 17 pinned open-source repositories, and **[docs/rules](https://github.com/IbrahimHafez1/loadwise/tree/main/docs/rules)** for per-rule documentation.
80
+
81
+ > **Pre-1.0.** Loadwise is under active development. Rule IDs, CLI flags, the JSON report, and config schema can change in a minor release (see [CHANGELOG.md](https://github.com/IbrahimHafez1/loadwise/blob/main/CHANGELOG.md)). False-positive reports are the most useful feedback: [open one](https://github.com/IbrahimHafez1/loadwise/issues/new?template=false-positive.yml).
82
+
83
+ ## Install & Quick Start
43
84
 
44
- From a project where you ran `npm install --save-dev loadwise`, copy the bundled example to a disposable file and scan it. The copy command refuses to overwrite an existing file.
85
+ Use Node.js 22.13.0 or later. Install Loadwise in the project with `npm install --save-dev loadwise`, or use `npx` for a one-off run.
45
86
 
46
87
  ```sh
47
- node -e "require('node:fs').copyFileSync('node_modules/loadwise/examples/slow.ts', 'loadwise-demo.ts', require('node:fs').constants.COPYFILE_EXCL)"
48
- npx loadwise perf loadwise-demo.ts
49
- npx loadwise explain array-repeated-membership
88
+ npx loadwise check # scan the project
89
+ npx loadwise explain array-repeated-membership # understand a rule
90
+ npx loadwise fix # preview automatic edits
50
91
  ```
51
92
 
52
- The sample reports three findings and exits 1. The membership finding shows repeated array searches for allowed customer IDs. Read its diff and note, then replace `FINDING_ID` below with the ID printed after `#` on that finding.
93
+ Run `npx loadwise fix --apply` to apply the automatic edits. To work on local changes only, use `npx loadwise check --uncommitted` and `npx loadwise fix --uncommitted`. Use `npx loadwise --version` to see the installed version.
94
+
95
+ After your first scan, [share a useful finding or a false positive](https://github.com/IbrahimHafez1/loadwise/issues/203). One rule ID and a sentence about what you fixed or why the code was safe are enough. If Loadwise helped, [give it a star on GitHub](https://github.com/IbrahimHafez1/loadwise). To contribute code or docs, [pick a good first issue](https://github.com/IbrahimHafez1/loadwise/issues?q=is%3Aissue%20is%3Aopen%20label%3A%22good%20first%20issue%22).
96
+
97
+ **With an AI coding agent**, say **“Run Loadwise”** in your project chat. The agent runs the installed CLI directly, verifies findings against callers and tests, and asks before making edits. [Active-agent workflow and optional MCP setup](#using-loadwise-with-an-active-coding-agent)
98
+
99
+ ### Try a finding and a fix
100
+
101
+ From a project with `loadwise` installed, copy the bundled example to a disposable file and scan it:
53
102
 
54
103
  ```sh
104
+ node -e "require('node:fs').copyFileSync('node_modules/loadwise/examples/slow.ts', 'loadwise-demo.ts', require('node:fs').constants.COPYFILE_EXCL)"
105
+ npx loadwise perf loadwise-demo.ts
106
+ npx loadwise explain array-repeated-membership
55
107
  npx loadwise perf loadwise-demo.ts --fix --only FINDING_ID
56
108
  npx loadwise perf loadwise-demo.ts
57
109
  ```
58
110
 
59
- The second scan should report two findings. Remove the disposable copy when finished. In your own application, install its dependencies and generate any ORM client it uses, then run `npx loadwise check` from its root. Check the coverage notes for skipped inputs. Start with `--min-impact high` to triage a large report, then run without that filter to review the rest.
111
+ Replace `FINDING_ID` with the `#id` printed by the first scan, then remove `loadwise-demo.ts` when finished. In your own application, install dependencies and generate any ORM client (`npx prisma generate`) first, then check stderr coverage notes for any skipped inputs. Start with `--min-impact high` to triage large reports.
60
112
 
61
113
  ## Commands
62
114
 
63
- | Command | What it does |
64
- | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
65
- | `loadwise` or `loadwise check [directory]` | Runs every checker on the directory (default: the current folder) and prints Performance, Reliability, Maintainability, Security, then Accessibility. |
66
- | `loadwise check --only perf,rel` | Runs only the listed checkers: a comma-separated list of `perf`, `rel`, `maint`, `sec` and `a11y`, in any order. |
67
- | `loadwise check --skip maint` | Runs every checker except the listed ones. `--only` and `--skip` cannot be combined. |
68
- | `loadwise perf [args...]` | The full performance checker; `loadwise perf --help` lists its commands and flags. See [Performance checker](#performance-checker). |
69
- | `loadwise rel [args...]` | The full reliability checker; `loadwise rel --help` lists its commands and flags. See [Reliability checker](#reliability-checker). |
70
- | `loadwise maint [args...]` | The full maintainability checker; `loadwise maint --help` lists its flags. See [Maintainability checker](#maintainability-checker). |
71
- | `loadwise sec [args...]` | The full security checker; `loadwise sec --help` lists its flags. See [Security checker](#security-checker). |
72
- | `loadwise a11y [args...]` | The full accessibility checker; `loadwise a11y --help` lists its flags. See [Accessibility checker](#accessibility-checker). |
73
- | `loadwise explain <rule-id>` | Shows the default impact, a description and an example change when available. Works offline. |
74
- | `loadwise fix --yes` | Scans the current project once and applies eligible edits across the configured checkers. |
75
- | `loadwise agent init [--mode ask\|auto] [--hook [block\|warn\|off]]` | Writes project instructions for coding agents. Use `--hook` to configure a pre-commit hook. |
115
+ | Task | Commands |
116
+ | ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
117
+ | Scan a project or branch | `loadwise check [directory]`, `loadwise check --uncommitted`, `loadwise check --changed-since origin/main`, `loadwise check --staged` |
118
+ | Understand a finding | `loadwise explain <rule-id>` |
119
+ | Preview or apply edits | `loadwise fix` previews automatic fixes. `loadwise fix --apply` writes them. `loadwise fix --id <finding-id>` writes one selected fix. |
120
+ | Focus on one checker | `loadwise check --only perf`. Choose from `perf`, `rel`, `maint`, `sec`, and `a11y`. Each also has a direct command for specialized options. |
121
+ | Review migrations or API changes | `loadwise rel migrations`, `loadwise rel contracts` |
122
+ | Investigate slow database operations | `loadwise perf db` for database inspection, `loadwise perf plan <file>` for an execution plan, `loadwise perf traces <file>` for an OTLP trace |
123
+ | Check dependencies or other languages | `loadwise sec deps --online`, or `polyglot` under `loadwise perf`, `loadwise rel`, or `loadwise sec` |
124
+ | Inspect module dependencies | `loadwise maint --graph <file>` |
125
+ | Install editor diagnostics | `loadwise editor setup` detects the editor or lets you select one. Use `--editor stdio` for a custom language client. |
126
+ | Connect a coding agent | `loadwise agent mcp --print-config`, `loadwise agent init`. Use `agent init --mode ask` or `--mode auto` to configure edit permissions. See `loadwise agent --help` for review prompts, pending reports, history, and verification. |
127
+ | Report a false positive | `loadwise report-fp --rule <rule-id>` |
128
+
129
+ Run `loadwise check --help` for scan options and `loadwise fix --help` for edit options. Bare `loadwise` runs the configured checks in the current directory. Use `--skip maint` to run every checker except maintainability. Both `--only` and `--skip` on `check` accept short and full checker names, such as `--only perf,security`.
76
130
 
77
131
  `check` accepts these flags and passes them to every selected checker:
78
132
 
79
- - `--json` prints one object with a key per selected checker, `{ "performance": report, "reliability": report, "maintainability": report, "security": report, "accessibility": report }`. A checker that was skipped or could not run has `null`.
133
+ - `--json` prints one object with a key per selected checker, `{ "performance": report, "reliability": report, "maintainability": report, "security": report, "accessibility": report }`. A checker that was skipped or could not run has `null`. The optional `_coverage` object records why accessibility did not apply (`not-applicable` with reason `no-frontend-sources`) or identifies a partial report (`incomplete` with its exit code). A bare `null` still counts as unavailable in `agent verify`.
80
134
  - `--format text|json|sarif|github` picks the output; `--json` is `--format json`. `sarif` prints SARIF 2.1.0 with one run per checker for GitHub code scanning, and `github` prints `::warning`/`::error`/`::notice` workflow annotations. The checker commands accept it too. Exit codes do not depend on the format.
81
135
  - `--include-contextual` also shows lower-priority findings (one-off blocking calls in CLI startup, test and seed sources and similar), each with its reason. JSON counts the hidden ones in `contextualFindingCount`; in the expanded view they appear in `findings` with a `contextualReason`.
82
- - `--staged` or `--changed-since <git-ref>` reports only findings on changed lines (see [Changed lines](#changed-lines)).
136
+ - `--uncommitted` checks all local changes since `HEAD`, including staged and unstaged lines and untracked files. It requires an initial commit. Choose one change filter per run. `--staged` or `--changed-since <git-ref>` reports only findings on changed lines (see [Changed lines](#changed-lines)).
83
137
  - `--fail-on contract|all` sets the exit threshold. By default, performance, reliability, security and accessibility fail on displayed findings, and a full maintainability scan fails on contract violations. Changed-line maintainability scans fail on any displayed finding. Configured rule levels can change these defaults.
84
138
  - `--min-impact <low|medium|high|critical>` reports only findings at that level or above (see [Impact levels](#impact-levels)).
85
139
  - `--config <file>`, `--ignore <rule-id>` and `--workspace <name|path>` are described under [Configuration](#configuration); `--online` adds the [dependency checks](#dependency-checks).
@@ -87,7 +141,7 @@ The second scan should report two findings. Remove the disposable copy when fini
87
141
 
88
142
  **Exit codes:** **0** passed, **1** a checker met its exit threshold, **2** invalid input or configuration in any checker, a checker that produced no result, or a scan that skipped a file. A JavaScript or TypeScript file that does not parse, or whose analysis fails, is skipped while every other file is still reported; it is named on stderr and in a `skippedFiles` array of `{ file, reason }` in `--json` output (also with `--fix` and `--write-baseline`). `check` keeps that checker's findings, marks its SARIF run as not successful and emits a GitHub warning for each skipped file. A file that exists but cannot be read (the schema snapshot, `package.json`, a review directive) prints a note on stderr; an absent file stays silent.
89
143
 
90
- **Projects and workspaces.** The source checkers use the directory's `tsconfig.json` or `jsconfig.json`. Without one, `check` looks for workspace packages (`package.json` `workspaces`, `pnpm-workspace.yaml` or `lerna.json`) and checks each one's config in one report, grouped per package. A package with a `package.json` and no config has its JavaScript and TypeScript sources inferred from the project inventory and checked with ES2022 and NodeNext defaults; a package whose TypeScript sits under a sub-folder's own `tsconfig.json` still needs a config at its root. When performance and reliability are selected together, they share a type-check unless a baseline is being written. Source scans are read-only; when fixes are available, text reports include a `Fix all:` command such as `npx loadwise perf -p tsconfig.json --fix --only <ids>`.
144
+ **Projects and workspaces.** The source checkers use the directory's `tsconfig.json` or `jsconfig.json`. Without one, `check` looks for workspace packages (`package.json` `workspaces`, `pnpm-workspace.yaml` or `lerna.json`) and checks each one's config in one report, grouped per package. A package with a `package.json` and no config has its JavaScript and TypeScript sources inferred from the project inventory and checked with ES2022 and NodeNext defaults; a package whose TypeScript sits under a sub-folder's own `tsconfig.json` still needs a config at its root. When performance and reliability are selected together, they share a type-check unless a baseline is being written. A complete text scan with automatic fixes prints a scoped `loadwise fix` preview command when the fix command supports the scan filters. For specialized filters, review the individual findings and their checker-specific fix commands.
91
145
 
92
146
  **Cache.** `loadwise check` reuses the previous result for an unchanged Git project from the `loadwise` folder of the OS cache directory. Any edit to a tracked or untracked (not ignored) file, a package install that rewrites `node_modules`, a different flag or a new Loadwise version runs a fresh scan; `LOADWISE_NO_CACHE=1` always scans afresh. Fixes, `--staged`, `--changed-since`, `--online` and `--write-baseline` runs are never cached.
93
147
 
@@ -96,15 +150,30 @@ The second scan should report two findings. Remove the disposable copy when fini
96
150
  ### Fixes
97
151
 
98
152
  ```bash
99
- npx loadwise fix --yes # automatic edits for the configured checkers
153
+ npx loadwise fix # preview automatic edits
154
+ npx loadwise fix --apply # apply automatic edits
100
155
  npx loadwise fix --all # all generated edits, including review suggestions
101
156
  npx loadwise fix --all performance security # only the named checkers
102
- npx loadwise fix --yes maintainability --dry-run # preview unified diffs without writing
157
+ npx loadwise fix --all --dry-run # preview even edits marked for review
103
158
  ```
104
159
 
105
- Checker names (`performance`, `reliability`, `maintainability`, `security`, `accessibility`) are separated by spaces; with none, Loadwise uses the project's configured checkers. `fix` lists manual changes and findings that need individual review by location and ID; a fix that touches lines reserved for review also needs individual review. Loadwise checks the remaining edits together before writing, and performance and security share a type-check when both are selected. It exits 2 if a selected checker fails or is skipped, source lines have changed, or automatic fixes conflict, and 0 on success even when manual findings remain. Manual findings have no generated edit; with `--all`, inspect the diff and run your tests, especially for schema changes and edits that alter behavior. `--json` with `--yes` or `--all` records the applied hunks and outstanding findings.
160
+ A preview prints the diff and a matching apply command when automatic edits are available. The existing `--yes` spelling also applies automatic fixes. Add `--dry-run` to preview an explicit write mode such as `--all` or `--id`.
161
+
162
+ Use the same directory, project configuration, workspace, and changed-line selection when going from a scan to a fix:
163
+
164
+ ```sh
165
+ npx loadwise check ./apps/store --only perf --changed-since origin/main
166
+ npx loadwise fix ./apps/store --only perf --changed-since origin/main
167
+ npx loadwise fix ./apps/store --only perf --changed-since origin/main --id FINDING_ID
168
+ ```
106
169
 
107
- Each applied fix in a JavaScript or TypeScript file gets a `// Loadwise <rule-id>: <why>` comment above the fixed statement, and the changed lines are formatted with the project's own Prettier, honouring its config and `.prettierignore`; the rest of the file stays byte-identical. Without Prettier the edits are written as generated, with a note. `--no-comments` and `--no-format` turn these off, also on the per-checker `--fix`. `fix` also takes repeatable `--rule <rule-id>` filtering and `--no-verify-types` (skip the post-edit TypeScript check).
170
+ `--config <file>` selects the project configuration. Repeat `--workspace <name-or-path>` to select packages. Use `--uncommitted`, `--staged`, or `--changed-since <ref>` to limit edits to changed lines. A generated edit that needs lines outside that scope is skipped as a whole. With `--staged`, a file that also contains unstaged edits is deferred because its working-tree line numbers can differ from the index. Fixes edit the working tree and leave staging to you. Prefix a directory that shares a checker name with `./`, as in `loadwise fix ./perf --dry-run`.
171
+
172
+ On combined commands, `--only` selects checkers. On `fix`, `--id` selects individual findings and `--rule` filters by rule. Repeat `--id` or pass comma-separated IDs to select several. Selecting a review-marked edit by ID authorizes that edit. Preview it with `--dry-run`. If any requested ID is missing, ambiguous, or cannot be applied, the selection exits with code 2 before writing edits. The direct checker spelling, such as `loadwise perf --fix --only <id>`, also works.
173
+
174
+ Checker names (`performance`, `reliability`, `maintainability`, `security`, `accessibility`) are separated by spaces; with none, Loadwise uses the project's configured checkers. `fix` lists manual changes and findings that need individual review by location and ID; a fix that touches lines reserved for review also needs individual review. Loadwise checks the remaining edits together before writing, and performance and security share a type-check when both are selected. It exits 2 if a selected checker fails or is skipped, source lines have changed, or automatic fixes conflict, and 0 on success even when manual findings remain. Manual findings have no generated edit; with `--all`, inspect the diff and run your tests, especially for schema changes and edits that alter behavior. `fix --json` includes `dryRun`, `changedFiles`, proposed or applied edits in `applied`, outstanding manual and review findings, refused fixes in `notApplied`, and follow-up instructions. In a preview, `changedFiles` counts files the edits would change.
175
+
176
+ Bare `loadwise fix` and `--dry-run` show the generated edits before project formatting. Applying the edits can change their whitespace or quoting. Each applied fix in a JavaScript or TypeScript file gets a `// Loadwise <rule-id>: <why>` comment above the fixed statement, and the changed lines are formatted with the project's own Prettier, honouring its config and `.prettierignore`; the rest of the file stays byte-identical. Without Prettier the edits are written as generated, with a note. `--no-comments` and `--no-format` turn these off, also on the per-checker `--fix`. `fix` also takes repeatable `--rule <rule-id>` filtering and `--no-verify-types` (skip the post-edit TypeScript check).
108
177
 
109
178
  Maintainability `--fix` limits edits to the checked project. Performance, reliability, security, and accessibility `--fix` use the containing Git repositories of the checked projects or explicitly named source files, so fixes can include shared files such as a schema at a monorepo root. Outside a Git repository, they use the project root. Per-checker fixes refuse hard-linked files and symbolic links that are dangling or resolve outside those limits. Existing files keep their permissions when replaced.
110
179
 
@@ -127,7 +196,7 @@ module.exports = {
127
196
  };
128
197
  ```
129
198
 
130
- Keys are `perf`, `rel`, `maint`, `sec` or `a11y` followed by `/` and the rule ID. A handler receives the finding and the source file text and returns exact, whole-line replacements in that file, or `null` to leave the site manual. Recipes run only where there is no built-in fix, and their edits are validated together before writing. Recipe files execute as local JavaScript, so run only recipes you trust and keep handlers free of side effects.
199
+ Keys are `perf`, `rel`, `maint`, `sec` or `a11y` followed by `/` and the rule ID. A handler receives the finding and the source file text and returns exact, whole-line replacements in that file, or `null` to leave the site manual. Recipes run only where there is no built-in fix, and their edits are validated together before writing. Explicitly supplied recipe files execute as local JavaScript during both preview and apply. Use only trusted recipes and keep handlers free of side effects.
131
200
 
132
201
  ### Per-checker fixes and dismissals
133
202
 
@@ -148,7 +217,7 @@ npx loadwise perf --changed-since origin/main # lines changed in the working
148
217
  npx loadwise maint --staged .
149
218
  ```
150
219
 
151
- These report only findings on changed lines, each with its id, the exact `--fix --only <id>` command when an automatic fix exists, and the `loadwise-reviewed` comment that dismisses it. `--json` keeps the usual shape, filtered, and the exit code is 1 when findings remain. With no changed supported source files the command exits 0 before TypeScript loads. Only the changed files are analysed as roots while imports still resolve through the project; untracked files count as fully changed with `--changed-since`, and a file with unstaged edits can report lines that differ from the staged version. `schema.prisma` findings are not part of this mode. The flags cannot be combined with explicit files, `--watch` or `--fix`.
220
+ These report only findings on changed lines, each with its id, the exact `--fix --only <id>` command when an automatic fix exists, and the `loadwise-reviewed` comment that dismisses it. `--json` keeps the usual shape, filtered, and the exit code is 1 when findings remain. With no changed supported source files the command exits 0 before TypeScript loads. Only the changed files are analysed as roots while imports still resolve through the project; untracked files count as fully changed with `--changed-since`, and a file with unstaged edits can report lines that differ from the staged version. `schema.prisma` findings are not part of this mode. The direct `perf`, `rel`, `sec` and `a11y` source commands accept these Git filters when scanning a project. Use the unified fix command to keep the same filter when applying an edit, for example `loadwise fix --staged --only perf --id FINDING_ID`. Maintainability also supports `loadwise maint --staged --fix --only FINDING_ID` and the equivalent `--changed-since` form.
152
221
 
153
222
  For maintainability, a JS/TS function-level finding (`high-branch-complexity`, `deep-control-flow`) is kept when a changed line falls anywhere inside its function, and `--fail-on` defaults to `all`. When at least 600 files changed, the full scan runs and is filtered to the changed lines; otherwise `duplicate-implementation` is skipped and `dependency-cycle` only sees cycles made of the changed files' imports.
154
223
 
@@ -249,12 +318,22 @@ npx loadwise agent verify --save --outcomes outcomes.json before.json history.js
249
318
 
250
319
  The first command checks coverage. `--save` also retains successful review decisions for the next session in a recognized agent session or an explicitly initialized checkout. A missing decision or skipped checker is reported as incomplete; a reasoned deferral counts as reviewed and stays visible as deferred. Code review and relevant tests establish whether a change works. For a standalone JSON scan, pass its checker, for example `--checker maint`: `perf` for performance and database reports, `rel` for reliability, migration and contract reports, `maint`, `sec` or `a11y`, one checker per invocation. Combined scans and history keep their original checker selection.
251
320
 
252
- To read or save the same brief yourself, use the checker names of the fix request: `npx loadwise fix --handoff maintainability > loadwise-manual.md`.
321
+ Use the handoff command printed by the fix run to preserve its scope. For a project-wide maintainability fix, save the manual findings with `npx loadwise fix --handoff maintainability > loadwise-manual.md`.
253
322
 
254
323
  ### Using Loadwise with an active coding agent
255
324
 
256
325
  Ask the agent you are already working with to check the project with Loadwise. A shell-capable agent can run `npx loadwise check --json` and review the findings directly in the conversation. Ask it to verify findings against your code, suggest improvements, or implement the changes you choose. A check is read-only. A request to apply fixes can use `npx loadwise fix --yes --json` and review the actual edits and remaining findings in the same chat.
257
326
 
327
+ To copy a ready-made prompt into any AI coding tool (Claude Code, Cursor, Codex, Copilot, Windsurf, or Gemini CLI), run `npx loadwise agent prompt`:
328
+
329
+ ```sh
330
+ npx loadwise agent prompt --pr --checkers perf,rel --report-fp
331
+ ```
332
+
333
+ - `--pr` scopes the prompt's scan to `--changed-since origin/main` (or pass `--changed-since <git-ref>` directly).
334
+ - `--checkers <list>` picks the checkers to emphasize (default `perf,rel`).
335
+ - `--report-fp` appends an opt-in step so the agent asks before running `npx loadwise report-fp --rule <rule-id> --command "<cmd>" --expected "<text>" --note "<generic reason>" [--open]`. `report-fp` never sends telemetry automatically and redacts paths, emails, credentialed URLs, `KEY=value` secret env vars, and common API/JWT tokens—GitHub receives the pre-filled text when `--open` loads the form. Omit `--open` to inspect the link locally before opening it.
336
+
258
337
  For an agent that uses Model Context Protocol (MCP), install Loadwise in the project, run `npx loadwise agent mcp --print-config`, and register the printed command and arguments as a local stdio server named `loadwise`. The agent can call `loadwise_check` to run a fresh offline scan and read larger reports in pages with `loadwise_read_report`. Loadwise does not start a chat or send findings to another session.
259
338
 
260
339
  If you ran a terminal command yourself and want to share it later, use `npx loadwise check --review` or `npx loadwise fix --yes --review`. Paste the printed handoff into the chat you choose, or attach the report. `loadwise agent pending` and the MCP tool `loadwise_list_reports` list saved reports for that project.
@@ -268,7 +347,7 @@ If you ran a terminal command yourself and want to share it later, use `npx load
268
347
  /plugin install loadwise@loadwise
269
348
  ```
270
349
 
271
- After every `Edit`, `Write` or `MultiEdit` on a `.ts`, `.tsx`, `.js`, `.jsx`, `.mjs`, `.cjs`, `.mts` or `.cts` file, or a `.html`, `.htm`, `.vue` or `.svelte` file, a hook runs the project's locally installed `loadwise` on that file (`perf`, `rel` and `sec` on the file, `maint` on the uncommitted changes, keeping that file's findings, and `a11y` on `.tsx`, `.jsx`, `.html`, `.htm`, `.vue` and `.svelte` files) with a 20 second limit. Findings go back to Claude with their ids and `--fix --only <id>` commands; a clean file prints nothing. The hook never downloads anything: without a local install, outside a project, on other file types, on a timeout or on any error it exits silently. The plugin also adds a `/loadwise [args]` command for read-only checks and a `/loadwise fix [checker names]` workflow for agent-reviewed remediation. To turn the hook off, run `/plugin disable loadwise` (or `/plugin uninstall loadwise`).
350
+ After every `Edit`, `Write` or `MultiEdit` on a `.ts`, `.tsx`, `.js`, `.jsx`, `.mjs`, `.cjs`, `.mts` or `.cts` file, or a `.html`, `.htm`, `.vue` or `.svelte` file, a hook runs the project's locally installed `loadwise` on that file (`perf`, `rel` and `sec` on the file, `maint` on the uncommitted changes, keeping that file's findings, and `a11y` on `.tsx`, `.jsx`, `.html`, `.htm`, `.vue` and `.svelte` files) with a 20 second limit. Findings go back to Claude with their ids and `--fix --only <id>` commands; a clean file prints nothing. The hook never downloads anything: without a local install, outside a project, on other file types, on a timeout or on any error it exits silently. The plugin also adds a `/loadwise [args]` command for read-only checks and a `/loadwise fix [checker names]` workflow for agent-reviewed remediation. Use `/loadwise fix --dry-run` for a preview or `/loadwise fix --apply` for automatic edits. Add `--uncommitted` to focus either operation on local changes. To turn the hook off, run `/plugin disable loadwise` (or `/plugin uninstall loadwise`).
272
351
 
273
352
  ### Git pre-commit hook
274
353
 
@@ -282,58 +361,17 @@ The hook runs `loadwise check --staged` from the project folder, so every tool t
282
361
 
283
362
  ## Editor (language server)
284
363
 
285
- `loadwise lsp` shows findings as editor diagnostics, with hovers, fixes, dismissals and code lenses. For any editor with a custom stdio LSP client, see the [Node.js launch settings and editor examples](docs/editor.mdx#set-up-a-custom-stdio-lsp-client). Use the installed CLI path in place of `/absolute/path/to/loadwise.js` in the examples below.
286
-
287
- **Neovim 0.11+** (`init.lua`); with an older Neovim, register the same `cmd`, `filetypes` and root markers as a custom nvim-lspconfig server:
288
-
289
- ```lua
290
- vim.lsp.config('loadwise', {
291
- cmd = { 'node', '/absolute/path/to/loadwise.js', 'lsp', '--stdio' },
292
- filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact', 'python' },
293
- root_markers = { 'loadwise.config.json', 'tsconfig.json', 'jsconfig.json', 'package.json', '.git' },
294
- init_options = { loadwise = { severity = 'default' } },
295
- })
296
- vim.lsp.enable('loadwise')
297
- ```
298
-
299
- **Helix** (`languages.toml`), added beside each language's own server:
300
-
301
- ```toml
302
- [language-server.loadwise]
303
- command = "node"
304
- args = ["/absolute/path/to/loadwise.js", "lsp", "--stdio"]
305
-
306
- [[language]]
307
- name = "typescript"
308
- language-servers = ["typescript-language-server", "loadwise"]
309
- ```
364
+ From your editor’s terminal, run:
310
365
 
311
- **Zed**: follow the [extension-based setup](docs/editor.mdx#zed) if your installed extension registers Loadwise.
312
-
313
- **Sublime Text** with the LSP package (**Preferences > Package Settings > LSP > Settings**):
314
-
315
- ```json
316
- {
317
- "clients": {
318
- "loadwise": {
319
- "enabled": true,
320
- "command": ["node", "/absolute/path/to/loadwise.js", "lsp", "--stdio"],
321
- "selector": "source.js | source.jsx | source.ts | source.tsx | source.python"
322
- }
323
- }
324
- }
366
+ ```sh
367
+ npx loadwise@latest editor setup
325
368
  ```
326
369
 
327
- **Emacs** with eglot, which runs one server per buffer, so Loadwise takes the place of another server for these modes:
370
+ Editor setup requires Loadwise 0.7.0 or later. If bare `npx loadwise editor setup` says `check accepts at most one directory`, npm selected an older project dependency. The `@latest` command uses the latest published CLI for setup and leaves the project pin intact. Use the bare command to select a compatible project-pinned version.
328
371
 
329
- ```elisp
330
- (with-eval-after-load 'eglot
331
- (add-to-list 'eglot-server-programs
332
- '((js-mode js-ts-mode typescript-ts-mode tsx-ts-mode python-mode python-ts-mode)
333
- . ("node" "/absolute/path/to/loadwise.js" "lsp" "--stdio"))))
334
- ```
372
+ Setup installs the extension for VS Code, VSCodium, Cursor, Windsurf or Antigravity IDE, or prepares the language client for your editor. Use `--editor <name>` to choose explicitly. JetBrains, Zed, Sublime Text and some terminal editors have a plugin or configuration step. For another stdio client, `--editor stdio` prints its exact launch command. [Editor setup and verification](docs/editor.mdx)
335
373
 
336
- **VS Code and VSCodium**: follow the [Simple LSP Client workspace setup](docs/editor.mdx#vs-code-and-vscodium). For IntelliJ IDEA, see the [stdio server configuration](docs/editor.mdx#intellij-idea).
374
+ If Loadwise is already on the editor's PATH, a custom client can launch `loadwise lsp --stdio` directly.
337
375
 
338
376
  **What you see.** Each finding is a diagnostic with its checker as the source (`loadwise perf`, `loadwise maint`, `loadwise sec`) and its rule as the code, linked to the rule's page, with related locations such as the other imports of a dependency cycle. Rule levels from `loadwise.config.json` decide the severity: by default declared contract violations are errors and other findings warnings. Live-database findings appear on the first line of `package.json`. Hovers show the recommendation, the finding and the before and after code. Code actions are **Apply fix: <rule>**, **Dismiss this finding**, **Dismiss <rule> in this file** and **Apply all Loadwise fixes in this file**, and code lenses put **Apply fix**, **Dismiss** and **Apply all** above fixable lines. Multi-file fixes apply all-or-nothing, never overwrite an existing file and refuse code that changed since the scan, including unsaved editor text. `source.fixAll.loadwise` applies every eligible fix in the file as one undoable edit and leaves fixes that need individual review for **Apply fix**. A dismissed finding stays hidden until its flagged line changes; dismissals are saved in `.loadwise/dismissed.json` at the workspace folder root, which you can commit to share them.
339
377
 
@@ -358,6 +396,11 @@ Settings go in the client's `initializationOptions` or its `loadwise` configurat
358
396
  | `severity` | `"default"` | `error`, `warning`, `information` or `hint` shows every finding at that level |
359
397
  | `codeLens` | `true` | Show the Apply fix and Dismiss code lenses |
360
398
 
399
+ ## Full Rule & Checker Reference
400
+
401
+ <details>
402
+ <summary><strong>Expand all 5 checker references (Performance, Reliability, Maintainability, Security, Accessibility)</strong></summary>
403
+
361
404
  # Performance checker
362
405
 
363
406
  `loadwise perf` finds repeated backend work and avoidable React, Vue and Angular rendering work in source code, OpenTelemetry traces and executed database plans. Findings for loops and repeated spans carry an **Impact:** line that says which side is measured and which is estimated (`~`); a millisecond figure is never printed without a measurement behind it.
@@ -778,6 +821,7 @@ npx loadwise rel migrations # new migrations fail; baselined
778
821
  | <a id="unreferenced-file"></a>[`unreferenced-file`](docs/rules/maintainability/unreferenced-file.md) | low | A source file that nothing imports and that is not an entry point. |
779
822
  | <a id="unused-export"></a>[`unused-export`](docs/rules/maintainability/unused-export.md) | low | An export that no scanned file imports. |
780
823
  | <a id="unused-import"></a>[`unused-import`](docs/rules/maintainability/unused-import.md) | low | An imported name is never used in the file. |
824
+ | <a id="unused-local-function"></a>[`unused-local-function`](docs/rules/maintainability/unused-local-function.md) | low | A private function declaration has no references. |
781
825
  | <a id="unused-local-variable"></a>[`unused-local-variable`](docs/rules/maintainability/unused-local-variable.md) | low | A local variable is assigned but never read. |
782
826
 
783
827
  <!-- loadwise:rules:end -->
@@ -830,6 +874,8 @@ npx loadwise sec deps --online # known-vulnerable packages in the lockfil
830
874
  npx loadwise sec polyglot src/ # ast-grep rules for Python, Go, Java, C#, Rust
831
875
  ```
832
876
 
877
+ Run `loadwise sec deps --help` or `loadwise sec polyglot --help` for the options specific to those checks.
878
+
833
879
  It accepts the source-check flags of `loadwise perf`, including `--format`, `--min-impact`, `--baseline`, `--write-baseline`, `--loadwise-config`, `--workspace`, `--policy`, `--json`, `--include-contextual`, `--ignore`, `--fail-on`, `--fix` with `--yes` or `--only` and `--no-comments` or `--no-format`, `--staged` and `--changed-since`. `--engine auto` (the default) and `--engine js` both run TypeScript 6, because the native engine finds less; `--engine native` (alias `--native`) prints a note that cross-file taint through JavaScript constructor functions and rate-limit detection are reduced. Rules that need a package's types stay silent until it is installed. Test, fixture, mock, example and story files are contextual (`Test or example source.`). `--fail-on contract` enforces no security rule by default. `--fix --yes` leaves ValidationPipe whitelisting for individual review because it can strip undecorated DTO properties.
834
880
 
835
881
  ## Rules
@@ -986,9 +1032,15 @@ npx loadwise a11y --fix --only <id> # apply one generated fix
986
1032
 
987
1033
  <!-- loadwise:rules:end -->
988
1034
 
1035
+ </details>
1036
+
989
1037
  # Verification and development
990
1038
 
991
- [PERFORMANCE.md](PERFORMANCE.md) has the scan-time and memory measurements, and the [corpus rule scorecard](bench/corpus/scorecard.md) the measured precision and recall per rule. To develop Loadwise itself, see [CONTRIBUTING.md](CONTRIBUTING.md).
1039
+ [PERFORMANCE.md](https://github.com/IbrahimHafez1/loadwise/blob/main/PERFORMANCE.md) has the scan-time and memory measurements, and the [corpus rule scorecard](https://github.com/IbrahimHafez1/loadwise/blob/main/bench/corpus/scorecard.md) the measured precision and recall per rule. To develop Loadwise itself, see [CONTRIBUTING.md](https://github.com/IbrahimHafez1/loadwise/blob/main/CONTRIBUTING.md).
1040
+
1041
+ # Sponsors
1042
+
1043
+ Error monitoring, uptime checks, and scheduled-job monitoring for Loadwise are sponsored by **[Sentry](https://sentry.io)** through the Sentry Open Source Program.
992
1044
 
993
1045
  # License
994
1046