Skip to content

Add New Rule - TransformInsteadOfLoop #203

@tomkittlabs

Description

@tomkittlabs

I would like to suggest a new rule to suggest using Transform instead of Loop > Assignment where possible

Current Behaviour:
The scanner does not currently identify the specific pattern where a Loop element immediately leads to an Assignment element that could be replaced by Transform

Proposed Enhancement:
I propose adding a new rule named TransformInsteadOfLoop

  • Description: Detects the specific sequence where a Loop element's path connects directly to an Assignment element.
    -Expected Behaviour: The scanner flags this pattern with a note severity.
  • Justification: While the Loop -> Assignment pattern is valid, it can often be replaced by the Transform element which is on average 10x more performant according to docs
  • Implementation Notes: Rule needs to analyse element connectors to identify the Loop -> Assignment sequence specifically on the iterative path (e.g., checking the nextValueConnector or similar property).

Purpose:
This rule encourages better Flow Performance by highlighting areas where the Transform element might be a more suitable choice than a simple Loop/Assignment combination

Docs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    new ruleA new suggestion for a best practice to be included in the scanner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions