Inline Scripts should not contain many lines of code

< 1 min read

Impact Area

Manageability

Severity

Medium

Affected Element

Inline Script

Rule number

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

Updated on March 21, 2025
Table of contents
Was it helpful ?