Minor optimization of warning rules patterns search.
Instead of looking up all the matching rules and taking the last one, maintain the rules array in reverse order and use #find to grab the first matching rule.
Loading
Please sign in to comment
Instead of looking up all the matching rules and taking the last one, maintain the rules array in reverse order and use #find to grab the first matching rule.