Skip to content

MLC001: Invalid or unknown inline suppression comment

qual reports MLC001 when an inline suppression comment cannot take effect:

  • the rule ID inside # qual: ignore[...] is unknown,
  • the directive is malformed (e.g. missing brackets or empty selector list),
  • # qual: file-ignore[...] appears outside the file header region (shebang, encoding declaration, module docstring).

An invalid suppression never suppresses anything. Unknown rule IDs in configuration (select, ignore, per-file-ignores) are a configuration error with exit code 2 instead.

  • Default severity: warning
  • Minimum confidence: certain
  • Implementation phase: 0
  • Fix: none