Lines Matching refs:rules
218 // We use two sets of rules to speed up matching
224 * @param {object} rules
226 addRules(rules) {
227 for (const key of Object.keys(rules)) {
229 this.patternMatch.push(new StatusRule(key, rules[key], key));
232 this.exactMatch[normalizedPath] = new StatusRule(key, rules[key]);
259 * @param {StatusRule[]} rules
261 constructor(mod, filename, rules) {
269 for (const item of rules) {
352 this.rules = new StatusRuleSet();
384 this.rules.addRules(result);
390 const match = this.rules.match(relativePath);
648 // Sorts the rules to have consistent output