failing method
Issues that map to a non-zero exit code under strict.
The length-family warnings (strictLengthGatedRules) are special:
--strict alone doesn't promote them (they're heuristic/soft
conventions). --strict-length is the explicit opt-in. The check
command passes the flags through; the report formatter mirrors this
so the display tag matches the exit-code logic.
Implementation
Iterable<Issue> failing({
required bool strict,
required bool strictLength,
}) sync* {
for (final issue in issues) {
if (issue.severity == IssueSeverity.error) {
yield issue;
} else if (strict && _promotedUnderStrict(issue, strictLength)) {
yield issue;
}
}
}