ast-grep adds the no-suppress-all built-in rule
Introduced 2026-04-04 · score 0.94
HOW TO USE IT
When checking for diagnostics hidden by suppress-all comments, run ast-grep’s built-in `no-suppress-all` rule on the repository. It reports `ast-grep-ignore` comments that omit a rule ID.
ast-grep scan --warning=no-suppress-allast-grep scan --error=no-suppress-allWHY THIS HELPS
Check code for suppressed diagnostics using ast-grep's built-in rules.
REQUIREMENTS AND LIMITATIONS
- Version: 0.42.1
- --warning=no-suppress-all: Sets the `no-suppress-all` rule severity to warning; the rule is otherwise not enabled by default.
- --error=no-suppress-all: Sets the `no-suppress-all` rule severity to error; an error rule match makes the scan exit non-zero.
- [PATHS]...: Paths to search; defaults to the current directory (`.`).
FIRST-PARTY EVIDENCE
- https://github.com/ast-grep/ast-grep/releases/tag/0.42.1
- https://ast-grep.github.io/reference/cli/scan
- https://ast-grep.github.io/guide/project/severity
Check the installed version and the source before using it. Entry JSON