Skip to content

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

3.23.0 | Community Release

12 Jun 16:01

Choose a tag to compare

What's new?

  • Minor fixes to pass suppressed element key from advanced rule to rule common

Full Changelog: v3.22.0...v3.23.0

3.22.0 | Community Release

12 Jun 05:42

Choose a tag to compare

What's new?

New rule disabled option. This option will bubble up rules and be intentional on the configurations. Bubbling up rules would also increase visibility of new rules that can be adopted

rules:
  MissingFaultPath:
    disabled: true

Full Changelog: v3.21.0...v3.22.0

3.21.0 | Community Release

12 Jun 02:09

Choose a tag to compare

What's Changed

**Beta** Advanced Rule Configuration

Advanced rules provide granular control by allowing rules to be intentionally disabled at the rule level, ensuring consistent application across all flows. Additionally, the concept of suppressions is introduced, enabling users to "whitelist" specific components. This mechanism allows for exceptions to be defined, offering flexibility in rule enforcement while maintaining overall governance and compliance.

JSON

{
  "rules": {
    "<RuleName>": {
      "path": "local_path_of_your_js_file", // optional: when defined, this configuration will be used for the engine to recognize your custom rule
      "severity": "<User Configured Severity>",
      "expression": "<User Configured Expression which only applies to rules that take in `options`>",
      "disabled": "true", // optional: when true, rule will not be applied to all flows being scanned
      "suppressions": ["<User Configured Suppressions>"] // optional: when defined, takes an array of suppressed elements (not based on name but on specific type)
    }
  }
}

YAML

rules:
  MissingFaultPath: # User Defined Rule configuration
    path: "local_path_of_your_js_file" # Optional: when defined, this configuration will be used for the engine to recognize your rule
    severity: error # Optional: User Defined severity, can be `info`, `warn`, `error`
    expression: ">=58" # Optional: User defined expression, only applies if rule is Configurable=true
    disabled: "true" # Optional: when true, rule will not be applied to all flows being scanned
    suppressions: # Optional: when defined, takes an array of elements to be suppressed, keys can be found on suppressionElements on the rule definition
      - LogACall # Optional: when defined, rule engine will look at suppressionElement defined on the rule to match against this list

Activation

To activate advanced rule set environment variable IS_NEW_SCAN_ENABLED=true prior to running your commands
MacOs:

export IS_NEW_SCAN_ENABLED=true
sf flow scan

Windows

setx IS_NEW_SCAN_ENABLED=true
sf flow scan

Full Changelog: v3.20.0...v3.21.0

v3.19.0

11 Jun 21:50

Choose a tag to compare

Full Changelog: v3.18.0...v3.19.0

3.18.0 | Community Release

11 Jun 16:52

Choose a tag to compare

3.17.0 | Community Release

31 May 02:51

Choose a tag to compare

What's new?

  • fix: parsing issue with custom errors element that's introduced in api version 59

Full Changelog: v3.16.0...v3.17.0

3.16.0 | Community Release

20 May 04:38

Choose a tag to compare

What's new?

Refactor and rewrite Loop Rule for SOQL, DML and Action Call rule

Full Changelog: v3.15.0...v3.16.0

3.15.0 | Community Release

17 May 05:35

Choose a tag to compare

New Rule

Rule (Configuration ID) Description
Action Calls In Loop (ActionCallsInLoop) To prevent exceeding Apex governor limits, it is advisable to consolidate and bulkify your apex calls, utilize a single action call containing a collection variable at the end of the loop.

Full Changelog: v3.14.0...v3.15.0

3.14.0 | Community Release

11 May 05:07

Choose a tag to compare

3.13.0 | Community Release

08 May 05:45

Choose a tag to compare

What's new?

fix: #220

Full Changelog: v3.12.0...v3.13.0