mirror of
https://github.com/getwax/bundler.git
synced 2026-01-07 23:04:02 -05:00
fix checkRulesCoverage (#158)
unknown rule: don't throw exception, just add to report (once)
This commit is contained in:
@@ -47,9 +47,10 @@ rules["STO-000"] = "== placehodler rule";
|
||||
|
||||
function foundRule(r) {
|
||||
if (r.match(/UTF|eip|erc|gpl/i)) return ;
|
||||
if ( !rules[r])
|
||||
throw new Error(`unknown referenced rule ${r}`)
|
||||
if ( unmatched[r]) {
|
||||
if ( !rules[r]) {
|
||||
console.log("UNKNOWN:", r)
|
||||
rules[r] = "==unknown=="
|
||||
} else if ( unmatched[r]) {
|
||||
if ( showMatch )
|
||||
console.log("matched:",r) // ${rules[r]})
|
||||
totMatched++;
|
||||
|
||||
Reference in New Issue
Block a user