I believe the “Best Practice” recommendation for the maximum number of lines is 100. However, what is the current maximum number of lines allowed and can we assume that the maximum will remain static for the near term?
There is no enforced maximum on action count. The majority of code linting tools set the method length at 25-100 lines which is what leads to the best practices you mention. As with any “language” the longer the method, the less readable and maintainable it is. In multi-developer teams, having a single large logic block leads to more contention and change management concerns.
I agree with Kendra’s comments. Logic block builder will issue a warning at 300 lines indicating you should modularize the logic block. The warning is for reading, scrolling, and maintaining in logic block builder. There is no ‘maximum’ where the logic won’t function at run-time, but 100 lines is the maximum suggestion for readability in logic block builder.
1 Like