{"version":"0.10.8","count":52,"categories":{"security":{"rules":27,"weight":0.4},"reliability":{"rules":11,"weight":0.3},"performance":{"rules":6,"weight":0.15},"ai-quality":{"rules":8,"weight":0.15}},"rules":[{"id":"secrets","name":"Hardcoded Secrets","category":"security","severity":"critical","description":"Hardcoded API keys, tokens, private keys and database URLs with credentials (Stripe, AWS, OpenAI, Anthropic, GitHub, Supabase and more)","fix":"Move all secrets to environment variables. Use a .env file locally (added to .gitignore) and your hosting provider's secret manager in production.","url":"https://prodlint.com/rules/secrets","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/secrets.ts","suppress":"// prodlint-disable-next-line secrets"},{"id":"auth-checks","name":"Missing Auth Checks","category":"security","severity":"critical","severityNote":"Critical on routes that handle POST, PUT, PATCH or DELETE. Info on read-only routes, and on any route when auth middleware is detected.","description":"API routes with no authentication check (middleware-aware)","fix":"Check the session at the top of every handler that reads or changes data, or cover the route with auth middleware (Clerk, NextAuth, Supabase). Routes whose path says they are public by design (auth, login, signup, callback, webhook, health, cron, public) are skipped.","url":"https://prodlint.com/rules/auth-checks","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/auth-checks.ts","suppress":"// prodlint-disable-next-line auth-checks"},{"id":"env-exposure","name":"Env Exposure","category":"security","severity":"critical","severityNote":"Critical for known secrets (DATABASE_URL, STRIPE_SECRET_KEY, JWT_SECRET and similar) and for a .env file that isn't in .gitignore. Warning for other server variables, which are simply undefined in the browser.","description":"Server env vars in client components, .env not in .gitignore","fix":"Never reference server-only env vars in 'use client' files. Use NEXT_PUBLIC_ prefix for values that are safe to expose. Fetch server data via API routes or server components instead.","url":"https://prodlint.com/rules/env-exposure","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/env-exposure.ts","suppress":"// prodlint-disable-next-line env-exposure"},{"id":"input-validation","name":"Missing Input Validation","category":"security","severity":"warning","description":"Request body used without validation in an API route","fix":"Validate every request body with Zod, Valibot, or a similar schema library before using the data. Reject invalid payloads with a 400 response.","url":"https://prodlint.com/rules/input-validation","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/input-validation.ts","suppress":"// prodlint-disable-next-line input-validation"},{"id":"cors-config","name":"Permissive CORS","category":"security","severity":"warning","severityNote":"Critical when the wildcard comes with credentials.","description":"Access-Control-Allow-Origin: *, cors() with no config, origin: true","fix":"Replace wildcard '*' with an explicit allowlist of trusted origins. Validate the Origin header against the list on every request.","url":"https://prodlint.com/rules/cors-config","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/cors-config.ts","suppress":"// prodlint-disable-next-line cors-config"},{"id":"unsafe-html","name":"Unsafe HTML Injection","category":"security","severity":"critical","description":"dangerouslySetInnerHTML, direct innerHTML assignment","fix":"Sanitize all HTML with DOMPurify or a similar library before rendering. Better yet, use React's built-in text escaping and avoid dangerouslySetInnerHTML entirely.","url":"https://prodlint.com/rules/unsafe-html","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/unsafe-html.ts","suppress":"// prodlint-disable-next-line unsafe-html"},{"id":"sql-injection","name":"SQL Injection","category":"security","severity":"critical","severityNote":"Warning instead of critical when the project uses an ORM or query builder that parameterizes by default (Prisma, Drizzle, Knex, TypeORM, Sequelize).","description":"SQL queries built with template literals or string concat (ORM-aware)","fix":"Always use parameterized queries or an ORM (Prisma, Drizzle, Knex). Never interpolate user input into SQL strings.","url":"https://prodlint.com/rules/sql-injection","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/sql-injection.ts","suppress":"// prodlint-disable-next-line sql-injection"},{"id":"open-redirect","name":"Open Redirect","category":"security","severity":"warning","description":"User input passed directly to redirect()","fix":"Validate redirect targets are relative paths on your own domain. Reject absolute URLs, protocol-relative URLs (//), and any input that doesn't start with a single slash.","url":"https://prodlint.com/rules/open-redirect","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/open-redirect.ts","suppress":"// prodlint-disable-next-line open-redirect"},{"id":"rate-limiting","name":"Missing Rate Limiting","category":"security","severity":"info","description":"API routes with no rate limiter","fix":"Add rate limiting to all public API routes, especially auth endpoints. Use Upstash, Redis, or an in-memory store. Apply stricter limits to sensitive endpoints.","url":"https://prodlint.com/rules/rate-limiting","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/rate-limiting.ts","suppress":"// prodlint-disable-next-line rate-limiting"},{"id":"phantom-dependency","name":"Phantom Dependency","category":"security","severity":"warning","severityNote":"Warning for names on the list of commonly hallucinated packages. Info for names that only match a suspicious pattern: one or two letters, a -js suffix, or a prefix like easy- or super-.","description":"Dependencies with commonly hallucinated or suspicious package names (slopsquatting)","fix":"Look the package up on npm before you rely on it. If you meant the official one (openai, stripe, @supabase/supabase-js, @prisma/client), install that instead and update the imports.","url":"https://prodlint.com/rules/phantom-dependency","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/phantom-dependency.ts","suppress":"// prodlint-disable-next-line phantom-dependency"},{"id":"insecure-cookie","name":"Insecure Cookie","category":"security","severity":"warning","description":"Session cookies set without httpOnly, secure or sameSite","fix":"Set httpOnly, secure and sameSite on every cookie that holds a session, token or JWT.","url":"https://prodlint.com/rules/insecure-cookie","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/insecure-cookie.ts","suppress":"// prodlint-disable-next-line insecure-cookie"},{"id":"leaked-env-in-logs","name":"Leaked Env in Logs","category":"security","severity":"warning","description":"process.env.* leaked inside console.log() calls","fix":"Keep process.env out of console calls altogether. Work out what you need to know first (is it set?), then log that.","url":"https://prodlint.com/rules/leaked-env-in-logs","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/leaked-env-in-logs.ts","suppress":"// prodlint-disable-next-line leaked-env-in-logs"},{"id":"insecure-random","name":"Insecure Random","category":"security","severity":"warning","description":"Math.random() used for tokens, secrets, or session IDs","fix":"Use crypto.randomBytes() (Node.js) or crypto.getRandomValues() (browser) for any security-sensitive random values.","url":"https://prodlint.com/rules/insecure-random","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/insecure-random.ts","suppress":"// prodlint-disable-next-line insecure-random"},{"id":"next-server-action-validation","name":"Server Action Validation","category":"security","severity":"critical","description":"Server actions using formData without Zod/schema validation","fix":"Validate all formData fields with Zod or a similar schema library inside the server action before using the values.","url":"https://prodlint.com/rules/next-server-action-validation","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/next-server-action-validation.ts","suppress":"// prodlint-disable-next-line next-server-action-validation"},{"id":"env-fallback-secret","name":"Env Fallback Secret","category":"security","severity":"critical","severityNote":"Critical for well-known secret names (JWT_SECRET, SESSION_SECRET, NEXTAUTH_SECRET, ENCRYPTION_KEY and similar). Warning for other variables named like a key, token or password, and for database URLs with a hardcoded fallback.","description":"Secret env vars with hardcoded fallback values","fix":"Never provide fallback values for secrets. Fail fast with a clear error message if a required env var is missing.","url":"https://prodlint.com/rules/env-fallback-secret","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/env-fallback-secret.ts","suppress":"// prodlint-disable-next-line env-fallback-secret"},{"id":"verbose-error-response","name":"Verbose Error Response","category":"security","severity":"warning","severityNote":"Warning for error.stack. Info for error.message.","description":"Error stack traces and messages sent back in API responses","fix":"Log the full error server-side for debugging. Return a generic error message to the client. Never send stack traces, file paths, or internal details in API responses.","url":"https://prodlint.com/rules/verbose-error-response","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/verbose-error-response.ts","suppress":"// prodlint-disable-next-line verbose-error-response"},{"id":"missing-webhook-verification","name":"Missing Webhook Verification","category":"security","severity":"critical","description":"Webhook routes without signature verification","fix":"Verify the webhook signature using the provider's SDK (Stripe, GitHub, etc.) before processing any event. Reject requests with invalid or missing signatures.","url":"https://prodlint.com/rules/missing-webhook-verification","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/missing-webhook-verification.ts","suppress":"// prodlint-disable-next-line missing-webhook-verification"},{"id":"server-action-auth","name":"Server Action Auth","category":"security","severity":"warning","severityNote":"Info when auth middleware covers the pages the action is posted to, and for a model-only action when rate limiting is detected in middleware.","description":"Server actions that write data, send something out or call an AI model, with no auth check","fix":"Check the user's session at the top of every server action that writes data, sends mail or requests, writes files or calls a model, and scope what it does to that user. A public action that calls a model needs a rate limit instead. Middleware alone lowers the finding to info but doesn't clear it: an action is a POST to a page, and middleware lets public pages through.","url":"https://prodlint.com/rules/server-action-auth","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/server-action-auth.ts","suppress":"// prodlint-disable-next-line server-action-auth"},{"id":"eval-injection","name":"Eval Injection","category":"security","severity":"critical","description":"eval(), new Function(), and strings passed to setTimeout or setInterval","fix":"Never use eval() or new Function() with any data that could come from users. Use a safe parser (mathjs for math, JSON.parse for JSON) instead.","url":"https://prodlint.com/rules/eval-injection","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/eval-injection.ts","suppress":"// prodlint-disable-next-line eval-injection"},{"id":"next-public-sensitive","name":"NEXT_PUBLIC_ Sensitive","category":"security","severity":"critical","description":"NEXT_PUBLIC_ prefix on secret env vars","fix":"Only use the NEXT_PUBLIC_ prefix for values that are safe to be public (publishable keys, API URLs). Keep secret keys, database URLs, and tokens without the prefix.","url":"https://prodlint.com/rules/next-public-sensitive","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/next-public-sensitive.ts","suppress":"// prodlint-disable-next-line next-public-sensitive"},{"id":"ssrf-risk","name":"SSRF Risk","category":"security","severity":"warning","description":"User-controlled URLs passed to fetch in server code","fix":"Validate and allowlist the hostname before making server-side requests. Block internal IPs (127.0.0.1, 169.254.x.x, 10.x.x.x) and cloud metadata endpoints.","url":"https://prodlint.com/rules/ssrf-risk","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/ssrf-risk.ts","suppress":"// prodlint-disable-next-line ssrf-risk"},{"id":"path-traversal","name":"Path Traversal","category":"security","severity":"critical","severityNote":"Critical when request input goes straight into the file call. Warning when it arrives through a variable named like a path (file, fileName, filePath, path, name).","description":"File system operations with unsanitized user input","fix":"Resolve the full path and check that it stays inside the directory you meant to serve, separator included. Reject anything that resolves outside it.","url":"https://prodlint.com/rules/path-traversal","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/path-traversal.ts","suppress":"// prodlint-disable-next-line path-traversal"},{"id":"unsafe-file-upload","name":"Unsafe File Upload","category":"security","severity":"warning","description":"File uploads without type or size validation","fix":"Validate file type against an allowlist, enforce a size limit, and generate a safe filename (UUID) instead of using the original name.","url":"https://prodlint.com/rules/unsafe-file-upload","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/unsafe-file-upload.ts","suppress":"// prodlint-disable-next-line unsafe-file-upload"},{"id":"supabase-missing-rls","name":"Supabase Missing RLS","category":"security","severity":"critical","description":"CREATE TABLE in migrations without enabling RLS","fix":"Add ALTER TABLE ... ENABLE ROW LEVEL SECURITY and at least one policy for every table in your Supabase migrations.","url":"https://prodlint.com/rules/supabase-missing-rls","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/supabase-missing-rls.ts","suppress":"// prodlint-disable-next-line supabase-missing-rls"},{"id":"deprecated-oauth-flow","name":"Deprecated OAuth Flow","category":"security","severity":"warning","description":"OAuth Implicit Grant (response_type=token)","fix":"Use the Authorization Code flow with PKCE instead of the Implicit Grant. This keeps tokens out of the URL and is the recommended approach for all OAuth clients.","url":"https://prodlint.com/rules/deprecated-oauth-flow","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/deprecated-oauth-flow.ts","suppress":"// prodlint-disable-next-line deprecated-oauth-flow"},{"id":"jwt-no-expiry","name":"JWT No Expiry","category":"security","severity":"warning","description":"JWT tokens signed without an expiration","fix":"Always set an expiresIn (or exp claim) when signing JWTs. Use short-lived access tokens (15min-1hr) with refresh tokens for longer sessions.","url":"https://prodlint.com/rules/jwt-no-expiry","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/jwt-no-expiry.ts","suppress":"// prodlint-disable-next-line jwt-no-expiry"},{"id":"client-side-auth-only","name":"Client-Side Auth Only","category":"security","severity":"critical","severityNote":"Critical for a password comparison. Warning for an auth token read from or written to localStorage or sessionStorage.","description":"Password comparisons, or auth tokens kept in localStorage, in client components","fix":"Move all auth logic to server components, API routes, or middleware. Client code should only render based on the session state provided by the server.","url":"https://prodlint.com/rules/client-side-auth-only","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/client-side-auth-only.ts","suppress":"// prodlint-disable-next-line client-side-auth-only"},{"id":"hallucinated-imports","name":"Hallucinated Imports","category":"reliability","severity":"critical","severityNote":"Warning instead of critical in test files and scripts.","description":"Imports of packages that aren't in package.json","fix":"Check that every package you import is in package.json. If the name was invented, find the real package or write the helper yourself. Path aliases (@/, ~/, tsconfig paths) and workspace packages are understood.","url":"https://prodlint.com/rules/hallucinated-imports","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/hallucinated-imports.ts","suppress":"// prodlint-disable-next-line hallucinated-imports"},{"id":"error-handling","name":"Missing Error Handling","category":"reliability","severity":"warning","description":"API route handlers with no try/catch","fix":"Wrap the handler body in try/catch, log the error, and return a response with the right status code.","url":"https://prodlint.com/rules/error-handling","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/error-handling.ts","suppress":"// prodlint-disable-next-line error-handling"},{"id":"unhandled-promise","name":"Unhandled Promise","category":"reliability","severity":"warning","description":"fetch and database calls with no await, return or assignment","fix":"Await the call, or add .catch() if you really mean fire-and-forget. Use Promise.allSettled() for parallel work where some calls may fail.","url":"https://prodlint.com/rules/unhandled-promise","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/unhandled-promise.ts","suppress":"// prodlint-disable-next-line unhandled-promise"},{"id":"shallow-catch","name":"Shallow Catch","category":"reliability","severity":"warning","severityNote":"Warning when the error is ignored: the block is empty, or doesn't log, rethrow or return it. Info when it only logs with console.log, or logs without the error itself. A block that logs the error with console.error, rethrows it or returns an error response isn't reported.","description":"Catch blocks that are empty, ignore the error, or log without it","fix":"Log the error, re-throw it, or handle it explicitly in every catch block. Never leave catch blocks empty.","url":"https://prodlint.com/rules/shallow-catch","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/shallow-catch.ts","suppress":"// prodlint-disable-next-line shallow-catch"},{"id":"missing-loading-state","name":"Missing Loading State","category":"reliability","severity":"info","description":"Client components that fetch without a loading state","fix":"Add loading and error states to every component that fetches data. Show a skeleton or spinner while loading.","url":"https://prodlint.com/rules/missing-loading-state","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/missing-loading-state.ts","suppress":"// prodlint-disable-next-line missing-loading-state"},{"id":"missing-error-boundary","name":"Missing Error Boundary","category":"reliability","severity":"info","description":"Route layouts with no error.tsx beside them","fix":"Add an error.tsx next to every nested layout.tsx. Give it a retry button that calls reset().","url":"https://prodlint.com/rules/missing-error-boundary","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/missing-error-boundary.ts","suppress":"// prodlint-disable-next-line missing-error-boundary"},{"id":"missing-transaction","name":"Missing Transaction","category":"reliability","severity":"warning","description":"Multiple Prisma writes without $transaction","fix":"Wrap related writes in prisma.$transaction([...]) so they all succeed or all roll back.","url":"https://prodlint.com/rules/missing-transaction","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/missing-transaction.ts","suppress":"// prodlint-disable-next-line missing-transaction"},{"id":"redirect-in-try-catch","name":"Redirect in Try-Catch","category":"reliability","severity":"critical","description":"redirect() inside try/catch — Next.js redirect throws, catch swallows it","fix":"Move redirect() calls outside of try/catch blocks. In Next.js, you can also check for the NEXT_REDIRECT error type and re-throw it.","url":"https://prodlint.com/rules/redirect-in-try-catch","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/redirect-in-try-catch.ts","suppress":"// prodlint-disable-next-line redirect-in-try-catch"},{"id":"missing-revalidation","name":"Missing Revalidation","category":"reliability","severity":"warning","description":"Server actions that change data with no revalidatePath or revalidateTag","fix":"Call revalidatePath() or revalidateTag() after every server action that writes to the database, so cached pages show fresh data.","url":"https://prodlint.com/rules/missing-revalidation","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/missing-revalidation.ts","suppress":"// prodlint-disable-next-line missing-revalidation"},{"id":"missing-useeffect-cleanup","name":"Missing useEffect Cleanup","category":"reliability","severity":"warning","description":"useEffect with timers, listeners or subscriptions and no cleanup, in client components","fix":"Return a cleanup function from every useEffect that creates subscriptions, timers, event listeners, or WebSocket connections.","url":"https://prodlint.com/rules/missing-useeffect-cleanup","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/missing-useeffect-cleanup.ts","suppress":"// prodlint-disable-next-line missing-useeffect-cleanup"},{"id":"hydration-mismatch","name":"Hydration Mismatch","category":"reliability","severity":"warning","description":"window/Date.now()/Math.random() in server component render path","fix":"Use useId() for stable IDs. Move time-dependent or random values into useEffect or useState. Access window only inside useEffect.","url":"https://prodlint.com/rules/hydration-mismatch","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/hydration-mismatch.ts","suppress":"// prodlint-disable-next-line hydration-mismatch"},{"id":"no-sync-fs","name":"Sync File System","category":"performance","severity":"warning","severityNote":"Info outside API routes.","description":"readFileSync and other synchronous fs calls in server code","fix":"Replace readFileSync, writeFileSync, and other sync fs methods with their async equivalents from fs/promises.","url":"https://prodlint.com/rules/no-sync-fs","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/no-sync-fs.ts","suppress":"// prodlint-disable-next-line no-sync-fs"},{"id":"no-n-plus-one","name":"N+1 Query","category":"performance","severity":"warning","description":"Database or fetch calls inside loops","fix":"Use eager loading (include/join), batch queries (WHERE id IN), or DataLoader to fetch related data in a single query instead of per-item.","url":"https://prodlint.com/rules/no-n-plus-one","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/no-n-plus-one.ts","suppress":"// prodlint-disable-next-line no-n-plus-one"},{"id":"no-unbounded-query","name":"Unbounded Query","category":"performance","severity":"warning","description":".findMany() / .select('*') with no limit","fix":"Add a LIMIT (take) and pagination to every query that returns a list. Default to a reasonable page size (20-100 items).","url":"https://prodlint.com/rules/no-unbounded-query","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/no-unbounded-query.ts","suppress":"// prodlint-disable-next-line no-unbounded-query"},{"id":"no-dynamic-import-loop","name":"Dynamic Import in Loop","category":"performance","severity":"warning","description":"import() inside loops","fix":"Import the modules statically when the list is known. If it has to be dynamic, load them once, before the loop, and reuse the result.","url":"https://prodlint.com/rules/no-dynamic-import-loop","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/no-dynamic-import-loop.ts","suppress":"// prodlint-disable-next-line no-dynamic-import-loop"},{"id":"server-component-fetch-self","name":"Server Component Fetch Self","category":"performance","severity":"info","description":"Server components fetching their own API routes","fix":"Extract the logic from your API route into a shared function. Call it directly from server components instead of making an HTTP request to yourself.","url":"https://prodlint.com/rules/server-component-fetch-self","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/server-component-fetch-self.ts","suppress":"// prodlint-disable-next-line server-component-fetch-self"},{"id":"missing-abort-controller","name":"Missing Abort Controller","category":"performance","severity":"info","description":"fetch or axios calls with no timeout, in API routes, server actions and background jobs","fix":"Give every outbound request a timeout: AbortSignal.timeout(ms) for fetch, the timeout option for axios. Five to ten seconds suits most APIs.","url":"https://prodlint.com/rules/missing-abort-controller","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/missing-abort-controller.ts","suppress":"// prodlint-disable-next-line missing-abort-controller"},{"id":"ai-smells","name":"AI Code Smells","category":"ai-quality","severity":"info","severityNote":"Info for TODO comments and commented-out code. Warning for more than 3 console.log calls or more than 5 any types in one file, and for \"not implemented\" stubs.","description":"TODO and FIXME comments, piles of console.log and any, commented-out code, \"not implemented\" stubs","fix":"Replace 'any' with proper types. Remove console.logs before committing. Resolve or remove TODOs. Delete commented-out code — it's in git history if you need it.","url":"https://prodlint.com/rules/ai-smells","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/ai-smells.ts","suppress":"// prodlint-disable-next-line ai-smells"},{"id":"placeholder-content","name":"Placeholder Content","category":"ai-quality","severity":"info","description":"Lorem ipsum, example emails, \"John Doe\" and \"your-api-key-here\" left in shipped code","fix":"Search the codebase for lorem ipsum, example emails, John Doe, password123, changeme and your-…-here. Replace each with real content or an env var.","url":"https://prodlint.com/rules/placeholder-content","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/placeholder-content.ts","suppress":"// prodlint-disable-next-line placeholder-content"},{"id":"hallucinated-api","name":"Hallucinated API","category":"ai-quality","severity":"warning","description":".flatten(), .contains(), .substr() and other methods that don't exist or are deprecated","fix":"Check MDN or TypeScript docs when a method call looks unfamiliar. Common AI hallucinations: .flatten()→.flat(), .contains()→.includes(), .substr()→.slice().","url":"https://prodlint.com/rules/hallucinated-api","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/hallucinated-api.ts","suppress":"// prodlint-disable-next-line hallucinated-api"},{"id":"stale-fallback","name":"Stale Fallback","category":"ai-quality","severity":"warning","description":"Hardcoded localhost URLs, including as the fallback for an env var","fix":"Read the URL from an environment variable and fail at startup when it is missing. Keep localhost in .env.local, not in the code. Config files and tests are skipped.","url":"https://prodlint.com/rules/stale-fallback","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/stale-fallback.ts","suppress":"// prodlint-disable-next-line stale-fallback"},{"id":"comprehension-debt","name":"Comprehension Debt","category":"ai-quality","severity":"info","description":"Functions over 80 lines, nested more than 5 levels deep, or with more than 5 parameters","fix":"Break functions over 80 lines into smaller, named functions. Use an options object instead of many parameters. Extract nested logic into helper functions.","url":"https://prodlint.com/rules/comprehension-debt","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/comprehension-debt.ts","suppress":"// prodlint-disable-next-line comprehension-debt"},{"id":"codebase-consistency","name":"Codebase Consistency","category":"ai-quality","severity":"info","severityNote":"Warning when fewer than 60% of files agree.","description":"Conflicting conventions across files: export naming, import style, HTTP client, async style, quotes","fix":"Pick one convention for exported names, for imports (ESM or CommonJS), for the HTTP client and for async code, and apply it across the project. prodlint reports a dimension when fewer than 90% of files agree.","url":"https://prodlint.com/rules/codebase-consistency","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/codebase-consistency.ts","suppress":"// prodlint-disable-next-line codebase-consistency"},{"id":"dead-exports","name":"Dead Exports","category":"ai-quality","severity":"info","severityNote":"Warning when more than 20 exports are unused.","description":"Exported functions, constants and types that nothing imports","fix":"Delete exports nothing imports, or drop the export keyword when the function is only used inside its own file. prodlint reports once for the whole project, from five unused exports up.","url":"https://prodlint.com/rules/dead-exports","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/dead-exports.ts","suppress":"// prodlint-disable-next-line dead-exports"},{"id":"use-client-overuse","name":"use client Overuse","category":"ai-quality","severity":"info","description":"\"use client\" on files that don't use any client-side APIs","fix":"Remove 'use client' from components that don't use hooks (useState, useEffect), event handlers (onClick), or browser APIs (window, document). Let them render on the server.","url":"https://prodlint.com/rules/use-client-overuse","source":"https://github.com/prodlint/prodlint/blob/master/src/rules/use-client-overuse.ts","suppress":"// prodlint-disable-next-line use-client-overuse"}]}