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.
- package/README.md +175 -115
- package/dist/bin/loadwise.js +132 -67
- package/dist/lib/accessibility/analyze.js +5 -3
- package/dist/lib/accessibility/angular-inline.js +9 -11
- package/dist/lib/accessibility/angular-literal.js +39 -0
- package/dist/lib/accessibility/form-context.js +36 -0
- package/dist/lib/accessibility/frame-head.js +92 -0
- package/dist/lib/accessibility/frame-viewport.js +149 -0
- package/dist/lib/accessibility/frontend-detect.js +6 -5
- package/dist/lib/accessibility/jsx-elements.js +13 -3
- package/dist/lib/accessibility/markup-files.js +7 -2
- package/dist/lib/accessibility/rule-ids.js +3 -0
- package/dist/lib/accessibility/rules.js +128 -41
- package/dist/lib/accessibility/site-fixes/buttons.js +5 -1
- package/dist/lib/accessibility/template-attributes.js +5 -3
- package/dist/lib/accessibility/template-elements.js +25 -6
- package/dist/lib/accessibility/template-file.js +40 -25
- package/dist/lib/accessibility/usage.js +10 -2
- package/dist/lib/editor/accessibility-examples.js +6 -1
- package/dist/lib/editor/actions.js +46 -7
- package/dist/lib/editor/apply-fix.js +69 -4
- package/dist/lib/editor/configured-setup.js +63 -0
- package/dist/lib/editor/diagnostics.js +206 -17
- package/dist/lib/editor/dismissals.js +85 -26
- package/dist/lib/editor/editor-document.js +5 -2
- package/dist/lib/editor/editor-launcher.js +170 -0
- package/dist/lib/editor/fix-edits.js +19 -0
- package/dist/lib/editor/jetbrains-setup.js +53 -0
- package/dist/lib/editor/language-server.js +80 -24
- package/dist/lib/editor/managed-config.js +37 -0
- package/dist/lib/editor/native-setup.js +86 -0
- package/dist/lib/editor/perf-watch.js +8 -6
- package/dist/lib/editor/release-vsix.js +61 -0
- package/dist/lib/editor/reliability-examples.js +15 -0
- package/dist/lib/editor/scan-session.js +29 -8
- package/dist/lib/editor/server-commands.js +38 -9
- package/dist/lib/editor/setup-server.js +87 -0
- package/dist/lib/editor/setup-vim.js +63 -0
- package/dist/lib/editor/setup.js +131 -0
- package/dist/lib/editor/stdio-setup.js +6 -0
- package/dist/lib/editor/workspace-files.js +61 -7
- package/dist/lib/editor/workspace-paths.js +41 -1
- package/dist/lib/maintainability/analysis/analyze-source.js +1 -1
- package/dist/lib/maintainability/architecture/architecture.js +4 -4
- package/dist/lib/maintainability/cli/changed-lines.js +20 -2
- package/dist/lib/maintainability/cli/inputs.js +12 -3
- package/dist/lib/maintainability/cli.js +18 -5
- package/dist/lib/maintainability/entry-points/entry-points.js +44 -15
- package/dist/lib/maintainability/entry-points/html-entry-points.js +5 -1
- package/dist/lib/maintainability/examples.js +4 -0
- package/dist/lib/maintainability/quality/functions.js +9 -6
- package/dist/lib/maintainability/quality/limits.js +19 -0
- package/dist/lib/maintainability/quality/size-limits.js +8 -2
- package/dist/lib/maintainability/quality/stray-console.js +62 -1
- package/dist/lib/maintainability/quality/tsconfig-strict.js +2 -0
- package/dist/lib/maintainability/rule-ids.js +3 -0
- package/dist/lib/maintainability/scan-changed.js +4 -1
- package/dist/lib/maintainability/scan-worker.js +6 -2
- package/dist/lib/maintainability/scan.js +21 -8
- package/dist/lib/maintainability/site-fixes/unused-bindings.js +138 -3
- package/dist/lib/maintainability/unused/module-usage.js +43 -21
- package/dist/lib/maintainability/unused/unused-bindings.js +39 -4
- package/dist/lib/maintainability/unused/unused-modules.js +5 -10
- package/dist/lib/performance/analysis/source-inputs.js +7 -2
- package/dist/lib/performance/analysis/source-options.js +7 -6
- package/dist/lib/performance/analyze.js +16 -3
- package/dist/lib/performance/cli/changed-lines.js +8 -1
- package/dist/lib/performance/cli/cli-arguments.js +19 -8
- package/dist/lib/performance/cli/cli-output.js +4 -0
- package/dist/lib/performance/cli/cli-scan.js +21 -2
- package/dist/lib/performance/cli.js +16 -7
- package/dist/lib/performance/collections/memory-growth.js +55 -12
- package/dist/lib/performance/contracts/openapi.js +13 -4
- package/dist/lib/performance/datastores/pg-integrity.js +68 -22
- package/dist/lib/performance/datastores/pg-session-release.js +114 -0
- package/dist/lib/performance/datastores/pg-session-sql.js +144 -0
- package/dist/lib/performance/datastores/pooling.js +62 -3
- package/dist/lib/performance/datastores/redis.js +94 -18
- package/dist/lib/performance/datastores/session-store.js +2 -1
- package/dist/lib/performance/db/checks.js +19 -8
- package/dist/lib/performance/db/gateway.js +3 -1
- package/dist/lib/performance/db/plan-estimates.js +4 -4
- package/dist/lib/performance/engine/native-syntax.js +3 -0
- package/dist/lib/performance/engine/native.js +11 -7
- package/dist/lib/performance/evidence/plans.js +7 -5
- package/dist/lib/performance/evidence/traces.js +21 -1
- package/dist/lib/performance/frontend/angular-teardown.js +96 -0
- package/dist/lib/performance/frontend/effect-cleanup.js +148 -0
- package/dist/lib/performance/frontend/frontend-dom-perf.js +14 -2
- package/dist/lib/performance/frontend/frontend-helpers.js +1 -9
- package/dist/lib/performance/frontend/frontend-perf.js +149 -74
- package/dist/lib/performance/migrations/extract-code-sql.js +16 -4
- package/dist/lib/performance/migrations/extract-code.js +13 -5
- package/dist/lib/performance/migrations/extract-sql.js +82 -38
- package/dist/lib/performance/migrations/operations.js +56 -13
- package/dist/lib/performance/migrations/postgres-lock-timeout.js +52 -0
- package/dist/lib/performance/migrations/postgres-registry.js +127 -26
- package/dist/lib/performance/migrations/postgres-settings.js +78 -0
- package/dist/lib/performance/migrations/rules-postgres-add-column.js +3 -3
- package/dist/lib/performance/migrations/rules-postgres-shared.js +9 -0
- package/dist/lib/performance/migrations/rules-postgres.js +88 -39
- package/dist/lib/performance/orm/offset-pagination.js +6 -4
- package/dist/lib/performance/orm/prisma-aggregates.js +69 -18
- package/dist/lib/performance/orm/unbounded-list-chain.js +29 -0
- package/dist/lib/performance/orm/unbounded-list-queries.js +18 -13
- package/dist/lib/performance/polyglot.js +111 -14
- package/dist/lib/performance/projects.js +3 -3
- package/dist/lib/performance/query-loops/sequential-loops.js +1 -0
- package/dist/lib/performance/request/backend-mastery.js +151 -42
- package/dist/lib/performance/request/bulk-listener-registration.js +111 -0
- package/dist/lib/performance/request/fastify-receivers.js +93 -0
- package/dist/lib/performance/request/fresh-loop-socket.js +103 -0
- package/dist/lib/performance/request/mongoose-lean.js +298 -46
- package/dist/lib/performance/request/node-event-listener-leak.js +99 -5
- package/dist/lib/performance/request/phase5-ast.js +6 -7
- package/dist/lib/performance/request/phase5-rules.js +204 -23
- package/dist/lib/performance/request/request-handlers.js +120 -23
- package/dist/lib/performance/request/sql-select-star.js +150 -0
- package/dist/lib/performance/request/unbounded-promise-all.js +54 -29
- package/dist/lib/performance/request/upload-limits.js +5 -1
- package/dist/lib/performance/site-fix.js +4 -4
- package/dist/lib/performance/site-fixes/backend-mastery-fixes.js +298 -16
- package/dist/lib/performance/site-fixes/collection-existence.js +2 -1
- package/dist/lib/performance/site-fixes/collections.js +1 -2
- package/dist/lib/performance/site-fixes/frontend-fixes.js +358 -14
- package/dist/lib/performance/site-fixes/helpers.js +3 -4
- package/dist/lib/performance/site-fixes/integrity.js +2 -4
- package/dist/lib/performance/site-fixes/migration-context.js +8 -1
- package/dist/lib/performance/site-fixes/migration-lock-rules.js +66 -30
- package/dist/lib/performance/site-fixes/prisma-aggregates.js +29 -9
- package/dist/lib/performance/site-fixes/small-rewrites.js +168 -10
- package/dist/lib/performance/site-fixes/sync-calls.js +14 -12
- package/dist/lib/performance/site-fixes/upload-limits.js +13 -7
- package/dist/lib/performance/sql/mysql-tokens.js +38 -12
- package/dist/lib/reliability/boundary-access.js +114 -57
- package/dist/lib/reliability/react-bugs.js +29 -7
- package/dist/lib/reliability/resource-leak-intervals.js +258 -0
- package/dist/lib/reliability/resource-leaks.js +209 -195
- package/dist/lib/reliability/rule-ids.js +10 -1
- package/dist/lib/reliability/site-fixes/resource-leaks.js +16 -1
- package/dist/lib/reliability/swallowed-errors.js +107 -21
- package/dist/lib/reliability/test-cleanup-after-await.js +92 -18
- package/dist/lib/reliability/usage.js +16 -5
- package/dist/lib/reliability/walk.js +3 -2
- package/dist/lib/security/auth-crypto/hashing.js +24 -8
- package/dist/lib/security/auth-crypto/jwt.js +21 -6
- package/dist/lib/security/auth-crypto/secrets.js +44 -1
- package/dist/lib/security/auth-crypto/shared.js +3 -1
- package/dist/lib/security/auth-crypto/signing-algorithm.js +79 -0
- package/dist/lib/security/auth-crypto/transport-and-ciphers.js +85 -1
- package/dist/lib/security/cli.js +21 -6
- package/dist/lib/security/cookie-credentials.js +115 -0
- package/dist/lib/security/cookie-csrf.js +241 -0
- package/dist/lib/security/deps/advisory.js +50 -109
- package/dist/lib/security/deps/cli.js +1 -1
- package/dist/lib/security/deps/cvss-score.js +14 -0
- package/dist/lib/security/deps/fixed-version.js +97 -0
- package/dist/lib/security/deps/lockfiles.js +135 -74
- package/dist/lib/security/deps/osv.js +11 -3
- package/dist/lib/security/deps/scan.js +47 -20
- package/dist/lib/security/deps/yarn-lock.js +158 -0
- package/dist/lib/security/examples/injection.cjs +4 -0
- package/dist/lib/security/exposure/cookies.js +17 -2
- package/dist/lib/security/exposure/cors-origin-regex.js +2 -3
- package/dist/lib/security/exposure/frontend-security.js +21 -14
- package/dist/lib/security/exposure/jsx-url.js +18 -33
- package/dist/lib/security/exposure/logging.js +49 -10
- package/dist/lib/security/exposure/prototype-pollution.js +126 -56
- package/dist/lib/security/exposure/react-html.js +26 -0
- package/dist/lib/security/exposure/reflected-xss.js +34 -5
- package/dist/lib/security/files/compose.js +126 -1
- package/dist/lib/security/files/dockerfile.js +62 -4
- package/dist/lib/security/files/index.js +1 -1
- package/dist/lib/security/injection/command.js +46 -18
- package/dist/lib/security/injection/index.js +2 -0
- package/dist/lib/security/injection/ldap.js +86 -0
- package/dist/lib/security/injection/nosql.js +28 -4
- package/dist/lib/security/injection/redos.js +1 -1
- package/dist/lib/security/injection/rule-ids.js +1 -0
- package/dist/lib/security/injection/shared.js +5 -1
- package/dist/lib/security/injection/sql.js +28 -13
- package/dist/lib/security/lexical-declaration.js +113 -0
- package/dist/lib/security/pg-dynamic-query.js +28 -1
- package/dist/lib/security/pg-identifier-guards.js +107 -3
- package/dist/lib/security/phase5-rules.js +26 -135
- package/dist/lib/security/polyglot.js +2 -2
- package/dist/lib/security/redirect-settings.js +98 -0
- package/dist/lib/security/request-forgery/open-redirect.js +18 -5
- package/dist/lib/security/request-forgery/path-traversal.js +84 -6
- package/dist/lib/security/request-forgery/shared.js +1 -7
- package/dist/lib/security/request-forgery/ssrf.js +176 -14
- package/dist/lib/security/rule-descriptions.js +5 -1
- package/dist/lib/security/rule-ids.js +7 -0
- package/dist/lib/security/site-fixes/auth-crypto.js +5 -78
- package/dist/lib/security/site-fixes/exposure.js +21 -3
- package/dist/lib/security/site-fixes/files.js +11 -13
- package/dist/lib/security/site-fixes/frontend-security-fixes.js +2 -2
- package/dist/lib/security/site-fixes/injection.js +17 -4
- package/dist/lib/security/site-fixes/jwt.js +1 -20
- package/dist/lib/security/site-fixes/request-forgery.js +37 -29
- package/dist/lib/security/taint/binding-inputs.js +236 -0
- package/dist/lib/security/taint/filename-guard.js +45 -45
- package/dist/lib/security/taint/guards.js +14 -8
- package/dist/lib/security/taint/index.js +126 -154
- package/dist/lib/security/taint/propagate.js +43 -9
- package/dist/lib/security/taint/record-writes.js +161 -0
- package/dist/lib/security/taint/resolution-cache.js +13 -7
- package/dist/lib/security/taint/sanitizers.js +89 -5
- package/dist/lib/security/taint/trace-nodes.js +61 -0
- package/dist/lib/security/taint/validators.js +89 -9
- package/dist/lib/shared/agent/agent-init.js +28 -5
- package/dist/lib/shared/agent/agent-prompt.js +74 -0
- package/dist/lib/shared/agent/agent-session.js +6 -1
- package/dist/lib/shared/agent/agent-verify.js +58 -11
- package/dist/lib/shared/agent/git-hook.js +17 -6
- package/dist/lib/shared/agent/review-delivery.js +1 -1
- package/dist/lib/shared/agent/review-mcp.js +8 -2
- package/dist/lib/shared/analysis/ast-semantics.js +2 -2
- package/dist/lib/shared/analysis/scan-cache.js +99 -14
- package/dist/lib/shared/check.js +172 -20
- package/dist/lib/shared/cli-dispatch.js +17 -0
- package/dist/lib/shared/config.js +27 -10
- package/dist/lib/shared/explain.js +1 -1
- package/dist/lib/shared/fix/fix-convergence.js +19 -31
- package/dist/lib/shared/fix/fix-handoff.js +16 -11
- package/dist/lib/shared/fix/fix-imports.js +4 -162
- package/dist/lib/shared/fix/fix-presentation-comments.js +23 -9
- package/dist/lib/shared/fix/fix-presentation-prettier.js +1 -46
- package/dist/lib/shared/fix/fix-presentation-rows.js +45 -1
- package/dist/lib/shared/fix/fix-presentation.js +9 -6
- package/dist/lib/shared/fix/fix-safety.js +32 -1
- package/dist/lib/shared/fix/fix-scope.js +82 -0
- package/dist/lib/shared/fix/fix-terminal.js +28 -1
- package/dist/lib/shared/fix/fix-typecheck.js +8 -4
- package/dist/lib/shared/fix/import-text-edits.js +148 -0
- package/dist/lib/shared/fix/project-file-access.js +17 -26
- package/dist/lib/shared/fix/read-fix-text.js +20 -0
- package/dist/lib/shared/fix.js +241 -104
- package/dist/lib/shared/formats/finding-location.js +4 -1
- package/dist/lib/shared/formats/github.js +3 -3
- package/dist/lib/shared/formats/sarif.js +9 -3
- package/dist/lib/shared/report-fp.js +97 -0
- package/dist/lib/shared/reporting/automatic-fix-signal.js +10 -0
- package/dist/lib/shared/reporting/baseline.js +7 -5
- package/dist/lib/shared/reporting/check-text.js +50 -0
- package/dist/lib/shared/reporting/pillars.js +54 -19
- package/dist/lib/shared/reporting/source-report.js +3 -0
- package/dist/lib/shared/system/atomic-write.js +5 -2
- package/dist/lib/shared/system/glob.js +34 -8
- package/dist/lib/shared/system/sentry.js +222 -0
- package/dist/lib/shared/system/shell-argument.js +5 -1
- package/dist/lib/shared/system/terminal-safe.js +3 -2
- package/dist/lib/shared/system/terminal-style.js +131 -0
- package/dist/lib/shared/workspaces.js +15 -3
- package/docs/assets/cli-workflow.gif +0 -0
- package/integrations/sublime/plugin.py +22 -0
- package/integrations/zed/Cargo.lock +845 -0
- package/integrations/zed/Cargo.toml +11 -0
- package/integrations/zed/extension.toml +11 -0
- package/integrations/zed/src/lib.rs +25 -0
- package/package.json +15 -3
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/commands/loadwise.md +11 -6
- package/plugin/hooks/check-edited-file.mjs +27 -5
- package/polyglot/performance/rules/csharp.yml +34 -5
- package/polyglot/performance/rules/java.yml +24 -1
- package/polyglot/performance/rules/python.yml +74 -2
- package/polyglot/performance/sgconfig.yml +1 -0
- package/polyglot/reliability/rules/csharp.yml +12 -6
- package/polyglot/reliability/rules/go.yml +86 -6
- package/polyglot/reliability/rules/java.yml +22 -1
- package/polyglot/reliability/sgconfig.yml +1 -0
- package/polyglot/security/rules/go.yml +100 -22
- package/polyglot/security/rules/python.yml +74 -6
- package/polyglot/security/rules/rust.yml +65 -0
- package/polyglot/security/sgconfig.yml +1 -0
- package/schema/loadwise.config.schema.json +556 -76
- /package/polyglot/{performance/rules → shared-rules}/input.yml +0 -0
package/README.md
CHANGED
|
@@ -2,84 +2,138 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/loadwise) [](https://github.com/IbrahimHafez1/loadwise/actions/workflows/check.yml) [](https://scorecard.dev/viewer/?uri=github.com/IbrahimHafez1/loadwise) [](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
|
-
|
|
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
|
-
|
|
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
|
+

|
|
14
10
|
|
|
15
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
25
|
-
npx loadwise
|
|
43
|
+
npx loadwise fix --only rel --id 245ca194d514 --dry-run
|
|
44
|
+
npx loadwise fix --only rel --id 245ca194d514
|
|
26
45
|
```
|
|
27
46
|
|
|
28
|
-
|
|
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
|
-
|
|
54
|
+
== Performance ==
|
|
55
|
+
1 file checked, 0 findings.
|
|
31
56
|
|
|
32
|
-
|
|
57
|
+
== Reliability ==
|
|
58
|
+
1 file checked, 0 findings.
|
|
33
59
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
67
|
+
_Loadwise skips accessibility on projects without frontend sources._
|
|
41
68
|
|
|
42
|
-
|
|
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
|
-
|
|
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
|
-
|
|
48
|
-
npx loadwise
|
|
49
|
-
npx loadwise
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
| `loadwise perf
|
|
69
|
-
|
|
|
70
|
-
| `loadwise
|
|
71
|
-
| `loadwise sec
|
|
72
|
-
|
|
|
73
|
-
| `loadwise
|
|
74
|
-
| `loadwise
|
|
75
|
-
|
|
|
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.
|
|
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
|
|
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 --
|
|
157
|
+
npx loadwise fix --all --dry-run # preview even edits marked for review
|
|
103
158
|
```
|
|
104
159
|
|
|
105
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
@@ -641,6 +684,7 @@ Some rules moved here from the performance and maintainability checkers and kept
|
|
|
641
684
|
| <a id="crlf-unsafe-line-split"></a>[`crlf-unsafe-line-split`](docs/rules/reliability/crlf-unsafe-line-split.md) | medium | Splitting file text on a bare newline leaves carriage returns on CRLF lines and can change exact comparisons. |
|
|
642
685
|
| <a id="csharp-async-void"></a>[`csharp-async-void`](docs/rules/reliability/csharp-async-void.md) | high | An async void method cannot be awaited and can crash the process on unhandled exceptions. |
|
|
643
686
|
| <a id="csharp-disposable-without-using"></a>[`csharp-disposable-without-using`](docs/rules/reliability/csharp-disposable-without-using.md) | medium | A C# stream, connection or other IDisposable is created without using, so an exception leaks it. |
|
|
687
|
+
| <a id="db-pool-client-not-released"></a>[`db-pool-client-not-released`](docs/rules/reliability/db-pool-client-not-released.md) | high | A locally checked-out database connection can leave its scope without being released. |
|
|
644
688
|
| <a id="discarded-error-result"></a>[`discarded-error-result`](docs/rules/reliability/discarded-error-result.md) | high | A call discards a typed Either or Result that can carry a failure as a value. |
|
|
645
689
|
| <a id="drizzle-unfiltered-write"></a>[`drizzle-unfiltered-write`](docs/rules/reliability/drizzle-unfiltered-write.md) | critical | A Drizzle update or delete executes without an effective where clause. |
|
|
646
690
|
| <a id="drizzle-write-preflight"></a>[`drizzle-write-preflight`](docs/rules/reliability/drizzle-write-preflight.md) | medium | A separate existence check before a Drizzle write can race with another request. |
|
|
@@ -662,6 +706,8 @@ Some rules moved here from the performance and maintainability checkers and kept
|
|
|
662
706
|
| <a id="next-server-env-in-client"></a>[`next-server-env-in-client`](docs/rules/reliability/next-server-env-in-client.md) | high | A 'use client' file reads a process.env variable without the NEXT_PUBLIC_ prefix, so it is unavailable in the browser by default. |
|
|
663
707
|
| <a id="parse-failure-resets-file"></a>[`parse-failure-resets-file`](docs/rules/reliability/parse-failure-resets-file.md) | high | A write after a read or parse failure can replace unreadable contents at the same path. |
|
|
664
708
|
| <a id="payment-missing-idempotency-key"></a>[`payment-missing-idempotency-key`](docs/rules/reliability/payment-missing-idempotency-key.md) | high | A Stripe call that moves money has no idempotency key, so a retry can charge or pay out twice. |
|
|
709
|
+
| <a id="pg-advisory-lock-session"></a>[`pg-advisory-lock-session`](docs/rules/reliability/pg-advisory-lock-session.md) | high | A PostgreSQL session can return to the pool while it holds an advisory lock. |
|
|
710
|
+
| <a id="pg-listen-session"></a>[`pg-listen-session`](docs/rules/reliability/pg-listen-session.md) | high | A PostgreSQL listener connection can return to the pool while it is still subscribed. |
|
|
665
711
|
| <a id="pg-transaction-on-pool"></a>[`pg-transaction-on-pool`](docs/rules/reliability/pg-transaction-on-pool.md) | critical | A transaction statement is sent to a pool, so its statements can run on different connections. |
|
|
666
712
|
| <a id="pool-without-connection-timeout"></a>[`pool-without-connection-timeout`](docs/rules/reliability/pool-without-connection-timeout.md) | medium | A pg Pool or Client sets no connectionTimeoutMillis, so its default of 0 waits for a connection forever. |
|
|
667
713
|
| <a id="prisma-dependent-writes"></a>[`prisma-dependent-writes`](docs/rules/reliability/prisma-dependent-writes.md) | high | Adjacent Prisma creates pass a value from the first record into the next write. |
|
|
@@ -693,7 +739,7 @@ Some rules moved here from the performance and maintainability checkers and kept
|
|
|
693
739
|
| <a id="unguarded-boundary-access"></a>[`unguarded-boundary-access`](docs/rules/reliability/unguarded-boundary-access.md) | medium | A nested property is read from outside input or a lookup that can be missing, so absent data throws a TypeError. |
|
|
694
740
|
| <a id="unreachable-code"></a>[`unreachable-code`](docs/rules/reliability/unreachable-code.md) | medium | Statements follow a return, throw, break or continue in the same block and never run. |
|
|
695
741
|
| <a id="upload-without-size-limit"></a>[`upload-without-size-limit`](docs/rules/reliability/upload-without-size-limit.md) | high | A multer or Nest upload interceptor has no file size limit. |
|
|
696
|
-
| <a id="webhook-missing-idempotency-check"></a>[`webhook-missing-idempotency-check`](docs/rules/reliability/webhook-missing-idempotency-check.md) | medium | A webhook route inserts rows without
|
|
742
|
+
| <a id="webhook-missing-idempotency-check"></a>[`webhook-missing-idempotency-check`](docs/rules/reliability/webhook-missing-idempotency-check.md) | medium | A webhook route inserts rows without visible atomic deduplication by event ID. |
|
|
697
743
|
|
|
698
744
|
<!-- loadwise:rules:end -->
|
|
699
745
|
|
|
@@ -778,6 +824,7 @@ npx loadwise rel migrations # new migrations fail; baselined
|
|
|
778
824
|
| <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
825
|
| <a id="unused-export"></a>[`unused-export`](docs/rules/maintainability/unused-export.md) | low | An export that no scanned file imports. |
|
|
780
826
|
| <a id="unused-import"></a>[`unused-import`](docs/rules/maintainability/unused-import.md) | low | An imported name is never used in the file. |
|
|
827
|
+
| <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
828
|
| <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
829
|
|
|
783
830
|
<!-- loadwise:rules:end -->
|
|
@@ -830,6 +877,8 @@ npx loadwise sec deps --online # known-vulnerable packages in the lockfil
|
|
|
830
877
|
npx loadwise sec polyglot src/ # ast-grep rules for Python, Go, Java, C#, Rust
|
|
831
878
|
```
|
|
832
879
|
|
|
880
|
+
Run `loadwise sec deps --help` or `loadwise sec polyglot --help` for the options specific to those checks.
|
|
881
|
+
|
|
833
882
|
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
883
|
|
|
835
884
|
## Rules
|
|
@@ -875,6 +924,7 @@ It accepts the source-check flags of `loadwise perf`, including `--format`, `--m
|
|
|
875
924
|
| <a id="jwt-verify-without-algorithms"></a>[`jwt-verify-without-algorithms`](docs/rules/security/jwt-verify-without-algorithms.md) | high | JWT verification does not restrict the accepted signing algorithms. |
|
|
876
925
|
| <a id="jwt-weak-secret-literal"></a>[`jwt-weak-secret-literal`](docs/rules/security/jwt-weak-secret-literal.md) | high | JWT signing or verification uses a short (< 32 chars) or weak literal secret susceptible to brute-force forgery. |
|
|
877
926
|
| <a id="knex-raw-dynamic-text"></a>[`knex-raw-dynamic-text`](docs/rules/security/knex-raw-dynamic-text.md) | critical | A dynamic SQL fragment reaches Knex without parameter binding. |
|
|
927
|
+
| <a id="ldap-filter-injection"></a>[`ldap-filter-injection`](docs/rules/security/ldap-filter-injection.md) | high | Request data reaches an LDAP search filter without RFC 4515 filter escaping or a filter builder. |
|
|
878
928
|
| <a id="mass-assignment"></a>[`mass-assignment`](docs/rules/security/mass-assignment.md) | high | An unfiltered request body reaches a persistence operation. |
|
|
879
929
|
| <a id="mysql-dynamic-query-text"></a>[`mysql-dynamic-query-text`](docs/rules/security/mysql-dynamic-query-text.md) | critical | Dynamic SQL text reaches a MySQL client without parameter binding. |
|
|
880
930
|
| <a id="nest-validation-without-whitelist"></a>[`nest-validation-without-whitelist`](docs/rules/security/nest-validation-without-whitelist.md) | medium | A NestJS ValidationPipe permits properties outside the validated DTO. |
|
|
@@ -922,25 +972,28 @@ It accepts the source-check flags of `loadwise perf`, including `--format`, `--m
|
|
|
922
972
|
|
|
923
973
|
<!-- loadwise:rules:start checker=security group=polyglot-source-checks -->
|
|
924
974
|
|
|
925
|
-
| Rule
|
|
926
|
-
|
|
|
927
|
-
| <a id="csharp-ef-from-sql-raw"></a>[`csharp-ef-from-sql-raw`](docs/rules/security/csharp-ef-from-sql-raw.md)
|
|
928
|
-
| <a id="csharp-process-start"></a>[`csharp-process-start`](docs/rules/security/csharp-process-start.md)
|
|
929
|
-
| <a id="go-exec-command-shell"></a>[`go-exec-command-shell`](docs/rules/security/go-exec-command-shell.md)
|
|
930
|
-
| <a id="go-sql-sprintf-injection"></a>[`go-sql-sprintf-injection`](docs/rules/security/go-sql-sprintf-injection.md)
|
|
931
|
-
| <a id="
|
|
932
|
-
| <a id="java-
|
|
933
|
-
| <a id="
|
|
934
|
-
| <a id="python-
|
|
935
|
-
| <a id="python-
|
|
936
|
-
| <a id="
|
|
937
|
-
| <a id="
|
|
975
|
+
| Rule | Impact | What it flags |
|
|
976
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------ | ---------------------------------------------------------------------------------------------------- |
|
|
977
|
+
| <a id="csharp-ef-from-sql-raw"></a>[`csharp-ef-from-sql-raw`](docs/rules/security/csharp-ef-from-sql-raw.md) | high | FromSqlRaw or ExecuteSqlRaw receives a concatenated or interpolated string, risking SQL injection. |
|
|
978
|
+
| <a id="csharp-process-start"></a>[`csharp-process-start`](docs/rules/security/csharp-process-start.md) | medium | Process.Start launches an external process and risks command injection with untrusted arguments. |
|
|
979
|
+
| <a id="go-exec-command-shell"></a>[`go-exec-command-shell`](docs/rules/security/go-exec-command-shell.md) | high | exec.Command invokes a shell, which risks command injection. |
|
|
980
|
+
| <a id="go-sql-sprintf-injection"></a>[`go-sql-sprintf-injection`](docs/rules/security/go-sql-sprintf-injection.md) | high | SQL text formatted with fmt.Sprintf risks SQL injection. |
|
|
981
|
+
| <a id="go-tls-insecure-skip-verify"></a>[`go-tls-insecure-skip-verify`](docs/rules/security/go-tls-insecure-skip-verify.md) | high | Setting InsecureSkipVerify: true on tls.Config disables TLS certificate verification. |
|
|
982
|
+
| <a id="java-runtime-exec"></a>[`java-runtime-exec`](docs/rules/security/java-runtime-exec.md) | medium | Runtime.getRuntime().exec runs an OS command and risks command injection with untrusted arguments. |
|
|
983
|
+
| <a id="java-sql-string-concat"></a>[`java-sql-string-concat`](docs/rules/security/java-sql-string-concat.md) | high | A SQL query built by string concatenation risks SQL injection. |
|
|
984
|
+
| <a id="python-insecure-deserialization"></a>[`python-insecure-deserialization`](docs/rules/security/python-insecure-deserialization.md) | high | pickle or marshal deserialization of untrusted data can execute arbitrary code. |
|
|
985
|
+
| <a id="python-requests-tls-verify-disabled"></a>[`python-requests-tls-verify-disabled`](docs/rules/security/python-requests-tls-verify-disabled.md) | high | Calling Python requests with verify=False disables TLS certificate verification. |
|
|
986
|
+
| <a id="python-subprocess-shell-true"></a>[`python-subprocess-shell-true`](docs/rules/security/python-subprocess-shell-true.md) | high | subprocess with shell=True or os.system passes input through a shell, risking command injection. |
|
|
987
|
+
| <a id="python-unsafe-yaml-load"></a>[`python-unsafe-yaml-load`](docs/rules/security/python-unsafe-yaml-load.md) | high | yaml.load or yaml.load_all without SafeLoader can construct arbitrary Python objects. |
|
|
988
|
+
| <a id="rust-command-shell"></a>[`rust-command-shell`](docs/rules/security/rust-command-shell.md) | high | Command::new("sh") or Command::new("bash") spawns a shell and risks command injection. |
|
|
989
|
+
| <a id="rust-reqwest-danger-accept-invalid-certs"></a>[`rust-reqwest-danger-accept-invalid-certs`](docs/rules/security/rust-reqwest-danger-accept-invalid-certs.md) | high | Calling danger_accept_invalid_certs(true) on a reqwest client disables TLS certificate verification. |
|
|
990
|
+
| <a id="rust-unsafe-raw-pointer-deref"></a>[`rust-unsafe-raw-pointer-deref`](docs/rules/security/rust-unsafe-raw-pointer-deref.md) | medium | A raw pointer dereference in an unsafe block bypasses Rust memory safety guarantees. |
|
|
938
991
|
|
|
939
992
|
<!-- loadwise:rules:end -->
|
|
940
993
|
|
|
941
994
|
## Dependency checks
|
|
942
995
|
|
|
943
|
-
`loadwise sec deps --online [directory]` reads `package-lock.json` (lockfile version 2 or 3), `pnpm-lock.yaml` or `yarn.lock` (version 1 or Berry) from the directory or the nearest parent that has one, and asks the [OSV database](https://osv.dev) (which includes the GitHub Advisory Database) about every pinned package version. It sends package names and versions and nothing else. Answers are cached for 24 hours in the `loadwise` folder of the OS cache directory. It takes `--format text|json` (or `--json`), `--include-contextual`, `--ignore` and `--fail-on`. A network failure exits 2 rather than passing. The network is opt-in: `loadwise sec --online` and `loadwise check --online` add these findings to their security report, and without `--online` they print one note that dependency checks were skipped.
|
|
996
|
+
`loadwise sec deps --online [directory]` reads `npm-shrinkwrap.json` in preference to `package-lock.json` (npm lockfile version 2 or 3), `pnpm-lock.yaml` or `yarn.lock` (version 1 or Berry) from the directory or the nearest parent that has one, and asks the [OSV database](https://osv.dev) (which includes the GitHub Advisory Database) about every pinned package version. It sends package names and versions and nothing else. Answers are cached for 24 hours in the `loadwise` folder of the OS cache directory. It takes `--format text|json` (or `--json`), `--include-contextual`, `--ignore` and `--fail-on`. A network failure exits 2 rather than passing. The network is opt-in: `loadwise sec --online` and `loadwise check --online` add these findings to their security report, and without `--online` they print one note that dependency checks were skipped.
|
|
944
997
|
|
|
945
998
|
<!-- loadwise:rules:start checker=security group=dependency-checks -->
|
|
946
999
|
|
|
@@ -970,6 +1023,7 @@ npx loadwise a11y --fix --only <id> # apply one generated fix
|
|
|
970
1023
|
|
|
971
1024
|
| Rule | Impact | What it flags |
|
|
972
1025
|
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
1026
|
+
| <a id="a11y-aria-hidden-focus"></a>[`a11y-aria-hidden-focus`](docs/rules/accessibility/a11y-aria-hidden-focus.md) | high | A control in the Tab order is hidden from assistive technology by aria-hidden. |
|
|
973
1027
|
| <a id="a11y-button-missing-type"></a>[`a11y-button-missing-type`](docs/rules/accessibility/a11y-button-missing-type.md) | medium | A button associated with a form has a click handler but no explicit type, so clicking it can also submit the form. |
|
|
974
1028
|
| <a id="a11y-clickable-non-interactive"></a>[`a11y-clickable-non-interactive`](docs/rules/accessibility/a11y-clickable-non-interactive.md) | high | A click handler sits on a non-interactive element without a role and keyboard support, so keyboard users cannot activate it. |
|
|
975
1029
|
| <a id="a11y-heading-level-skipped"></a>[`a11y-heading-level-skipped`](docs/rules/accessibility/a11y-heading-level-skipped.md) | low | A heading jumps more than one level down, which leaves a gap in the page outline. |
|
|
@@ -986,9 +1040,15 @@ npx loadwise a11y --fix --only <id> # apply one generated fix
|
|
|
986
1040
|
|
|
987
1041
|
<!-- loadwise:rules:end -->
|
|
988
1042
|
|
|
1043
|
+
</details>
|
|
1044
|
+
|
|
989
1045
|
# Verification and development
|
|
990
1046
|
|
|
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).
|
|
1047
|
+
[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).
|
|
1048
|
+
|
|
1049
|
+
# Sponsors
|
|
1050
|
+
|
|
1051
|
+
Error monitoring, uptime checks, and scheduled-job monitoring for Loadwise are sponsored by **[Sentry](https://sentry.io)** through the Sentry Open Source Program.
|
|
992
1052
|
|
|
993
1053
|
# License
|
|
994
1054
|
|