@flow-scanner/lightning-flow-scanner-core 6.19.0 → 6.19.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.
- package/README.md +1 -1
- package/main/config/RuleRegistry.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -193,7 +193,7 @@ Before-save Flows can safely update the triggering record directly via $Record,
|
|
|
193
193
|
**Class Name:** _[SameRecordFieldUpdates](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/SameRecordFieldUpdates.ts)_
|
|
194
194
|
**Severity:** 🟡 *Warning*
|
|
195
195
|
|
|
196
|
-
#### Cognitive Complexity
|
|
196
|
+
#### Cognitive Complexity 
|
|
197
197
|
Flows with deeply nested loops and decisions are hard to understand. Unlike cyclomatic complexity which counts paths, cognitive complexity penalizes nesting depth. Consider extracting nested logic into subflows.
|
|
198
198
|
|
|
199
199
|
**Rule ID:** `cognitive-complexity`
|
|
@@ -182,7 +182,7 @@ registry.register("action-call-in-loop", _ActionCallsInLoop.ActionCallsInLoop, "
|
|
|
182
182
|
registry.register("invalid-api-version", _APIVersion.APIVersion, "APIVersion");
|
|
183
183
|
registry.register("missing-auto-layout", _AutoLayout.AutoLayout, "AutoLayout");
|
|
184
184
|
registry.register("unclear-api-naming", _CopyAPIName.CopyAPIName, "CopyAPIName");
|
|
185
|
-
registry.register("cognitive-complexity", _CognitiveComplexity.CognitiveComplexity, "CognitiveComplexity");
|
|
185
|
+
registry.register("cognitive-complexity", _CognitiveComplexity.CognitiveComplexity, "CognitiveComplexity", true);
|
|
186
186
|
registry.register("excessive-cyclomatic-complexity", _CyclomaticComplexity.CyclomaticComplexity, "CyclomaticComplexity");
|
|
187
187
|
registry.register("dml-in-loop", _DMLStatementInLoop.DMLStatementInLoop, "DMLStatementInLoop");
|
|
188
188
|
registry.register("duplicate-dml", _DuplicateDMLOperation.DuplicateDMLOperation, "DuplicateDMLOperation");
|
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.19.
|
|
4
|
+
"version": "6.19.1",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|