
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@dannote/sloplint
Advanced tools
AST-based multilingual AI slop linter — catches obvious comments, narrator comments, step comments, section dividers, empty catch blocks, and more across 8 languages
AST-based multilingual linter that catches AI-generated code slop.
Powered by ast-grep via @ast-grep/napi — rules run on real syntax trees, not regex over text.
Comment patterns (all 8 languages):
| Rule | Example |
|---|---|
obvious-comment | // Initialize the counter above let counter = 0 |
narrator-comment | // This function handles the request |
step-comment | // Step 1: Validate input |
section-divider | // ============ or // --- Helpers --- |
Code patterns (language-specific):
| Rule | Language | Example |
|---|---|---|
empty-error-handler | TS/JS/Java/Python | catch (e) {} or bare except: |
silent-exception | Python | except Exception: pass |
log-in-error-handler | TS/JS | console.log inside catch |
TypeScript, JavaScript, Python, Go, Rust, C, C++, Java
# scan a directory
npx @dannote/sloplint src/
# scan specific files
npx @dannote/sloplint main.ts utils.py server.go
# scan everything
npx @dannote/sloplint .
Exits with code 1 if any problems are found.
Comments that provide actual value are never flagged:
// Wire format: 4-byte LE header followed by varint-encoded payload// SAFETY: pointer is guaranteed valid by the borrow checker invariant above// Mutex ordering: always acquire lockA before lockB to prevent deadlocks// TODO: optimize laterTool directives are also skipped: eslint-disable, noqa, nolint, NOLINT, clippy::allow, @ts-ignore, etc.
npm install -D @dannote/sloplint
From the PR that inspired this:
Explicit anti-slop editing pass. Removed comments that restate what code does, dead code, unused includes, near-duplicate functions. Comments that remain document wire format specs, non-obvious constraints, or algorithm provenance.
Good comments explain why. Slop comments explain what — and the code already does that.
FAQs
AST-based multilingual AI slop linter — catches obvious comments, narrator comments, step comments, section dividers, empty catch blocks, and more across 8 languages
The npm package @dannote/sloplint receives a total of 2 weekly downloads. As such, @dannote/sloplint popularity was classified as not popular.
We found that @dannote/sloplint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.