Skip to content

Feature: Custom RulesΒ #37

@SFDX-Sam

Description

@SFDX-Sam

Problem:

We have internal rules around flow naming conventions - e.g: all record triggered flows must contain context and object:

"Account - Before Save - Update Account Name"

While we can currently pass a custom regex expression into the "FlowName" rule in the config file, there is no way to control the output of a failure, currently we get a generic message.

Solution:

Add a "description" option for rules like the following, to allow us to override the default description defined in the RuleInfo file.

    {
      "rules": {
        "FlowName" : {
          "severity":"error",
          "expression": "custom regex here",
          "description": "You flow must match the format Object - Context - Action, see help article at https://example.com"
        }
      }
    }

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpriorityHas High Priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions