@sketch-hq/sketch-assistant-utils
Advanced tools
Comparing version 5.0.0-next.21 to 5.0.0-next.22
# @sketch-hq/sketch-assistant-utils | ||
## 5.0.0-next.22 | ||
### Patch Changes | ||
- 1bcbce7: Do not include unconfigured rules in result metadata. | ||
## 5.0.0-next.21 | ||
@@ -4,0 +10,0 @@ |
@@ -54,3 +54,2 @@ "use strict"; | ||
.filter((rule) => assistant_config_1.isRuleActive(assistant.config, rule.name)) // Rule turned on in config | ||
.filter((rule) => !ignore_1.isRuleFullIgnored(ignoreConfig, assistant.name, rule.name)) // Rule not full ignored | ||
.filter((rule) => (rule.runtime ? rule.runtime === env.runtime : true)); // Rule platform is supported | ||
@@ -65,3 +64,3 @@ const profile = { | ||
}, | ||
rules: assistant.rules.reduce((acc, rule) => { | ||
rules: activeRules.reduce((acc, rule) => { | ||
const ruleConfig = assistant_config_1.getRuleConfig(assistant.config, rule.name); | ||
@@ -86,4 +85,6 @@ const configTitle = assistant_config_1.getRuleTitle(assistant.config, rule.name); | ||
}; | ||
// Filter out ignored rules to find the final set of rules to invoke | ||
const rulesToRun = activeRules.filter((rule) => !ignore_1.isRuleFullIgnored(ignoreConfig, assistant.name, rule.name)); | ||
try { | ||
yield p_map_1.default(activeRules, (rule) => __awaiter(void 0, void 0, void 0, function* () { | ||
yield p_map_1.default(rulesToRun, (rule) => __awaiter(void 0, void 0, void 0, function* () { | ||
if (operation.cancelled) | ||
@@ -90,0 +91,0 @@ return; |
@@ -48,3 +48,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
.filter((rule) => isRuleActive(assistant.config, rule.name)) // Rule turned on in config | ||
.filter((rule) => !isRuleFullIgnored(ignoreConfig, assistant.name, rule.name)) // Rule not full ignored | ||
.filter((rule) => (rule.runtime ? rule.runtime === env.runtime : true)); // Rule platform is supported | ||
@@ -59,3 +58,3 @@ const profile = { | ||
}, | ||
rules: assistant.rules.reduce((acc, rule) => { | ||
rules: activeRules.reduce((acc, rule) => { | ||
const ruleConfig = getRuleConfig(assistant.config, rule.name); | ||
@@ -80,4 +79,6 @@ const configTitle = getRuleTitle(assistant.config, rule.name); | ||
}; | ||
// Filter out ignored rules to find the final set of rules to invoke | ||
const rulesToRun = activeRules.filter((rule) => !isRuleFullIgnored(ignoreConfig, assistant.name, rule.name)); | ||
try { | ||
yield pMap(activeRules, (rule) => __awaiter(void 0, void 0, void 0, function* () { | ||
yield pMap(rulesToRun, (rule) => __awaiter(void 0, void 0, void 0, function* () { | ||
if (operation.cancelled) | ||
@@ -84,0 +85,0 @@ return; |
{ | ||
"name": "@sketch-hq/sketch-assistant-utils", | ||
"version": "5.0.0-next.21", | ||
"version": "5.0.0-next.22", | ||
"module": "dist/esm/index", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
683970
6881