Inline Scripts should not contain many lines of code
Impact area
Manageability
Severity
medium
high
Affected element
Inline Script
Rule ID
SN-INLINE-SCRIPT-MAX-LINES-CODE
Impact
Inline scripts should be used to set and modify input values during the configuration of an action or flow. They are typically used to modify input values that require small format conversions, data transformations, or math operations. The presence of many lines of code in an inline script indicates that it is being used to implement complex logic which would be more appropriate for a Business Rule or Script include. The rule is configured to trigger for a default value of 10 lines of code, but this can be modified to suit your development standards.
Remediation
For more complex tasks, it is advisable to use Business Rules or Script Includes
Time to fix
40 min