Skip to content

Releases: Flow-Scanner/lightning-flow-scanner-cli

Upgrade Core 3.10

06 May 16:36

Choose a tag to compare

Release Notes - 3.10

Version 3.10 Improved Error Handling:

  • Implements compiler traversal in the unconnected elemens rule, supporting custom flow elements.
  • Adds error message to the result details in case a flow is scanned unsuccessfully.

https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core/releases/tag/3.10

Upgrade Core 3.9

14 Apr 17:20

Choose a tag to compare

Version 3.9 of the Core Module now includes 2 New Default Rules:

Rule (Configuration ID) Description
Auto Layout (AutoLayout) With Canvas Mode set to Auto-Layout, Elements are spaced, connected, and aligned automatically, keeping your Flow neatly organized thus saving you time.
Process Builder (ProcessBuilder) Salesforce is transitioning away from Workflow Rules and Process Builder in favor of Flow. Ensure you're prepared for this transition by migrating your organization's automation to Flow. Refer to official documentation for more information on the transition process and tools available.

Custom Rules

20 Mar 21:27
fe9464b

Choose a tag to compare

Release Note: Custom Rule Creation

We're excited to announce implement core 2.30 and with it, the ability to create custom rules! With this new feature, users can now define and enforce organization-specific standards and best practices tailored to their unique requirements by leveraging our compiler or creating completely customized typescript functions.

Key Features:

  • Custom Rule Interface: Define custom rules that adhere to the IRuleDefinition interface, specifying properties such as name, label, description, supported types, and more.
  • Flexible Rule Configuration: Configure custom rules alongside default rules using the rules section of the scanner's configurations, allowing for fine-grained control over rule enforcement.
  • Exception Handling: Specify exceptions at the flow, rule, or result level to exclude specific scenarios from rule enforcement, providing flexibility in rule application.

Getting Started with Custom Rule Creation:

  1. Rule Structure: Define a custom rule class following the structure outlined in the Custom Rule Interface section of our documentation.
  2. Implement Execute Method: Implement the execute method within your custom rule class to perform the desired logic for rule enforcement.
  3. Adhere to Interface: Ensure your custom rule class adheres to the IRuleDefinition interface, defining required properties and methods for a rule definition.
  4. Configure Rules: To load custom rules using the Lightning Flow Scanner Core, you can utilize the path attribute within the rules section of your configurations. This attribute allows you to specify the path to your custom rule class.
{ "rules": { "<RuleName>": { "path": "<Path>" } } }

By leveraging the path attribute, you can easily incorporate custom rule definitions into the Lightning Flow Scanner Core, tailoring rule enforcement to your organization's specific requirements.

For more details and examples, refer to our Custom Rule Creation Guide

Display Severity and Issues per Severity Level

16 Mar 12:48

Choose a tag to compare

Thanks to @nvuillam's contribution, we bring to you:

  • Severity in flow errors details
  • Summary of number of issues by severity

Upgrade Core to 2.28

16 Mar 12:50

Choose a tag to compare

Upgrade Core to 2.27

29 Feb 14:27
925b712

Choose a tag to compare

This brings some small improvements:

  • Bugfix for supporting scheduled flows in our compiler by @junners
  • Improves error handling for incorrect rule configurations

Upgrade Core to 2.26

24 Nov 21:49
dfbe287

Choose a tag to compare

  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.

https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core/releases/tag/2.26

Fix wrong exitCode

30 Aug 11:16
0ebd5d3

Choose a tag to compare

What's Changed

  • Fix wrong exitCode when errors are found by @nvuillam in #72

Full Changelog: 2.11...v2.12.0

Fix False positives 'FlowDescription' & 'MissingDescription' rules

06 Aug 22:48

Choose a tag to compare

2.9 Bugfix folder scan & human output

03 Aug 20:14

Choose a tag to compare

some bugs have been fixed in 2.9 regarding including node modules in the scope of the scan and also the issues in the human output