fleetlint Policy for a fleet of repositories
v0.3
Getting started

slop/escape-hatches

Lint and type suppressions are reviewed

Severityinfo
Tiersall
Stacksany
Scoperoot
Kindexpr
Sourcelibrary v0.0.0-20261011205826-ecb4e9b3ffd4
Selected byfleetlint-slop@0.1.0

Requirement

Suppressions (nolint, noqa, @ts-ignore, as any, @Suppress, unwrap(), !!) are rare and each has a reason next to it. This rule lists them for review; it cannot tell a justified one from an unjustified one.

Why

Each suppression switches a check off for good; a list of them is the fastest audit of where the checks do not apply.

Check

For each item in:

codegrep("nontest", r'@ts-ignore|@ts-nocheck|\bas any\b|:\s*any\s*([,;)=\]>]|$)|# type:\s*ignore|eslint-disable|//\s*nolint|#\s*noqa|@Suppress(Warnings)?\(|//\s*ignore(_for_file)?:|#!?\[allow\(|\.unwrap\(\)|\.expect\(\x22|\w!!')
false

Fix

Fix the code instead of suppressing, or state the reason on the same line.

Agent instruction: For each suppression, try the fix first; if it stays, add the specific rule name and a one-line reason.

See: https://fleetlint.org/baseline/#slop


Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.