Scope minimization helps developers avoid common programming errors, improves code readability by connecting the declaration and actual use of a variable, and improves maintainability because unused variables are more easily detected and removed. It also prevents violations of DCL51-JG. Do not shadow or obscure identifiers in subscopes.
Noncompliant Code Example
...