Minimize the scope of local variables
es.uniovi.reflection.analyses.bloch.8.45
This rule detects both initialized and non-initialized local variable declarations which are not used in the following statement of the program. The rule recommends moving these declarations just before the statements in which they are used for the first time. Variables declared as try-resources, catch parameters, for-each or traditional for initializations are not considered. Also, when the first use of the variable is inside an inner scope, the recommendation will be to move it just before if the variable is only used in that inner scope or else move it just before entering the inner scope. Finally, we also allow some statements between the declaration and its first use as long as these statements are declarations of other variables first used in the very same statement.