hasIgnoreForFileDirective static method

bool hasIgnoreForFileDirective(
  1. CompilationUnit unit, {
  2. required String toolName,
  3. String? sourceCode,
})

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);