Skip to content

Releases: Lightning-Flow-Scanner/lightning-flow-scanner-core

Bug Fix: Handling multiple loops in Compiler

16 Mar 13:09
7607c77
Compare
Choose a tag to compare

Handles an issue with the handling of Flows that have multiple loops

Bugfix Scheduled Flows

29 Feb 14:29
797150a
Compare
Choose a tag to compare

Bugfix for supporting scheduled flows in our compiler by @junners
and improving error handling for incorrect rule configuration

DML In Loop / SOQL Query In Loop Improvement

24 Nov 19:42
639088b
Compare
Choose a tag to compare

Release Note: DMLStatementInLoop Rule Enhancements

We're happy to announce significant enhancements to the DMLStatementInLoop rule in this release. These updates aim to boost accuracy in identifying DML statements within loops, including nested structures. Notably, the rule has been divided into two separate components: DMLStatementInLoop and SOQLQueryInLoop.

Changes:

  1. DMLStatementInLoop Rule:

    • The rule has undergone refinement to enhance accuracy in identifying DML statements within loops.
    • The traversal logic has been improved to account for nested loops, ensuring precise detection of DML statements within these structures.
    • To enhance maintainability, the rule has been split into a separate class.
  2. SOQLQueryInLoop Rule:

    • Introducing a new rule, SOQLQueryInLoop, which identifies instances of SOQL queries executed inside loops. This addition promotes best practices and aids in optimizing code for governor limits.
  3. Flow Compiler Class:

    • A new class, the Flow Compiler, has been introduced to elevate the capabilities of our rule-checking process. This addition allows for more sophisticated and uniform analyses of Salesforce flows.

We believe that these changes significantly enhance the functionality and accuracy of the DMLStatementInLoop rule, providing users with a more powerful tool for identifying potential issues related to DML statements and SOQL queries in loops. As always, we remain committed to providing tools that empower Salesforce developers to create high-quality and efficient Flow solutions.

As always, we appreciate your feedback. Feel free to reach out if you have any questions or suggestions.

Thank you for using our product!

improved MissingFaultPath

06 Nov 04:36
f602b91
Compare
Choose a tag to compare

Issue: The "MissingFaultPath" rule previously considered all elements in a flow, which led to inaccurate results.

Resolution: The rule has been updated to exclude any element that is already part of a Fault Path, resulting in more accurate assessments of missing fault handlers.

Version: 2.24

Date:6 november 2023

Impact: This bugfix ensures that elements correctly receive or do not receive fault handling recommendations based on their actual fault path relationships. It enhances the accuracy of the rule's assessments in flows.

dependency upgrades & output improvements

06 Sep 01:42
acaf9b6
Compare
Choose a tag to compare

Some refactoring for readability, package upgrades for security. Furthermore implements a result details class which preprocesses the results and assigns type specific details.

Fix False positives 'FlowDescription' & 'MissingDescription' rules

New Rule: Copy of API Name

02 Aug 15:56
Compare
Choose a tag to compare

Copy of API Name

Having multiple elements called Copy_X_Of_Element will decrease the readability of the Flow. If you copy and paste them, make sure to update the API name of the new copy.

Configuration ID: CopyOf (View source code)

Flow Naming Conventions & API Versions

27 Jul 17:54
Compare
Choose a tag to compare

Introducing two new configurable rules!

  • Old API Version
  • Flow Naming Convention

Old API version

Newer API components may cause older versions of Flows to start behaving incorrectly due to differences in the underlying mechanics. The Api Version has been available as an attribute on the Flow since API v50.0 and it is recommended to limit variation and to update them on a regular basis.

Default Value: >50.0

Configuration example:

APIVersion:
    {
        severity: 'error',
        expression: '===58'
    }

Configuration ID: APIVersion (View source code)


Flow naming conventions

Readability of flow is very important. Agreeing on and following the same naming conventions will ease collaboration.

Default Value: [A-Za-z0-9]+_[A-Za-z0-9]+

Configuration example:

FlowName:
    {
        severity: 'error',
        expression: '[A-Za-z0-9]'
    }

Configuration ID: FlowName (View source code)


Core 2.6

25 Jul 08:03
b8b6796
Compare
Choose a tag to compare

What's Changed

  • Update documentation in README
  • Results now contain severity levels
  • DuplicateDMLOperationsByNavigation renamed and improved