AI code quality gate

The linter for
AI-generated
code

AI agents ship code that compiles and passes tests. Sloplint catches what they leave behind — narrative comments, unsafe casts, swallowed exceptions, dead code, production TODOs — before they rot your codebase.

$ npx aislop scan

Patterns detected

//
Narrative comments
comments/narrative

Agent describes its own reasoning instead of the code. Adds noise, signals the agent wasn't sure what it was doing.

any
Unsafe type casts
types/unsafe-any-cast

as any used to silence TypeScript instead of fixing the actual type mismatch. Silent failures at runtime.

{ }
Swallowed exceptions
exceptions/swallowed

Empty catch blocks or bare return [] fallbacks that hide real errors from ever surfacing.

TODO
Production TODOs
stubs/prod-todo

Placeholder comments that ship to production. The agent deferred the hard part and moved on.

Dead code
dead-code/unused-export

Unused declarations, duplicate helpers, and stale imports accumulate as agents regenerate overlapping logic.

URL
Hardcoded URLs
config/hardcoded-url

API endpoints and environment values baked into source. Works locally, breaks in production. A classic agent shortcut.

50+
detection rules
7
languages
<1s
per scan
0
LLMs at runtime