Doctor · suppression

DOC0036Remove unused inline suppressions

An inline `doctor-disable` directive names a Rule that ran on the file and reported nothing the directive covers.
vite-doctor/coresuppressioninfoAuto-fix

Why it happens

A directive that suppresses nothing still hides any future Diagnostic of that Rule on the lines it covers. Doctor reports a Rule ID only when a file Rule ran on the file in this Doctor Run. Workspace and manifest Rules do not provide per-file coverage. Changed-file runs report only directives inside the change. Diagnostics hidden by the severity threshold, a baseline, or a config suppression still count as matched. * directives are never reported.

Fix

Apply the safe fix when available, or remove the reported Rule ID by hand. When removing the last ID, keep any SAFETY note and make sure the edit does not change what other directives suppress.

  • doctor/inline/unused-suppression
Copyright © 2026