Skip to content

Commit 20c241f

Browse files
committed
patch(core): release Cognetive Complexity in Beta
1 parent 9cdeb41 commit 20c241f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Before-save Flows can safely update the triggering record directly via $Record,
193193
**Class Name:** _[SameRecordFieldUpdates](packages/core/src/main/rules/SameRecordFieldUpdates.ts)_
194194
**Severity:** 🟡 *Warning*
195195

196-
#### Cognitive Complexity
196+
#### Cognitive Complexity ![Beta](https://img.shields.io/badge/status-beta-yellow)
197197
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.
198198

199199
**Rule ID:** `cognitive-complexity`

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@flow-scanner/lightning-flow-scanner-core",
33
"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.0",
4+
"version": "6.19.1",
55
"main": "out/index.js",
66
"exports": {
77
".": {

packages/core/src/main/config/RuleRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ registry.register("action-call-in-loop", ActionCallsInLoop, "ActionCallsInLoop")
161161
registry.register("invalid-api-version", APIVersion, "APIVersion");
162162
registry.register("missing-auto-layout", AutoLayout, "AutoLayout");
163163
registry.register("unclear-api-naming", CopyAPIName, "CopyAPIName");
164-
registry.register("cognitive-complexity", CognitiveComplexity, "CognitiveComplexity");
164+
registry.register("cognitive-complexity", CognitiveComplexity, "CognitiveComplexity", true);
165165
registry.register("excessive-cyclomatic-complexity", CyclomaticComplexity, "CyclomaticComplexity");
166166
registry.register("dml-in-loop", DMLStatementInLoop, "DMLStatementInLoop");
167167
registry.register("duplicate-dml", DuplicateDMLOperation, "DuplicateDMLOperation");

0 commit comments

Comments
 (0)