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