Add comment for the rule coverage logic (#446)

This commit is contained in:
Elena Vilchik 2021-10-01 16:33:45 +02:00 committed by GitHub
parent 84fb0a245c
commit af599ec877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,6 +96,8 @@ export function useRuleCoverage() {
);
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')
? 'covered'
: 'removed';