Add comment for the rule coverage logic (#446)
This commit is contained in:
parent
84fb0a245c
commit
af599ec877
@ -96,6 +96,8 @@ export function useRuleCoverage() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (result.length > 0) {
|
if (result.length > 0) {
|
||||||
|
// if there is at least one entry with simple (string) type, rule is still part of analyzer
|
||||||
|
// otherwise (when all entries keep an analyzer versions range) the rule is removed
|
||||||
return result.some(version => typeof version === 'string')
|
return result.some(version => typeof version === 'string')
|
||||||
? 'covered'
|
? 'covered'
|
||||||
: 'removed';
|
: 'removed';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user