badSuppression top-level constant

Rule const badSuppression

A malformed tarpit:allow comment.

Implementation

const badSuppression = Rule(
  id: 'bad-suppression',
  severity: Severity.warning,
  title: 'A tarpit:allow comment is missing a rule id or a reason',
  why:
      'Suppressions document why a pattern is safe. One without a known rule '
      'id or a reason is ignored, so the finding it was meant to silence is '
      'still reported.',
  fix:
      'Write `// tarpit:allow <rule-id> <reason>`, for example '
      '`// tarpit:allow real-io fixture is written in setUpAll`.',
);