@flow-scanner/lightning-flow-scanner-core 6.11.1 β 6.11.3
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 +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,7 +104,7 @@ _[InactiveFlow](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main
|
|
|
104
104
|
_[MissingFaultPath](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/MissingFaultPath.ts)_ β A flow may fail to execute an operation as intended. By default, the flow displays an error to the user and emails the creator. Customize this behavior by incorporating a Fault Path.
|
|
105
105
|
**Severity:** π‘ *Warning*
|
|
106
106
|
|
|
107
|
-
### Missing Filter Record Trigger
|
|
107
|
+
### Missing Filter Record Trigger 
|
|
108
108
|
_[MissingFilterRecordTrigger](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/MissingFilterRecordTrigger.ts)_ β Record-triggered flows that lack filters on changed fields or entry conditions can lead to unnecessary executions on every record change. This may degrade system performance, hit governor limits faster, and increase resource consumption in high-volume orgs.
|
|
109
109
|
**Severity:** π‘ *Warning*
|
|
110
110
|
|
|
@@ -112,7 +112,7 @@ _[MissingFilterRecordTrigger](https://github.com/Flow-Scanner/lightning-flow-sca
|
|
|
112
112
|
_[FlowDescription](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/FlowDescription.ts)_ β Descriptions play a vital role in documentation. It is highly recommended to include details about where a flow is used and its intended purpose.
|
|
113
113
|
**Severity:** π΄ *Error*
|
|
114
114
|
|
|
115
|
-
### Missing Metadata Description
|
|
115
|
+
### Missing Metadata Description 
|
|
116
116
|
_[MissingMetadataDescription](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/MissingMetadataDescription.ts)_ β Flags Flow elements (Get Records, Assignments, Decisions, Actions, etc.) and metadata components (Variables, Formulas, Constants, Text Templates) that lack a description. Adding concise descriptions greatly improves readability, maintainability, and helps AI tools understand your automation intent.
|
|
117
117
|
**Severity:** π΄ *Error*
|
|
118
118
|
|
|
@@ -124,7 +124,7 @@ _[MissingNullHandler](https://github.com/Flow-Scanner/lightning-flow-scanner/blo
|
|
|
124
124
|
_[ProcessBuilder](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/ProcessBuilder.ts)_ β Salesforce is transitioning away from Workflow Rules and Process Builder in favor of Flow. Begin migrating your organizationβs automation to Flow.
|
|
125
125
|
**Severity:** π‘ *Warning*
|
|
126
126
|
|
|
127
|
-
### Record ID as String
|
|
127
|
+
### Record ID as String 
|
|
128
128
|
_[RecordIdAsString](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/RecordIdAsString.ts)_ β Detects flows using a String variable named `recordId` as input when they could receive the entire record object instead. Since recent Salesforce releases, record pages and quick actions can pass the complete record, eliminating the need for an additional Get Records query and improving performance.
|
|
129
129
|
**Severity:** π΅ *Note*
|
|
130
130
|
|
|
@@ -140,7 +140,7 @@ _[SameRecordFieldUpdates](https://github.com/Flow-Scanner/lightning-flow-scanner
|
|
|
140
140
|
_[SOQLQueryInLoop](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/SOQLQueryInLoop.ts)_ β To prevent exceeding Apex governor limits, consolidate all SOQL queries at the end of the flow.
|
|
141
141
|
**Severity:** π΄ *Error*
|
|
142
142
|
|
|
143
|
-
### Transform Instead of Loop
|
|
143
|
+
### Transform Instead of Loop 
|
|
144
144
|
_[TransformInsteadOfLoop](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/TransformInsteadOfLoop.ts)_ β Detects Loop elements that directly connect to Assignment elements. Transform elements handle collection manipulation in bulk operations, providing significant performance improvements over iterative loop-assignment patterns.
|
|
145
145
|
**Severity:** π΅ *Note*
|
|
146
146
|
|
|
@@ -293,7 +293,7 @@ By default, Lightning Flow Scanner runs **all** default rules and merges any cus
|
|
|
293
293
|
|----------------------------------------------------------------|-----------------------------------------------|---------------------------------------------------------------------------------------------------------|
|
|
294
294
|
| **[Salesforce CLI Plugin](https://www.npmjs.com/package/lightning-flow-scanner)** | Local development, scratch orgs, CI/CD | `sf plugins install lightning-flow-scanner` |
|
|
295
295
|
| **[VS Code Extension](https://open-vsx.org/extension/ForceConfigControl/lightning-flow-scanner-vsx)** | Real-time scanning inside VS Code | `code --install-extension ForceConfigControl.lightning-flow-scanner-vsx` |
|
|
296
|
-
| **[Salesforce App (Managed Package)](https://github.com/Flow-Scanner/lightning-flow-scanner-app)** | Run scans directly inside a Salesforce org | `sf package install --package
|
|
296
|
+
| **[Salesforce App (Managed Package)](https://github.com/Flow-Scanner/lightning-flow-scanner-app)** | Run scans directly inside a Salesforce org | `sf package install --package 04tgK0000008CLlQAM` |
|
|
297
297
|
| **[GitHub Action](https://github.com/marketplace/actions/lightning-flow-scan)** | Native PR checks | `uses: Flow-Scanner/lightning-flow-scanner@action-v2.6.0` |
|
|
298
298
|
| **[Core Library](https://www.npmjs.com/package/@flow-scanner/lightning-flow-scanner-core)** (Node.js + Browser) | Custom tools, scripts, extensions, web apps | `npm install -g @flow-scanner/lightning-flow-scanner-core` |
|
|
299
299
|
|
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.11.
|
|
4
|
+
"version": "6.11.3",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|