Manageability
High
Lightning
SF-0057
Omitting the var keyword from a variable definition within a method creates the variable in the global scope, which clutter up the global namespace and make the code slower.
var
45 min
Always use the var keyword to declare local variables.
See the PMD documentation article: GlobalVariable.
Name: *
Email: *
Message: *
THE AI CODE GOVERNANCE BRIEF