StaleIgnoreCoverage class

What one stale-ignore scan covered. Every check answers "may this comment be judged?"; anything not positively covered is kept.

Constructors

StaleIgnoreCoverage({required Set<String> rulesRun, required Set<String> filesWalked, required Set<String> ruleFileFailures, Map<String, Set<int>> commentHidden = const {}, Set<String> unlocatedRules = const {}})

Properties

hashCode → int
The hash code for this object.
no setterinherited
rulesRun → Set<String>
Rules that registered visitors and ran. A rule outside this set (not in the tier, disabled, failed to register) proves nothing.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

canJudge(String path, String rule, Set<int> ruleTargets) → bool
Whether a comment for rule in path may be judged at all.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
walkedCount(Iterable<String> paths) → int
How many of paths the scan walked to the end, for the CLI's "kept unjudged" note.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

failureKey(String path, String rule) → String
Builds the failure key ruleFileFailures uses.