# Loadwise - [Loadwise](https://loadwise.mintlify.app/index.md): One CLI that checks a TypeScript or JavaScript project for performance, reliability, maintainability, security and accessibility problems before it ships. - [Quickstart](https://loadwise.mintlify.app/quickstart.md): Install Loadwise, run a first check and apply a fix to a bundled example. - [Commands](https://loadwise.mintlify.app/commands.md): Commands, shared flags, exit codes, fixes, dismissals and changed-line scans. - [Configuration](https://loadwise.mintlify.app/configuration.md): The loadwise.config.json file, rule levels, overrides and impact levels. - [GitHub Action](https://loadwise.mintlify.app/github-action.md): Run loadwise check in pull requests with annotations and SARIF upload. - [AI coding agents](https://loadwise.mintlify.app/ai-agents.md): Use Loadwise with coding agents, after-edit hooks, MCP and a Git pre-commit hook. - [Editor (language server)](https://loadwise.mintlify.app/editor.md): Set up Loadwise diagnostics in your editor and verify a finding. - [Release signatures](https://loadwise.mintlify.app/release-signatures.md): Verify the Sigstore bundle attached to a Loadwise release. - [Playwright launch-server exit status](https://loadwise.mintlify.app/case-studies/playwright-launch-server.md): How a Loadwise reliability finding led to a reproduced Playwright CLI bug. - [Performance checker](https://loadwise.mintlify.app/checkers/performance.md): loadwise perf: repeated backend work, rendering work, schema-aware indexes, traces, query plans and database inspection. - [Reliability checker](https://loadwise.mintlify.app/checkers/reliability.md): loadwise rel: runtime and concurrency failures, migration safety and API contract safety. - [Maintainability checker](https://loadwise.mintlify.app/checkers/maintainability.md): loadwise maint: design advisories and the architecture rules a team declares. - [Security checker](https://loadwise.mintlify.app/checkers/security.md): loadwise sec: input reaching sensitive operations, credentials, configuration, row scopes and dependency advisories. - [Accessibility checker](https://loadwise.mintlify.app/checkers/accessibility.md): loadwise a11y: markup that screen reader, keyboard or zoom users cannot use. - [Contributing](https://loadwise.mintlify.app/contributing.md): Develop, test, benchmark and release Loadwise. - [angular-default-change-detection](https://loadwise.mintlify.app/rules/performance/angular-default-change-detection.md): An Angular component uses default change detection instead of OnPush, so its subtree is re-checked on every event. - [angular-ngfor-missing-trackby](https://loadwise.mintlify.app/rules/performance/angular-ngfor-missing-trackby.md): An *ngFor has no trackBy, so a list replaced with new objects recreates the DOM of every item. - [angular-subscribe-without-cleanup](https://loadwise.mintlify.app/rules/performance/angular-subscribe-without-cleanup.md): An RxJS subscription in a component has no completing operator or ngOnDestroy unsubscribe and keeps running after destruction. - [array-repeated-find](https://loadwise.mintlify.app/rules/performance/array-repeated-find.md): An array is searched with find or findIndex repeatedly where a Map lookup would do. - [array-repeated-membership](https://loadwise.mintlify.app/rules/performance/array-repeated-membership.md): An array is tested with includes or indexOf repeatedly where a Set would do. - [array-shift-in-fifo-drain](https://loadwise.mintlify.app/rules/performance/array-shift-in-fifo-drain.md): A FIFO drain repeatedly removes the first array element. - [dom-layout-thrashing](https://loadwise.mintlify.app/rules/performance/dom-layout-thrashing.md): A loop reads layout metrics and mutates DOM styles or classes, forcing a reflow on each iteration. - [dom-listener-without-cleanup](https://loadwise.mintlify.app/rules/performance/dom-listener-without-cleanup.md): A window or document listener uses an inline function with no AbortSignal or once, so it can never be removed. - [dom-unthrottled-scroll-resize](https://loadwise.mintlify.app/rules/performance/dom-unthrottled-scroll-resize.md): A scroll, resize, mousemove, wheel or touch listener runs unthrottled work (or is non-passive) on the main thread. - [express-missing-compression](https://loadwise.mintlify.app/rules/performance/express-missing-compression.md): An Express server registers no response compression middleware. - [external-call-in-transaction](https://loadwise.mintlify.app/rules/performance/external-call-in-transaction.md): An external call is awaited inside a database transaction, holding its connection and locks. - [filter-for-existence](https://loadwise.mintlify.app/rules/performance/filter-for-existence.md): filter(...).length is used only to test whether any element matches. - [frontend-barrel-heavy-import](https://loadwise.mintlify.app/rules/performance/frontend-barrel-heavy-import.md): A client module imports the whole of lodash or moment instead of subpaths or a lighter library. - [graphql-n-plus-one-resolver](https://loadwise.mintlify.app/rules/performance/graphql-n-plus-one-resolver.md): A GraphQL field resolver executes a database or HTTP query per parent item without DataLoader batching. - [heavy-media-in-request-handler](https://loadwise.mintlify.app/rules/performance/heavy-media-in-request-handler.md): Heavy image (sharp) or PDF rendering runs directly inside an HTTP request handler. - [js-fixed-regexp-in-loop](https://loadwise.mintlify.app/rules/performance/js-fixed-regexp-in-loop.md): A stateless RegExp is repeatedly constructed from fixed arguments. - [json-roundtrip-clone](https://loadwise.mintlify.app/rules/performance/json-roundtrip-clone.md): A value is deep-cloned with JSON.parse(JSON.stringify(...)) on a request path. - [json-stringify-in-loop](https://loadwise.mintlify.app/rules/performance/json-stringify-in-loop.md): JSON.stringify runs inside a loop instead of serializing once or streaming. - [list-count-per-request](https://loadwise.mintlify.app/rules/performance/list-count-per-request.md): A list endpoint runs a full count query on every request. - [list-query-overfetch](https://loadwise.mintlify.app/rules/performance/list-query-overfetch.md): A list query loads large columns or nested relations without a narrow projection. - [llm-call-without-max-tokens](https://loadwise.mintlify.app/rules/performance/llm-call-without-max-tokens.md): An OpenAI chat or responses call sets no output token limit. - [loop-copy-accumulator](https://loadwise.mintlify.app/rules/performance/loop-copy-accumulator.md): A loop copies its growing result on every iteration. - [mongoose-hydrate-for-to-object](https://loadwise.mintlify.app/rules/performance/mongoose-hydrate-for-to-object.md): A Mongoose query hydrates full Documents only to convert them immediately via .toObject() or .toJSON(). - [mongoose-missing-lean](https://loadwise.mintlify.app/rules/performance/mongoose-missing-lean.md): A Mongoose read query is returned or serialized without .lean(), paying full Document hydration overhead. - [node-event-listener-leak](https://loadwise.mintlify.app/rules/performance/node-event-listener-leak.md): An event listener is registered inside a repeated or per-request context without matching cleanup. - [node-sync-compression-in-async](https://loadwise.mintlify.app/rules/performance/node-sync-compression-in-async.md): A synchronous zlib call blocks the event loop inside an async function. - [node-sync-crypto-in-async](https://loadwise.mintlify.app/rules/performance/node-sync-crypto-in-async.md): A synchronous crypto call blocks the event loop inside an async function. - [node-sync-fs-in-async](https://loadwise.mintlify.app/rules/performance/node-sync-fs-in-async.md): A synchronous fs call blocks the event loop inside an async function. - [node-sync-process-in-async](https://loadwise.mintlify.app/rules/performance/node-sync-process-in-async.md): A synchronous child_process call blocks the event loop inside an async function. - [notification-send-in-loop](https://loadwise.mintlify.app/rules/performance/notification-send-in-loop.md): A push, email or Firebase message is sent once per loop iteration instead of in one batch. - [orm-cartesian-include](https://loadwise.mintlify.app/rules/performance/orm-cartesian-include.md): One query joins two or more one-to-many relations, so the returned rows multiply. - [orm-deep-offset](https://loadwise.mintlify.app/rules/performance/orm-deep-offset.md): A list query pages with a large or unbounded offset, so the database reads and discards every skipped row. - [password-hash-pure-js](https://loadwise.mintlify.app/rules/performance/password-hash-pure-js.md): bcryptjs hashes passwords in pure JavaScript on the main thread. - [password-hash-sync-in-async](https://loadwise.mintlify.app/rules/performance/password-hash-sync-in-async.md): A synchronous bcrypt call blocks the event loop inside an async function. - [pg-count-materialization](https://loadwise.mintlify.app/rules/performance/pg-count-materialization.md): A pg query loads rows only to count them. - [pg-filter-materialization](https://loadwise.mintlify.app/rules/performance/pg-filter-materialization.md): A pg query loads an unbounded result that JavaScript then filters by equality. - [pg-first-materialization](https://loadwise.mintlify.app/rules/performance/pg-first-materialization.md): A pg query loads an unbounded result to read only its first row. - [pg-query-in-loop](https://loadwise.mintlify.app/rules/performance/pg-query-in-loop.md): A pg query runs once per loop iteration. - [pg-top-k-materialization](https://loadwise.mintlify.app/rules/performance/pg-top-k-materialization.md): A pg query loads an unbounded result that JavaScript sorts to keep the top rows. - [pg-unreleased-checkout](https://loadwise.mintlify.app/rules/performance/pg-unreleased-checkout.md): A chained pool checkout loses the client, so it is never released. - [pool-created-per-request-or-item](https://loadwise.mintlify.app/rules/performance/pool-created-per-request-or-item.md): A database, Redis, S3, OpenAI, Anthropic or Stripe client or pool is created on a per-request or per-item path. - [prisma-count-materialization](https://loadwise.mintlify.app/rules/performance/prisma-count-materialization.md): A Prisma query loads rows only to count them. - [prisma-filter-materialization](https://loadwise.mintlify.app/rules/performance/prisma-filter-materialization.md): A Prisma query loads an unbounded result that JavaScript then filters by equality. - [prisma-first-materialization](https://loadwise.mintlify.app/rules/performance/prisma-first-materialization.md): A Prisma query loads an unbounded result to read only its first row. - [prisma-query-in-loop](https://loadwise.mintlify.app/rules/performance/prisma-query-in-loop.md): A Prisma query runs once per loop iteration. - [prisma-top-k-materialization](https://loadwise.mintlify.app/rules/performance/prisma-top-k-materialization.md): A Prisma query loads an unbounded result that JavaScript sorts to keep the top rows. - [queue-add-in-loop](https://loadwise.mintlify.app/rules/performance/queue-add-in-loop.md): A job queue add runs once per item instead of one addBulk. - [react-component-defined-in-component](https://loadwise.mintlify.app/rules/performance/react-component-defined-in-component.md): A component is declared inside another component and rendered as an element, so it remounts on every render and loses its state and DOM. - [react-context-value-recreated](https://loadwise.mintlify.app/rules/performance/react-context-value-recreated.md): An inline object or array literal in Context.Provider value creates a new reference on every render. - [react-fetch-in-effect-no-abort](https://loadwise.mintlify.app/rules/performance/react-fetch-in-effect-no-abort.md): A fetch in an effect has no AbortController or cleanup, so dependency changes can race and apply stale results. - [react-index-as-key](https://loadwise.mintlify.app/rules/performance/react-index-as-key.md): A list item uses the map index as its React key, which breaks reconciliation when items are inserted or reordered. - [react-inline-object-in-jsx-prop](https://loadwise.mintlify.app/rules/performance/react-inline-object-in-jsx-prop.md): An inline object literal is passed to a memo() component, creating a new reference each render and defeating the memo. - [react-missing-cleanup](https://loadwise.mintlify.app/rules/performance/react-missing-cleanup.md): An effect starts a global listener, interval, socket or endless subscription and returns no cleanup, so it leaks on every remount. - [rebuild-lookup-in-loop](https://loadwise.mintlify.app/rules/performance/rebuild-lookup-in-loop.md): A Set or Map is rebuilt from the same data on every loop iteration. - [redis-command-in-loop](https://loadwise.mintlify.app/rules/performance/redis-command-in-loop.md): A per-key Redis command runs once per loop iteration. - [redis-keys-command](https://loadwise.mintlify.app/rules/performance/redis-keys-command.md): A Redis KEYS call blocks the server while it scans the keyspace. - [reduce-copy-accumulator](https://loadwise.mintlify.app/rules/performance/reduce-copy-accumulator.md): A reduce callback copies its growing accumulator on every step. - [sequential-http-in-loop](https://loadwise.mintlify.app/rules/performance/sequential-http-in-loop.md): Independent HTTP requests are awaited one at a time inside a loop. - [serial-awaits-in-literal](https://loadwise.mintlify.app/rules/performance/serial-awaits-in-literal.md): An array or object literal awaits two or more independent values one after another. - [service-query-in-loop](https://loadwise.mintlify.app/rules/performance/service-query-in-loop.md): A loop calls a project function that runs several database operations per item. - [session-memory-store](https://loadwise.mintlify.app/rules/performance/session-memory-store.md): An express-session middleware has no store, so sessions live in process memory. - [sql-select-star-in-query](https://loadwise.mintlify.app/rules/performance/sql-select-star-in-query.md): A raw SQL query selects every column with SELECT * instead of the columns it needs. - [unbounded-list-query](https://loadwise.mintlify.app/rules/performance/unbounded-list-query.md): A request handler returns query results without an apparent row limit. - [unbounded-module-cache](https://loadwise.mintlify.app/rules/performance/unbounded-module-cache.md): A long-lived cache accepts dynamic keys without an apparent bound or eviction. - [vue-v-for-missing-key](https://loadwise.mintlify.app/rules/performance/vue-v-for-missing-key.md): A list rendered with h() or v-for has no key, so Vue cannot reliably reuse matching nodes. - [vue-watch-missing-cleanup](https://loadwise.mintlify.app/rules/performance/vue-watch-missing-cleanup.md): onMounted registers a global listener, timer or observer with no unmount cleanup. - [whole-payload-in-memory](https://loadwise.mintlify.app/rules/performance/whole-payload-in-memory.md): An operation loads an entire file, stream, or response into memory. - [drizzle-query-in-loop](https://loadwise.mintlify.app/rules/performance/drizzle-query-in-loop.md): A Drizzle statement executes once per loop iteration. - [guard-query-per-request](https://loadwise.mintlify.app/rules/performance/guard-query-per-request.md): A guard or per-request hook runs a database query before every handler. - [orm-count-materialization](https://loadwise.mintlify.app/rules/performance/orm-count-materialization.md): A TypeORM, Sequelize, Mongoose, Knex or Kysely query loads rows only to count them. - [orm-query-in-loop](https://loadwise.mintlify.app/rules/performance/orm-query-in-loop.md): A TypeORM, Sequelize, Mongoose, Knex or Kysely operation runs once per loop iteration. - [prisma-distinct-in-memory](https://loadwise.mintlify.app/rules/performance/prisma-distinct-in-memory.md): Prisma findMany with distinct reads every matching row and de-duplicates in memory. - [prisma-relation-count-in-list](https://loadwise.mintlify.app/rules/performance/prisma-relation-count-in-list.md): A paged Prisma findMany selects a relation _count computed over the whole related table. - [typeorm-existence-materialization](https://loadwise.mintlify.app/rules/performance/typeorm-existence-materialization.md): A TypeORM entity is loaded only to check whether it exists. - [typeorm-load-then-save](https://loadwise.mintlify.app/rules/performance/typeorm-load-then-save.md): A TypeORM entity is loaded only to change a few fields and save it back. - [typeorm-transaction-in-loop](https://loadwise.mintlify.app/rules/performance/typeorm-transaction-in-loop.md): A loop calls a helper that starts one TypeORM transaction per item. - [typeorm-wide-projection](https://loadwise.mintlify.app/rules/performance/typeorm-wide-projection.md): A TypeORM DTO projection loads wide columns it never uses. - [await-before-early-exit](https://loadwise.mintlify.app/rules/performance/await-before-early-exit.md): An awaited read runs before a guard that returns or throws without using its result. - [count-then-page-serial](https://loadwise.mintlify.app/rules/performance/count-then-page-serial.md): A count and a page query with the same filter run one after the other. - [drizzle-last-insert-id](https://loadwise.mintlify.app/rules/performance/drizzle-last-insert-id.md): A MySQL insert is followed by an extra query for its generated ID. - [known-reads-awaited-serially](https://loadwise.mintlify.app/rules/performance/known-reads-awaited-serially.md): Two independent reads from a configured parallelReads group are awaited one after the other. - [next-server-fetch-waterfall](https://loadwise.mintlify.app/rules/performance/next-server-fetch-waterfall.md): A Next.js Server Component page awaits independent GET requests in sequence. - [numeric-sort-for-extreme](https://loadwise.mintlify.app/rules/performance/numeric-sort-for-extreme.md): A numeric sort is used only to read the smallest or largest value. - [prisma-count-for-existence](https://loadwise.mintlify.app/rules/performance/prisma-count-for-existence.md): A Prisma query counts all matches only to check whether any row exists. - [promise-combinator-serial-await](https://loadwise.mintlify.app/rules/performance/promise-combinator-serial-await.md): Promise.all receives calls that were already awaited one by one. - [repeated-workbook-decode](https://loadwise.mintlify.app/rules/performance/repeated-workbook-decode.md): A workflow decodes the same input with ExcelJS more than once. - [typeorm-unused-count](https://loadwise.mintlify.app/rules/performance/typeorm-unused-count.md): A TypeORM count-and-list query discards its total in immediate tuple destructuring. - [index-missing-filter](https://loadwise.mintlify.app/rules/performance/index-missing-filter.md): A query filters on a column that no index leads with. - [index-missing-foreign-key](https://loadwise.mintlify.app/rules/performance/index-missing-foreign-key.md): A foreign key column in the schema has no index. - [index-missing-order](https://loadwise.mintlify.app/rules/performance/index-missing-order.md): A query orders by columns that no index serves in that order. - [index-redundant-prefix](https://loadwise.mintlify.app/rules/performance/index-redundant-prefix.md): An index repeats the leading columns of a longer index on the same table, adding write cost for no read benefit. - [index-unusable-expression](https://loadwise.mintlify.app/rules/performance/index-unusable-expression.md): A function or expression on an indexed column keeps the index from being used. - [index-unusable-pattern](https://loadwise.mintlify.app/rules/performance/index-unusable-pattern.md): A predicate such as a leading-wildcard LIKE cannot use an ordinary index. - [csharp-ef-count-materialized](https://loadwise.mintlify.app/rules/performance/csharp-ef-count-materialized.md): An EF Core DbSet is materialized solely to count its rows. - [csharp-ef-query-in-loop](https://loadwise.mintlify.app/rules/performance/csharp-ef-query-in-loop.md): An EF Core DbSet query executes for each loop key. - [csharp-fixed-regex-in-loop](https://loadwise.mintlify.app/rules/performance/csharp-fixed-regex-in-loop.md): A C# Regex with a fixed pattern is constructed inside a loop. - [csharp-string-concat-in-loop](https://loadwise.mintlify.app/rules/performance/csharp-string-concat-in-loop.md): String concatenation in a C# loop allocates repeatedly; use StringBuilder. - [go-fixed-regexp-in-loop](https://loadwise.mintlify.app/rules/performance/go-fixed-regexp-in-loop.md): A Go regexp with a fixed pattern is compiled inside a loop. - [go-sql-query-in-loop](https://loadwise.mintlify.app/rules/performance/go-sql-query-in-loop.md): A Go database query executes inside a loop instead of batching. - [go-string-concat-in-loop](https://loadwise.mintlify.app/rules/performance/go-string-concat-in-loop.md): String concatenation in a Go loop allocates repeatedly; use strings.Builder. - [java-fixed-regex-in-loop](https://loadwise.mintlify.app/rules/performance/java-fixed-regex-in-loop.md): A Java Pattern with a fixed pattern is compiled inside a loop. - [java-jdbc-query-in-loop](https://loadwise.mintlify.app/rules/performance/java-jdbc-query-in-loop.md): A JDBC query executes inside a Java loop instead of batching. - [java-string-concat-in-loop](https://loadwise.mintlify.app/rules/performance/java-string-concat-in-loop.md): String concatenation in a Java loop allocates repeatedly; use StringBuilder. - [php-eloquent-query-in-loop](https://loadwise.mintlify.app/rules/performance/php-eloquent-query-in-loop.md): An Eloquent key lookup runs for each PHP foreach item. - [python-blocking-sleep-in-async](https://loadwise.mintlify.app/rules/performance/python-blocking-sleep-in-async.md): A blocking time.sleep call runs inside a Python async def function. - [python-copy-growing-list](https://loadwise.mintlify.app/rules/performance/python-copy-growing-list.md): A Python loop rebuilds a growing list with items = items + [value]. - [python-fixed-regex-in-loop](https://loadwise.mintlify.app/rules/performance/python-fixed-regex-in-loop.md): A Python loop repeatedly looks up a fixed pattern in the re.compile cache. - [python-n-plus-one-orm-loop](https://loadwise.mintlify.app/rules/performance/python-n-plus-one-orm-loop.md): An ORM query executes inside a Python loop instead of using eager loading or batching. - [python-sync-requests-in-async](https://loadwise.mintlify.app/rules/performance/python-sync-requests-in-async.md): A blocking requests HTTP call runs inside a Python async def function. - [python-unbounded-comprehension](https://loadwise.mintlify.app/rules/performance/python-unbounded-comprehension.md): A Python list comprehension materializes an unbounded collection in memory. - [ruby-active-record-query-in-loop](https://loadwise.mintlify.app/rules/performance/ruby-active-record-query-in-loop.md): A Ruby loop performs one Active Record lookup per item. - [rust-clone-in-loop](https://loadwise.mintlify.app/rules/performance/rust-clone-in-loop.md): Cloning values inside a Rust loop adds avoidable heap allocations. - [rust-fixed-regex-in-loop](https://loadwise.mintlify.app/rules/performance/rust-fixed-regex-in-loop.md): A Rust Regex with a fixed pattern is compiled inside a loop. - [rust-format-in-loop](https://loadwise.mintlify.app/rules/performance/rust-format-in-loop.md): Calling format! inside a Rust loop allocates a new String on every iteration. - [duplicate-key-read](https://loadwise.mintlify.app/rules/performance/duplicate-key-read.md): A trace repeats the same key or row read under one parent span. - [redis-keys-scan](https://loadwise.mintlify.app/rules/performance/redis-keys-scan.md): A trace shows a Redis KEYS command scanning the keyspace. - [redis-repeated-read](https://loadwise.mintlify.app/rules/performance/redis-repeated-read.md): A trace shows repeated sibling Redis GET or HGET calls. - [repeated-db-span](https://loadwise.mintlify.app/rules/performance/repeated-db-span.md): A trace shows many similar sibling database calls under one parent. - [mongo-collection-scan](https://loadwise.mintlify.app/rules/performance/mongo-collection-scan.md): A MongoDB plan scans many documents for each one it returns. - [mongo-deep-skip](https://loadwise.mintlify.app/rules/performance/mongo-deep-skip.md): A MongoDB query skips past many documents to return a page. - [mongo-disk-sort](https://loadwise.mintlify.app/rules/performance/mongo-disk-sort.md): A MongoDB sort spilled to disk. - [pg-deep-offset](https://loadwise.mintlify.app/rules/performance/pg-deep-offset.md): A PostgreSQL plan walks past many rows with OFFSET to return a page. - [pg-disk-sort](https://loadwise.mintlify.app/rules/performance/pg-disk-sort.md): A PostgreSQL sort spilled to disk. - [pg-sequential-scan](https://loadwise.mintlify.app/rules/performance/pg-sequential-scan.md): A PostgreSQL plan scans many rows for each one it returns. - [db-duplicate-index](https://loadwise.mintlify.app/rules/performance/db-duplicate-index.md): A database index is covered by another index on the same table. - [db-missing-index](https://loadwise.mintlify.app/rules/performance/db-missing-index.md): A query plan scans a table that a suggested index would let it seek. - [db-seq-scan-heavy-table](https://loadwise.mintlify.app/rules/performance/db-seq-scan-heavy-table.md): A large table is read by many sequential scans on the live database. - [db-slow-query-plan](https://loadwise.mintlify.app/rules/performance/db-slow-query-plan.md): A plan uses full scans or large MySQL filesorts or temporary tables. - [db-sqlite-large-scan](https://loadwise.mintlify.app/rules/performance/db-sqlite-large-scan.md): A filtered SQLite query plans an unindexed scan of a large table. - [db-unindexed-foreign-key](https://loadwise.mintlify.app/rules/performance/db-unindexed-foreign-key.md): A foreign key on the live database has no index that leads with its columns. - [db-unused-index](https://loadwise.mintlify.app/rules/performance/db-unused-index.md): A database index has not been scanned since statistics were last reset. - [mongo-collection-scan-observed](https://loadwise.mintlify.app/rules/performance/mongo-collection-scan-observed.md): Profiled MongoDB operations scanned a whole collection. - [assignment-in-condition](https://loadwise.mintlify.app/rules/reliability/assignment-in-condition.md): A condition assigns with = where a comparison was probably meant. - [async-array-predicate](https://loadwise.mintlify.app/rules/reliability/async-array-predicate.md): A native synchronous array predicate definitely returns a promise. - [async-callback-unhandled-rejection](https://loadwise.mintlify.app/rules/reliability/async-callback-unhandled-rejection.md): An async callback given to an event emitter, timer or scheduler has no error handling, so a rejection is unhandled. - [async-promise-executor](https://loadwise.mintlify.app/rules/reliability/async-promise-executor.md): The built-in Promise constructor is given an async executor. - [async-route-unhandled-rejection](https://loadwise.mintlify.app/rules/reliability/async-route-unhandled-rejection.md): An Express 4 async route handler has no error handling, so a rejection never reaches the error middleware. - [browser-not-closed](https://loadwise.mintlify.app/rules/reliability/browser-not-closed.md): A Playwright or Puppeteer browser is not closed in a finally block, so an error leaves the process running. - [check-then-update-race](https://loadwise.mintlify.app/rules/reliability/check-then-update-race.md): A Mongoose or Sequelize document's numeric field is read, changed in JavaScript and saved without a transaction, losing concurrent updates. - [child-process-without-error-listener](https://loadwise.mintlify.app/rules/reliability/child-process-without-error-listener.md): A spawned child process has no 'error' listener, so a failed spawn crashes the parent process. - [crlf-unsafe-line-split](https://loadwise.mintlify.app/rules/reliability/crlf-unsafe-line-split.md): Splitting file text on a bare newline leaves carriage returns on CRLF lines and can change exact comparisons. - [csharp-async-void](https://loadwise.mintlify.app/rules/reliability/csharp-async-void.md): An async void method cannot be awaited and can crash the process on unhandled exceptions. - [csharp-disposable-without-using](https://loadwise.mintlify.app/rules/reliability/csharp-disposable-without-using.md): A C# stream, connection or other IDisposable is created without using, so an exception leaks it. - [csharp-sync-task-wait-in-async](https://loadwise.mintlify.app/rules/reliability/csharp-sync-task-wait-in-async.md): A C# async method uses Result or Wait() on a recognized Task parameter. - [db-pool-client-not-released](https://loadwise.mintlify.app/rules/reliability/db-pool-client-not-released.md): A locally checked-out database connection can leave its scope without being released. - [discarded-error-result](https://loadwise.mintlify.app/rules/reliability/discarded-error-result.md): A call discards a typed Either or Result that can carry a failure as a value. - [discarded-file-write-count](https://loadwise.mintlify.app/rules/reliability/discarded-file-write-count.md): A chunk-writing loop discards the byte count returned by a low-level Node write. - [drizzle-unfiltered-write](https://loadwise.mintlify.app/rules/reliability/drizzle-unfiltered-write.md): A Drizzle update or delete executes without an effective where clause. - [drizzle-write-preflight](https://loadwise.mintlify.app/rules/reliability/drizzle-write-preflight.md): A separate existence check before a Drizzle write can race with another request. - [error-logged-without-stack](https://loadwise.mintlify.app/rules/reliability/error-logged-without-stack.md): A catch block logs only error.message and carries on, so the stack trace is lost. - [error-rethrown-without-cause](https://loadwise.mintlify.app/rules/reliability/error-rethrown-without-cause.md): A catch block throws a new error without the caught one, so the original message and stack are lost. - [file-handle-not-closed](https://loadwise.mintlify.app/rules/reliability/file-handle-not-closed.md): A FileHandle from fs/promises open() is not closed on every path, leaking a file descriptor. - [find-then-create-race](https://loadwise.mintlify.app/rules/reliability/find-then-create-race.md): A lookup by key is followed by an insert with that key, with no unique constraint to stop duplicates. - [floating-promise](https://loadwise.mintlify.app/rules/reliability/floating-promise.md): A promise-returning call is neither awaited, returned nor handled, so its failure goes unseen. - [go-defer-before-error-check](https://loadwise.mintlify.app/rules/reliability/go-defer-before-error-check.md): A Go defer closes a resource before its error is checked, so a failed open dereferences nil. - [go-error-discarded](https://loadwise.mintlify.app/rules/reliability/go-error-discarded.md): A Go error result is assigned to the blank identifier and never checked. - [go-http-call-without-deadline](https://loadwise.mintlify.app/rules/reliability/go-http-call-without-deadline.md): A Go HTTP handler calls net/http without a local request timeout or deadline. - [go-http-response-body-not-closed](https://loadwise.mintlify.app/rules/reliability/go-http-response-body-not-closed.md): A Go function reads the contents of a locally owned HTTP response without closing its body. - [go-sql-rows-leaked](https://loadwise.mintlify.app/rules/reliability/go-sql-rows-leaked.md): A Go database/sql Rows iterator exits successfully before exhaustion without closing. - [go-sql-rows-unchecked-err](https://loadwise.mintlify.app/rules/reliability/go-sql-rows-unchecked-err.md): A Go database/sql Rows loop returns success without checking an iteration error. - [http-call-without-timeout](https://loadwise.mintlify.app/rules/reliability/http-call-without-timeout.md): A fetch or axios call has no timeout or abort signal. - [interval-not-cleared](https://loadwise.mintlify.app/rules/reliability/interval-not-cleared.md): A setInterval handle is discarded or never cleared, so the timer outlives its owner. - [invalid-typeof-comparison](https://loadwise.mintlify.app/rules/reliability/invalid-typeof-comparison.md): A typeof result is compared to a string typeof never returns, so the check never matches. - [java-resource-without-try](https://loadwise.mintlify.app/rules/reliability/java-resource-without-try.md): A Java stream, reader or connection is opened outside try-with-resources, so an exception leaks it. - [java-shared-date-format](https://loadwise.mintlify.app/rules/reliability/java-shared-date-format.md): A shared Java SimpleDateFormat is used without visible synchronization. - [json-parse-unguarded](https://loadwise.mintlify.app/rules/reliability/json-parse-unguarded.md): JSON.parse runs on outside input with no try/catch, so malformed input throws where it is not handled. - [kotlin-run-blocking-in-suspend](https://loadwise.mintlify.app/rules/reliability/kotlin-run-blocking-in-suspend.md): A direct coroutine runBlocking call blocks the thread of a suspend function. - [loop-index-past-length](https://loadwise.mintlify.app/rules/reliability/loop-index-past-length.md): A loop runs its index up to and including length, so the last pass reads past the end. - [lossy-same-file-text-rewrite](https://loadwise.mintlify.app/rules/reliability/lossy-same-file-text-rewrite.md): A caller-selected file is decoded permissively as UTF-8 and overwritten after a text edit. - [mongoose-aggregate-uncast-id](https://loadwise.mintlify.app/rules/reliability/mongoose-aggregate-uncast-id.md): A Mongoose aggregate $match compares _id to an uncast string instead of an ObjectId. - [nan-comparison](https://loadwise.mintlify.app/rules/reliability/nan-comparison.md): A value is compared to NaN with an equality operator, which is never true. - [next-server-env-in-client](https://loadwise.mintlify.app/rules/reliability/next-server-env-in-client.md): A 'use client' file reads a process.env variable without the NEXT_PUBLIC_ prefix, so it is unavailable in the browser by default. - [numeric-array-default-sort](https://loadwise.mintlify.app/rules/reliability/numeric-array-default-sort.md): An array of numbers is sorted without a comparator. - [parse-failure-resets-file](https://loadwise.mintlify.app/rules/reliability/parse-failure-resets-file.md): A write after a read or parse failure can replace unreadable contents at the same path. - [payment-missing-idempotency-key](https://loadwise.mintlify.app/rules/reliability/payment-missing-idempotency-key.md): A Stripe call that moves money has no idempotency key, so a retry can charge or pay out twice. - [pg-advisory-lock-session](https://loadwise.mintlify.app/rules/reliability/pg-advisory-lock-session.md): A PostgreSQL session can return to the pool while it holds an advisory lock. - [pg-listen-session](https://loadwise.mintlify.app/rules/reliability/pg-listen-session.md): A PostgreSQL listener connection can return to the pool while it is still subscribed. - [pg-transaction-on-pool](https://loadwise.mintlify.app/rules/reliability/pg-transaction-on-pool.md): A transaction statement is sent to a pool, so its statements can run on different connections. - [pool-without-connection-timeout](https://loadwise.mintlify.app/rules/reliability/pool-without-connection-timeout.md): A pg Pool or Client sets no connectionTimeoutMillis, so its default of 0 waits for a connection forever. - [prisma-dependent-writes](https://loadwise.mintlify.app/rules/reliability/prisma-dependent-writes.md): Adjacent Prisma creates pass a value from the first record into the next write. - [prisma-read-modify-write](https://loadwise.mintlify.app/rules/reliability/prisma-read-modify-write.md): A Prisma read feeds a numeric update of the same row, losing concurrent updates. - [prisma-transaction-client-escape](https://loadwise.mintlify.app/rules/reliability/prisma-transaction-client-escape.md): A Prisma call inside an interactive transaction uses the outer client instead of the transaction client. - [promise-return-escapes-catch](https://loadwise.mintlify.app/rules/reliability/promise-return-escapes-catch.md): Returning a promise directly from a protected try block can bypass its catch on rejection. - [python-bare-except](https://loadwise.mintlify.app/rules/reliability/python-bare-except.md): A bare except also catches SystemExit and KeyboardInterrupt, hiding shutdowns and bugs. - [python-file-not-closed](https://loadwise.mintlify.app/rules/reliability/python-file-not-closed.md): A Python function returns the contents of a locally opened file without closing its handle. - [python-mutated-mutable-default](https://loadwise.mintlify.app/rules/reliability/python-mutated-mutable-default.md): A function directly mutates an object shared as a default argument between calls. - [python-requests-without-timeout](https://loadwise.mintlify.app/rules/reliability/python-requests-without-timeout.md): A direct Python requests call has no visible timeout or streaming policy. - [python-swallowed-exception](https://loadwise.mintlify.app/rules/reliability/python-swallowed-exception.md): A Python except block only passes, so the failure is dropped silently. - [query-runner-not-released](https://loadwise.mintlify.app/rules/reliability/query-runner-not-released.md): A TypeORM QueryRunner is not released in a finally block, so an error leaks its pooled connection. - [react-async-effect-callback](https://loadwise.mintlify.app/rules/reliability/react-async-effect-callback.md): An async function is passed to useEffect, so its promise is treated as the cleanup function and its errors go unhandled. - [react-effect-sets-state-every-render](https://loadwise.mintlify.app/rules/reliability/react-effect-sets-state-every-render.md): An effect with no dependency array sets state to a new value on every run, so the component re-renders forever. - [react-list-missing-key](https://loadwise.mintlify.app/rules/reliability/react-list-missing-key.md): An element or fragment returned from .map() has no key prop, so React cannot track items when the list changes. - [react-state-mutated-in-place](https://loadwise.mintlify.app/rules/reliability/react-state-mutated-in-place.md): A useState value is mutated in place and passed to its own setter, so React sees the same reference and skips the re-render. - [redis-incr-then-expire](https://loadwise.mintlify.app/rules/reliability/redis-incr-then-expire.md): A Redis counter increment and its expire on the same key are two round trips and not atomic. - [request-number-unvalidated](https://loadwise.mintlify.app/rules/reliability/request-number-unvalidated.md): A number parsed from request input reaches a query or calculation with no NaN or range check. - [retry-without-backoff](https://loadwise.mintlify.app/rules/reliability/retry-without-backoff.md): A retry loop calls the network again with no delay between attempts. - [return-in-finally](https://loadwise.mintlify.app/rules/reliability/return-in-finally.md): Returning from finally can replace a pending return value or suppress a thrown error. - [return-newline](https://loadwise.mintlify.app/rules/reliability/return-newline.md): A line break after return ends the statement before the apparent return value. - [rust-blocking-std-in-async](https://loadwise.mintlify.app/rules/reliability/rust-blocking-std-in-async.md): An async Rust function directly executes a synchronous standard-library call. - [rust-mutex-guard-across-await](https://loadwise.mintlify.app/rules/reliability/rust-mutex-guard-across-await.md): A standard Rust MutexGuard remains live across an await. - [rust-unwrap-in-production](https://loadwise.mintlify.app/rules/reliability/rust-unwrap-in-production.md): Rust code outside tests calls unwrap(), turning an Err or None into a panic. - [same-file-stream-truncation](https://loadwise.mintlify.app/rules/reliability/same-file-stream-truncation.md): Connected Node read and write streams use the same file with truncating flags. - [sql-insert-truncated-at-semicolon](https://loadwise.mintlify.app/rules/reliability/sql-insert-truncated-at-semicolon.md): A SQL dump parser ends INSERT values at a semicolon inside quoted text. - [stream-pipe-unhandled-error](https://loadwise.mintlify.app/rules/reliability/stream-pipe-unhandled-error.md): A stream is piped with .pipe() and no error handling, so a stream error can crash the process or leak the file. - [swallowed-error](https://loadwise.mintlify.app/rules/reliability/swallowed-error.md): A catch block drops the error and the code after the try carries on as if it succeeded. - [switch-not-exhaustive](https://loadwise.mintlify.app/rules/reliability/switch-not-exhaustive.md): A switch over a union or enum has no default and misses members, so the missing value leaves the result undefined. - [test-cleanup-after-await](https://loadwise.mintlify.app/rules/reliability/test-cleanup-after-await.md): A test waits before cleaning up a local resource, so a rejection can leave it running. - [throw-non-error](https://loadwise.mintlify.app/rules/reliability/throw-non-error.md): A string, number or object literal is thrown instead of an Error, so there is no stack trace. - [typeorm-transaction-client-escape](https://loadwise.mintlify.app/rules/reliability/typeorm-transaction-client-escape.md): A write inside a TypeORM transaction goes through a repository not bound to it. - [unbounded-promise-all](https://loadwise.mintlify.app/rules/reliability/unbounded-promise-all.md): Promise.all runs over an unbounded collection without a concurrency limit, risking memory spikes or downstream saturation. - [uncaught-exception-continues](https://loadwise.mintlify.app/rules/reliability/uncaught-exception-continues.md): An uncaughtException handler neither exits nor rethrows, so the process keeps running in an undefined state. - [unchecked-json-cast](https://loadwise.mintlify.app/rules/reliability/unchecked-json-cast.md): Parsed JSON, a response body or a request body is cast to a type without a schema check or type guard. - [unguarded-boundary-access](https://loadwise.mintlify.app/rules/reliability/unguarded-boundary-access.md): A nested property is read from outside input or a lookup that can be missing, so absent data throws a TypeError. - [unreachable-code](https://loadwise.mintlify.app/rules/reliability/unreachable-code.md): Statements follow a return, throw, break or continue in the same block and never run. - [upload-without-size-limit](https://loadwise.mintlify.app/rules/reliability/upload-without-size-limit.md): A multer or Nest upload interceptor has no file size limit. - [webhook-missing-idempotency-check](https://loadwise.mintlify.app/rules/reliability/webhook-missing-idempotency-check.md): A webhook route inserts rows without visible atomic deduplication by event ID. - [migration-breaking-drop](https://loadwise.mintlify.app/rules/reliability/migration-breaking-drop.md): A migration drops a column or table that running code may still use. - [migration-breaking-rename](https://loadwise.mintlify.app/rules/reliability/migration-breaking-rename.md): A migration renames a column or table that running code may still use. - [migration-column-type-rewrite](https://loadwise.mintlify.app/rules/reliability/migration-column-type-rewrite.md): A migration changes a column type in a way that rewrites the table. - [migration-concurrent-in-transaction](https://loadwise.mintlify.app/rules/reliability/migration-concurrent-in-transaction.md): A CONCURRENTLY index statement runs inside a transaction, where PostgreSQL rejects it. - [migration-constraint-not-valid](https://loadwise.mintlify.app/rules/reliability/migration-constraint-not-valid.md): A constraint is added and validated in one step instead of NOT VALID first. - [migration-constraint-without-index](https://loadwise.mintlify.app/rules/reliability/migration-constraint-without-index.md): A unique or primary key constraint builds its index while blocking writes. - [migration-index-not-concurrent](https://loadwise.mintlify.app/rules/reliability/migration-index-not-concurrent.md): A PostgreSQL index is built without CONCURRENTLY, blocking writes to the table. - [migration-missing-lock-timeout](https://loadwise.mintlify.app/rules/reliability/migration-missing-lock-timeout.md): A migration statement takes a lock with no lock_timeout set. - [migration-mysql-lock-unspecified](https://loadwise.mintlify.app/rules/reliability/migration-mysql-lock-unspecified.md): A MySQL ALTER does not state its LOCK level. - [migration-mysql-table-copy](https://loadwise.mintlify.app/rules/reliability/migration-mysql-table-copy.md): A MySQL ALTER copies the whole table. - [migration-not-null-without-default](https://loadwise.mintlify.app/rules/reliability/migration-not-null-without-default.md): A NOT NULL column is added without a default, which fails once rows exist. - [migration-set-not-null-scan](https://loadwise.mintlify.app/rules/reliability/migration-set-not-null-scan.md): SET NOT NULL scans the whole table while holding a lock. - [migration-sqlserver-offline-index](https://loadwise.mintlify.app/rules/reliability/migration-sqlserver-offline-index.md): A SQL Server rowstore index may be built offline on an existing table. - [migration-table-access-exclusive-lock](https://loadwise.mintlify.app/rules/reliability/migration-table-access-exclusive-lock.md): LOCK TABLE takes an ACCESS EXCLUSIVE lock on an existing PostgreSQL table. - [migration-table-rewrite-command](https://loadwise.mintlify.app/rules/reliability/migration-table-rewrite-command.md): A migration runs VACUUM FULL, CLUSTER or REINDEX, which rewrites or locks the table. - [migration-unparsed](https://loadwise.mintlify.app/rules/reliability/migration-unparsed.md): A migration statement could not be parsed and needs a manual review. - [migration-volatile-default](https://loadwise.mintlify.app/rules/reliability/migration-volatile-default.md): A column is added with a volatile default, which rewrites the table. - [api-enum-value-removed](https://loadwise.mintlify.app/rules/reliability/api-enum-value-removed.md): An enum value or string-literal option that clients could send was removed. - [api-removed-field](https://loadwise.mintlify.app/rules/reliability/api-removed-field.md): A response field, GraphQL type, field, argument or union member, or returned DTO property was removed. - [api-removed-operation](https://loadwise.mintlify.app/rules/reliability/api-removed-operation.md): An OpenAPI operation or a GraphQL Query, Mutation or Subscription field was removed. - [api-required-input](https://loadwise.mintlify.app/rules/reliability/api-required-input.md): A request field, parameter or GraphQL argument is new and required, or became required. - [api-type-changed](https://loadwise.mintlify.app/rules/reliability/api-type-changed.md): A field or parameter changed type, or a GraphQL type changed nullability in a breaking direction. - [data-access-boundary](https://loadwise.mintlify.app/rules/maintainability/data-access-boundary.md): A file outside the approved paths imports a configured database driver or ORM. - [deep-control-flow](https://loadwise.mintlify.app/rules/maintainability/deep-control-flow.md): Control structures are nested four levels deep. - [dependency-cycle](https://loadwise.mintlify.app/rules/maintainability/dependency-cycle.md): An eager chain of internal imports leads back to the module it started from. - [deprecated-node-api](https://loadwise.mintlify.app/rules/maintainability/deprecated-node-api.md): A deprecated Node.js API is used: new Buffer(), url.parse() or fs.exists(). - [double-type-assertion](https://loadwise.mintlify.app/rules/maintainability/double-type-assertion.md): A value is cast through unknown or any to a second type, bypassing the type checker. - [duplicate-implementation](https://loadwise.mintlify.app/rules/maintainability/duplicate-implementation.md): Substantial functions share the same implementation. - [explicit-any](https://loadwise.mintlify.app/rules/maintainability/explicit-any.md): An explicit any type turns off type checking for a value. - [file-placement](https://loadwise.mintlify.app/rules/maintainability/file-placement.md): A file with a configured suffix sits outside its allowed folders. - [focused-test-committed](https://loadwise.mintlify.app/rules/maintainability/focused-test-committed.md): A committed .only, only: true, fit or fdescribe can make the test runner skip other tests. - [folder-boundary](https://loadwise.mintlify.app/rules/maintainability/folder-boundary.md): An import crosses a folder boundary the team declared. - [high-branch-complexity](https://loadwise.mintlify.app/rules/maintainability/high-branch-complexity.md): A function reaches a branch complexity score of 15. - [large-class](https://loadwise.mintlify.app/rules/maintainability/large-class.md): A class has more than 30 methods, accessors, constructors or function-valued fields. - [large-module](https://loadwise.mintlify.app/rules/maintainability/large-module.md): A file has more than 600 lines of code. - [long-parameter-list](https://loadwise.mintlify.app/rules/maintainability/long-parameter-list.md): A function takes more than 5 positional parameters. - [python-interactive-debugger](https://loadwise.mintlify.app/rules/maintainability/python-interactive-debugger.md): A Python call enters an interactive debugger in production source. - [query-mutates-state](https://loadwise.mintlify.app/rules/maintainability/query-mutates-state.md): A method marked @maintainabilityQuery writes through this. - [stray-console](https://loadwise.mintlify.app/rules/maintainability/stray-console.md): A console call in production code bypasses the logger, so its output has no level or structure. - [ts-suppression-without-reason](https://loadwise.mintlify.app/rules/maintainability/ts-suppression-without-reason.md): A @ts-ignore, @ts-expect-error or @ts-nocheck directive has no explanation. - [tsconfig-strict-disabled](https://loadwise.mintlify.app/rules/maintainability/tsconfig-strict-disabled.md): A tsconfig turns off strict type checking. - [unreferenced-file](https://loadwise.mintlify.app/rules/maintainability/unreferenced-file.md): A source file that nothing imports and that is not an entry point. - [unsafe-wide-type](https://loadwise.mintlify.app/rules/maintainability/unsafe-wide-type.md): A Function, Object or {} type accepts almost any value, so the compiler checks little. - [unused-export](https://loadwise.mintlify.app/rules/maintainability/unused-export.md): An export that no scanned file imports. - [unused-import](https://loadwise.mintlify.app/rules/maintainability/unused-import.md): An imported name is never used in the file. - [unused-local-function](https://loadwise.mintlify.app/rules/maintainability/unused-local-function.md): A private function declaration has no references. - [unused-local-variable](https://loadwise.mintlify.app/rules/maintainability/unused-local-variable.md): A local variable is assigned but never read. - [angular-bypass-security-trust](https://loadwise.mintlify.app/rules/security/angular-bypass-security-trust.md): DomSanitizer.bypassSecurityTrust* is called on a dynamic value, which turns off Angular's built-in sanitization. - [auth-route-without-rate-limit](https://loadwise.mintlify.app/rules/security/auth-route-without-rate-limit.md): A login, signup or password-reset route has no rate limiter. - [bcrypt-low-cost](https://loadwise.mintlify.app/rules/security/bcrypt-low-cost.md): A bcrypt password hash uses a work factor below the recommended minimum. - [client-env-secret-exposed](https://loadwise.mintlify.app/rules/security/client-env-secret-exposed.md): A secret-named env variable is read under a browser prefix (NEXT_PUBLIC_, VITE_, REACT_APP_...), so the build ships it to every visitor. - [code-injection](https://loadwise.mintlify.app/rules/security/code-injection.md): Request-controlled input becomes source code evaluated by the application. - [command-injection](https://loadwise.mintlify.app/rules/security/command-injection.md): Request-controlled input reaches a shell command string. - [committed-secret](https://loadwise.mintlify.app/rules/security/committed-secret.md): A tracked file contains a value that appears to be a credential. - [compose-hardcoded-secret](https://loadwise.mintlify.app/rules/security/compose-hardcoded-secret.md): A Docker Compose service supplies a secret as a literal environment value. - [cookie-missing-security-flags](https://loadwise.mintlify.app/rules/security/cookie-missing-security-flags.md): A sensitive cookie is set without the expected security attributes. - [cors-credentials-any-origin](https://loadwise.mintlify.app/rules/security/cors-credentials-any-origin.md): A credentialed CORS response allows arbitrary origins. - [cors-origin-regex-unanchored](https://loadwise.mintlify.app/rules/security/cors-origin-regex-unanchored.md): A CORS origin regex also accepts look-alike hosts. - [database-error-in-response](https://loadwise.mintlify.app/rules/security/database-error-in-response.md): An HTTP response includes a raw database error message. - [discarded-signature-verification-result](https://loadwise.mintlify.app/rules/security/discarded-signature-verification-result.md): A standalone call discards the result of Node.js synchronous signature verification. - [dockerfile-add-remote-url](https://loadwise.mintlify.app/rules/security/dockerfile-add-remote-url.md): A Dockerfile ADD instruction retrieves a resource from a remote URL. - [dockerfile-runs-as-root](https://loadwise.mintlify.app/rules/security/dockerfile-runs-as-root.md): The final image selects root or inherits an unverified base-image user. - [dockerfile-secret-in-build](https://loadwise.mintlify.app/rules/security/dockerfile-secret-in-build.md): A Dockerfile exposes a secret through a build argument or environment variable. - [dockerfile-unpinned-base-image](https://loadwise.mintlify.app/rules/security/dockerfile-unpinned-base-image.md): A Dockerfile uses a base image reference that can change between builds. - [dom-xss-sink](https://loadwise.mintlify.app/rules/security/dom-xss-sink.md): Untrusted or dynamic HTML reaches innerHTML, outerHTML, insertAdjacentHTML, document.write or createContextualFragment (DOM XSS). - [drizzle-scope-unverified](https://loadwise.mintlify.app/rules/security/drizzle-scope-unverified.md): A Drizzle operation lacks the row scope required by the declared policy. - [drizzle-sql-raw-dynamic](https://loadwise.mintlify.app/rules/security/drizzle-sql-raw-dynamic.md): A dynamic SQL fragment reaches Drizzle without parameter binding. - [error-stack-in-response](https://loadwise.mintlify.app/rules/security/error-stack-in-response.md): An HTTP response includes an internal error stack. - [escape-replace-incomplete](https://loadwise.mintlify.app/rules/security/escape-replace-incomplete.md): A hand-written string escape replaces only the first match, or escapes a delimiter without escaping backslashes first. - [express-cookie-auth-missing-csrf](https://loadwise.mintlify.app/rules/security/express-cookie-auth-missing-csrf.md): Cookie-based session or auth is paired with state-changing routes without CSRF protection or `sameSite: "strict"`. - [express-missing-helmet](https://loadwise.mintlify.app/rules/security/express-missing-helmet.md): The Express or NestJS server starts without helmet security headers middleware (contextual: a proxy may set them). - [frontend-storage-secret-token](https://loadwise.mintlify.app/rules/security/frontend-storage-secret-token.md): A token, JWT, password or API key is stored in localStorage or sessionStorage, readable by any script on the page. - [graphql-batching-unbounded](https://loadwise.mintlify.app/rules/security/graphql-batching-unbounded.md): GraphQL query batching is enabled without a batch size, query depth, or cost/complexity limit. - [graphql-introspection-enabled](https://loadwise.mintlify.app/rules/security/graphql-introspection-enabled.md): A GraphQL server explicitly enables schema introspection. - [graphql-query-depth-unbounded](https://loadwise.mintlify.app/rules/security/graphql-query-depth-unbounded.md): A GraphQL server accepts queries of any depth. - [hardcoded-secret](https://loadwise.mintlify.app/rules/security/hardcoded-secret.md): The source supplies a literal credential or cryptographic secret. - [insecure-cipher](https://loadwise.mintlify.app/rules/security/insecure-cipher.md): A cryptographic operation selects an insecure cipher or mode. - [insecure-deserialization](https://loadwise.mintlify.app/rules/security/insecure-deserialization.md): Request data is deserialized by a library that can rebuild and run functions from it. - [insecure-random-for-secret](https://loadwise.mintlify.app/rules/security/insecure-random-for-secret.md): A sensitive token or secret uses a non-cryptographic random source. - [js-yaml-unsafe-schema](https://loadwise.mintlify.app/rules/security/js-yaml-unsafe-schema.md): A resolved js-yaml loader enables JavaScript-specific YAML constructors. - [jsx-javascript-url](https://loadwise.mintlify.app/rules/security/jsx-javascript-url.md): In React 18 and older or Preact, a URL search parameter or location hash starts a JSX href, action or iframe src (javascript: XSS). - [jwt-decode-for-auth](https://loadwise.mintlify.app/rules/security/jwt-decode-for-auth.md): Authentication uses decoded JWT claims without verifying the token signature. - [jwt-none-algorithm](https://loadwise.mintlify.app/rules/security/jwt-none-algorithm.md): JWT signing or verification allows an unsigned token. - [jwt-sign-without-expiry](https://loadwise.mintlify.app/rules/security/jwt-sign-without-expiry.md): A signed JWT has no explicit expiration. - [jwt-verify-without-algorithms](https://loadwise.mintlify.app/rules/security/jwt-verify-without-algorithms.md): JWT verification does not restrict the accepted signing algorithms. - [jwt-weak-secret-literal](https://loadwise.mintlify.app/rules/security/jwt-weak-secret-literal.md): JWT signing or verification uses a short (< 32 chars) or weak literal secret susceptible to brute-force forgery. - [knex-raw-dynamic-text](https://loadwise.mintlify.app/rules/security/knex-raw-dynamic-text.md): A dynamic SQL fragment reaches Knex without parameter binding. - [kubernetes-privileged-container](https://loadwise.mintlify.app/rules/security/kubernetes-privileged-container.md): A Kubernetes workload explicitly requests a privileged container. - [kysely-scope-unverified](https://loadwise.mintlify.app/rules/security/kysely-scope-unverified.md): A Kysely read lacks the row scope required by the declared policy. - [ldap-filter-injection](https://loadwise.mintlify.app/rules/security/ldap-filter-injection.md): Request data reaches an LDAP search filter without RFC 4515 filter escaping or a filter builder. - [mass-assignment](https://loadwise.mintlify.app/rules/security/mass-assignment.md): An unfiltered request body reaches a persistence operation. - [mysql-dynamic-query-text](https://loadwise.mintlify.app/rules/security/mysql-dynamic-query-text.md): Dynamic SQL text reaches a MySQL client without parameter binding. - [nest-validation-without-whitelist](https://loadwise.mintlify.app/rules/security/nest-validation-without-whitelist.md): A NestJS ValidationPipe permits properties outside the validated DTO. - [next-image-any-remote-host](https://loadwise.mintlify.app/rules/security/next-image-any-remote-host.md): A Next.js images.remotePatterns entry sets hostname '**', so the image optimizer fetches and serves any host (open proxy). - [nosql-operator-injection](https://loadwise.mintlify.app/rules/security/nosql-operator-injection.md): Request data can introduce query operators into a NoSQL filter. - [open-redirect](https://loadwise.mintlify.app/rules/security/open-redirect.md): An HTTP redirect destination is controlled by request data. - [password-hash-in-response](https://loadwise.mintlify.app/rules/security/password-hash-in-response.md): A response returns a user record that still holds its password hash. - [path-traversal](https://loadwise.mintlify.app/rules/security/path-traversal.md): Request data controls a filesystem path without a recognized containment check. - [pg-dynamic-query-text](https://loadwise.mintlify.app/rules/security/pg-dynamic-query-text.md): Dynamic SQL text reaches the PostgreSQL client without parameter binding. - [plaintext-password-storage](https://loadwise.mintlify.app/rules/security/plaintext-password-storage.md): A password is stored or written without being hashed. - [postmessage-missing-origin-check](https://loadwise.mintlify.app/rules/security/postmessage-missing-origin-check.md): postMessage targets '*', or a window message listener reads event.data without checking origin or source. - [prisma-raw-unsafe-dynamic](https://loadwise.mintlify.app/rules/security/prisma-raw-unsafe-dynamic.md): Dynamic SQL text reaches an unsafe Prisma raw-query method. - [prisma-scope-unverified](https://loadwise.mintlify.app/rules/security/prisma-scope-unverified.md): A Prisma operation lacks the row scope required by the declared policy. - [prototype-pollution](https://loadwise.mintlify.app/rules/security/prototype-pollution.md): Request data can supply keys to a write or merge that can modify an object prototype. - [raw-content-disposition-filename](https://loadwise.mintlify.app/rules/security/raw-content-disposition-filename.md): Request data is interpolated into a raw Content-Disposition filename parameter. - [react-dangerously-set-inner-html](https://loadwise.mintlify.app/rules/security/react-dangerously-set-inner-html.md): dangerouslySetInnerHTML receives HTML that is not a constant or sanitized. - [reflected-xss-response](https://loadwise.mintlify.app/rules/security/reflected-xss-response.md): An HTML response reflects request data without recognized escaping. - [regex-catastrophic-backtracking](https://loadwise.mintlify.app/rules/security/regex-catastrophic-backtracking.md): A regular expression that can backtrack exponentially or in polynomial time runs on request input. - [regex-from-input](https://loadwise.mintlify.app/rules/security/regex-from-input.md): Request input supplies a regular expression pattern without recognized escaping. - [request-selected-executable](https://loadwise.mintlify.app/rules/security/request-selected-executable.md): Request input selects the program at a resolved process-launch API. - [secret-compared-non-constant-time](https://loadwise.mintlify.app/rules/security/secret-compared-non-constant-time.md): A secret is compared with an operation that can vary in timing with its contents. - [secret-in-log](https://loadwise.mintlify.app/rules/security/secret-in-log.md): A log statement can expose a credential, token, or other secret. - [secret-in-url-query](https://loadwise.mintlify.app/rules/security/secret-in-url-query.md): A password, token or API key is passed in a URL query string. - [sequelize-dynamic-query-text](https://loadwise.mintlify.app/rules/security/sequelize-dynamic-query-text.md): Dynamic SQL text reaches Sequelize without parameter binding. - [server-action-missing-auth](https://loadwise.mintlify.app/rules/security/server-action-missing-auth.md): An exported Next.js Server Action performs work without verifying authentication or session state. - [ssrf-redirect-bypass](https://loadwise.mintlify.app/rules/security/ssrf-redirect-bypass.md): An outbound HTTP request with a dynamic URL does not disable redirects, allowing SSRF allowlist bypasses. - [ssrf-request-url](https://loadwise.mintlify.app/rules/security/ssrf-request-url.md): Request data controls the destination of a server-side network request. - [storage-object-public-acl](https://loadwise.mintlify.app/rules/security/storage-object-public-acl.md): A storage upload makes the object publicly readable. - [template-autoescape-disabled](https://loadwise.mintlify.app/rules/security/template-autoescape-disabled.md): A template engine is configured to render values without HTML escaping. - [template-injection](https://loadwise.mintlify.app/rules/security/template-injection.md): Request data is interpreted as template source rather than a template value. - [template-raw-html-binding](https://loadwise.mintlify.app/rules/security/template-raw-html-binding.md): A Vue or Svelte template inserts a dynamic value as raw HTML. - [tls-verification-disabled](https://loadwise.mintlify.app/rules/security/tls-verification-disabled.md): A TLS client skips certificate or server hostname verification. - [trust-boundary-violation](https://loadwise.mintlify.app/rules/security/trust-boundary-violation.md): Request data is stored in application-wide state that later requests trust. - [typeorm-dynamic-query-text](https://loadwise.mintlify.app/rules/security/typeorm-dynamic-query-text.md): A dynamic SQL fragment reaches TypeORM without parameter binding. - [upload-client-filename](https://loadwise.mintlify.app/rules/security/upload-client-filename.md): A file upload is stored under the original name supplied by the client. - [vm-sandbox-escape](https://loadwise.mintlify.app/rules/security/vm-sandbox-escape.md): Node `vm` or `vm2` executes dynamic code or an untrusted context, risking sandbox escape and host RCE. - [vue-v-html-unsanitized](https://loadwise.mintlify.app/rules/security/vue-v-html-unsanitized.md): A Vue render function binds unsanitized dynamic HTML to innerHTML. - [weak-hash](https://loadwise.mintlify.app/rules/security/weak-hash.md): A request credential is hashed with MD5 or SHA-1. - [weak-password-hash](https://loadwise.mintlify.app/rules/security/weak-password-hash.md): A password is hashed with an algorithm unsuitable for password storage. - [webhook-body-without-verification](https://loadwise.mintlify.app/rules/security/webhook-body-without-verification.md): A Stripe webhook writes request-body data before visible signature verification. - [xml-external-entities](https://loadwise.mintlify.app/rules/security/xml-external-entities.md): An XML parser allows processing of external entities. - [xpath-injection](https://loadwise.mintlify.app/rules/security/xpath-injection.md): Request data is concatenated into an XPath expression. - [zip-slip-extraction](https://loadwise.mintlify.app/rules/security/zip-slip-extraction.md): An archive entry controls an extraction path without a recognized containment check. - [csharp-binaryformatter-request-deserialization](https://loadwise.mintlify.app/rules/security/csharp-binaryformatter-request-deserialization.md): Legacy BinaryFormatter.Deserialize consumes an ASP.NET Core request stream. - [csharp-ef-from-sql-raw](https://loadwise.mintlify.app/rules/security/csharp-ef-from-sql-raw.md): FromSqlRaw or ExecuteSqlRaw receives a concatenated or interpolated string, risking SQL injection. - [csharp-process-start](https://loadwise.mintlify.app/rules/security/csharp-process-start.md): Process.Start launches an external process and risks command injection with untrusted arguments. - [go-exec-command-shell](https://loadwise.mintlify.app/rules/security/go-exec-command-shell.md): exec.Command invokes a shell, which risks command injection. - [go-sql-sprintf-injection](https://loadwise.mintlify.app/rules/security/go-sql-sprintf-injection.md): SQL text formatted with fmt.Sprintf risks SQL injection. - [go-tls-insecure-skip-verify](https://loadwise.mintlify.app/rules/security/go-tls-insecure-skip-verify.md): Setting InsecureSkipVerify: true on tls.Config disables TLS certificate verification. - [java-des-cipher](https://loadwise.mintlify.app/rules/security/java-des-cipher.md): A JCA Cipher factory explicitly selects DES. - [java-objectinputstream-request-deserialization](https://loadwise.mintlify.app/rules/security/java-objectinputstream-request-deserialization.md): Java ObjectInputStream.readObject consumes a servlet request body. - [java-runtime-exec](https://loadwise.mintlify.app/rules/security/java-runtime-exec.md): Runtime.getRuntime().exec runs an OS command and risks command injection with untrusted arguments. - [java-sql-string-concat](https://loadwise.mintlify.app/rules/security/java-sql-string-concat.md): A SQL query built by string concatenation risks SQL injection. - [python-insecure-deserialization](https://loadwise.mintlify.app/rules/security/python-insecure-deserialization.md): pickle or marshal deserialization of untrusted data can execute arbitrary code. - [python-requests-tls-verify-disabled](https://loadwise.mintlify.app/rules/security/python-requests-tls-verify-disabled.md): Calling Python requests with verify=False disables TLS certificate verification. - [python-sqlite-unbound-value](https://loadwise.mintlify.app/rules/security/python-sqlite-unbound-value.md): A Python sqlite3 query inserts a value into SQL text instead of binding it. - [python-subprocess-shell-true](https://loadwise.mintlify.app/rules/security/python-subprocess-shell-true.md): subprocess with shell=True or os.system passes input through a shell, risking command injection. - [python-unsafe-yaml-load](https://loadwise.mintlify.app/rules/security/python-unsafe-yaml-load.md): yaml.load or yaml.load_all without SafeLoader or BaseLoader can construct arbitrary Python objects. - [rust-command-shell](https://loadwise.mintlify.app/rules/security/rust-command-shell.md): Command::new("sh") or Command::new("bash") spawns a shell and risks command injection. - [rust-reqwest-danger-accept-invalid-certs](https://loadwise.mintlify.app/rules/security/rust-reqwest-danger-accept-invalid-certs.md): Calling danger_accept_invalid_certs(true) on a reqwest client disables TLS certificate verification. - [rust-unsafe-raw-pointer-deref](https://loadwise.mintlify.app/rules/security/rust-unsafe-raw-pointer-deref.md): A raw pointer dereference in an unsafe block bypasses Rust memory safety guarantees. - [dependency-known-vulnerability](https://loadwise.mintlify.app/rules/security/dependency-known-vulnerability.md): A resolved dependency version is listed in a published vulnerability advisory. - [a11y-aria-hidden-focus](https://loadwise.mintlify.app/rules/accessibility/a11y-aria-hidden-focus.md): A control in the Tab order is hidden from assistive technology by aria-hidden. - [a11y-aria-role-missing-checked](https://loadwise.mintlify.app/rules/accessibility/a11y-aria-role-missing-checked.md): A custom checkbox or switch does not expose its checked state. - [a11y-button-missing-name](https://loadwise.mintlify.app/rules/accessibility/a11y-button-missing-name.md): A native button has no accessible name. - [a11y-button-missing-type](https://loadwise.mintlify.app/rules/accessibility/a11y-button-missing-type.md): A button associated with a form has a click handler but no explicit type, so clicking it can also submit the form. - [a11y-clickable-non-interactive](https://loadwise.mintlify.app/rules/accessibility/a11y-clickable-non-interactive.md): A click handler sits on a non-interactive element without a role and keyboard support, so keyboard users cannot activate it. - [a11y-competing-autofocus](https://loadwise.mintlify.app/rules/accessibility/a11y-competing-autofocus.md): More than one visible control requests autofocus in the same static document scope. - [a11y-data-table-missing-headers](https://loadwise.mintlify.app/rules/accessibility/a11y-data-table-missing-headers.md): A named rectangular data table has no header cells. - [a11y-heading-level-skipped](https://loadwise.mintlify.app/rules/accessibility/a11y-heading-level-skipped.md): A heading jumps more than one level down, which leaves a gap in the page outline. - [a11y-html-invalid-lang](https://loadwise.mintlify.app/rules/accessibility/a11y-html-invalid-lang.md): The html element has a malformed static language tag. - [a11y-html-missing-lang](https://loadwise.mintlify.app/rules/accessibility/a11y-html-missing-lang.md): The html element has no lang attribute, so screen readers guess the pronunciation. - [a11y-iframe-missing-title](https://loadwise.mintlify.app/rules/accessibility/a11y-iframe-missing-title.md): An iframe has no title, so screen readers cannot say what it contains. - [a11y-img-missing-alt](https://loadwise.mintlify.app/rules/accessibility/a11y-img-missing-alt.md): An image has no alt text, so screen readers announce its file name or nothing. - [a11y-input-missing-autocomplete](https://loadwise.mintlify.app/rules/accessibility/a11y-input-missing-autocomplete.md): An input for personal data has no autocomplete, so browsers cannot fill it in for people who find typing hard. - [a11y-invalid-aria](https://loadwise.mintlify.app/rules/accessibility/a11y-invalid-aria.md): An ARIA attribute or role is misspelled or invalid, so assistive technology ignores it. - [a11y-invalid-id-reference](https://loadwise.mintlify.app/rules/accessibility/a11y-invalid-id-reference.md): A complete static HTML document contains an ambiguous or missing ID reference. - [a11y-link-text-not-descriptive](https://loadwise.mintlify.app/rules/accessibility/a11y-link-text-not-descriptive.md): A link says only "click here" or "read more", so it means nothing out of context. - [a11y-media-autoplay](https://loadwise.mintlify.app/rules/accessibility/a11y-media-autoplay.md): A video or audio element plays on its own with sound, so it talks over screen readers. - [a11y-missing-form-label](https://loadwise.mintlify.app/rules/accessibility/a11y-missing-form-label.md): A form control has no label, so screen readers announce it without its purpose. - [a11y-nested-interactive](https://loadwise.mintlify.app/rules/accessibility/a11y-nested-interactive.md): A native button and link are nested, making their focus and activation ambiguous. - [a11y-placeholder-link-action](https://loadwise.mintlify.app/rules/accessibility/a11y-placeholder-link-action.md): An anchor with an activation handler has no usable navigation destination. - [a11y-positive-tabindex](https://loadwise.mintlify.app/rules/accessibility/a11y-positive-tabindex.md): A positive tabindex reorders keyboard focus away from the visual order. - [a11y-svg-image-missing-name](https://loadwise.mintlify.app/rules/accessibility/a11y-svg-image-missing-name.md): A visible SVG exposed as an image has no accessible name. - [a11y-video-captions-review](https://loadwise.mintlify.app/rules/accessibility/a11y-video-captions-review.md): A native video with controls has no visible evidence of captions. - [a11y-viewport-zoom-disabled](https://loadwise.mintlify.app/rules/accessibility/a11y-viewport-zoom-disabled.md): The viewport meta tag disables zoom, so people with low vision cannot enlarge the page. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.