hasIgnoreForFileDirective static method
Static helper to check file-level suppression for a given toolName.
Implementation
static bool hasIgnoreForFileDirective(
CompilationUnit unit, {
required String toolName,
String? sourceCode,
}) => CommentDirectiveParser(toolName).hasIgnoreForFile(unit, sourceCode);