hasIssueWithSeverity function

bool hasIssueWithSeverity(
  1. Iterable<LintFileReport> records,
  2. Severity severity
)

Implementation

bool hasIssueWithSeverity(
  Iterable<LintFileReport> records,
  Severity severity,
) =>
    records.any((record) =>
        record.issues.any((issue) => issue.severity == severity) ||
        record.antiPatternCases.any((issue) => issue.severity == severity));