@flow-scanner/lightning-flow-scanner-core 6.18.0 → 6.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -116,5 +116,17 @@ function ScanFlows(flows, ruleOptions) {
116
116
  });
117
117
  });
118
118
  }
119
+ // Apply threshold filtering if specified
120
+ const threshold = ruleOptions === null || ruleOptions === void 0 ? void 0 : ruleOptions.threshold;
121
+ if (threshold && threshold !== 'never') {
122
+ for (const scanResult of flowResults){
123
+ scanResult.ruleResults = scanResult.ruleResults.filter((ruleResult)=>{
124
+ // Get effective severity (config override or rule default)
125
+ const config = getRuleConfigByIdOrName(ruleResult.ruleDefinition, ruleOptions === null || ruleOptions === void 0 ? void 0 : ruleOptions.rules);
126
+ const severity = (config === null || config === void 0 ? void 0 : config.severity) || ruleResult.severity || 'warning';
127
+ return (0, _IRulesConfig.meetsThreshold)(severity, threshold);
128
+ });
129
+ }
130
+ }
119
131
  return flowResults;
120
132
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flow-scanner/lightning-flow-scanner-core",
3
3
  "description": "A lightweight engine for Flow metadata in Node.js, and browser environments. Assess and enhance Salesforce Flow automations for best practices, security, governor limits, and performance issues.",
4
- "version": "6.18.0",
4
+ "version": "6.18.1",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": {