Business Rules Without Function

Impact Area

Scalability 

Severity

High

Affected Element

Business rules

Rule number #

SN-0081

Impact #

Server side code without a function cause issues with variable scope. When code is not enclosed in a function, variables and other objects are available and shared to all other server-side scripts.

Remediation #

Ensure that all code is wrapped in a function.

Time to fix #

15 min

Was it helpful ?

THE AI CODE GOVERNANCE BRIEF

Sign up for new updates!