Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule to check maximum components in a Flow/Subflow #154

Closed
dileepkumarv-avio opened this issue Aug 17, 2023 · 1 comment · Fixed by #156
Closed

Rule to check maximum components in a Flow/Subflow #154

dileepkumarv-avio opened this issue Aug 17, 2023 · 1 comment · Fixed by #156
Assignees
Labels
enhancement New feature or request review

Comments

@dileepkumarv-avio
Copy link
Contributor

It is recommended that when creating flows and sub-flows in Mulesoft, they follow the Single Responsibility Principle to observe good performance, reliability practices, and readability.

The linter should check maximum allowed components in Flow/Subflow, and maximum component in the flow/sub-flow must be configurable in the rule.

@dileepkumarv-avio
Copy link
Contributor Author

dileepkumarv-avio commented Aug 18, 2023

To implement this rule, we will do the following:

  1. Find all the flows/sub-flows in the mule application.
  2. Check for count for child components in the flow/sub-flow, this should not exceed the maxCount configuration passed in the linter rule.
    Provided below rule definition for this rule:
FLOW_SUBFLOW_COMPONENT_COUNT
{
     maxCount = 20
}

maxCount variable will be set to default 20, when not passed in the rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request review
Projects
None yet
1 participant