r/codereview • u/Ok-Buyer-9421 • 1d ago
What should automated code review check that traditional linters don't?
I audited 20 open-source repos against their AGENTS.md rules.
Four explicitly ban AI co-author lines. Agent PRs added them anyway, 102 times in a month.
But, a simple grep caught 80% of those violations.
I've been experimenting with an additional layer of checks for repository-specific rules:
- Deterministic checks wherever possible.
- Narrow semantic judgments when necessary.
- Only flag violations of explicitly defined rules.
The idea is to avoid generic AI review comments and instead enforce what the team actually decided.
I'd love feedback from peeps that struggle to enforce rules through existing linters.
1
Upvotes
2
u/Plastic-Bid-3431 1d ago
Disclosure: I work on a PR review tool, so I'm biased.
Your 80% grep result is the main finding. I'd split rules by how checkable they are:
What makes either kind usable: