kemitix-checkstyle-ruleset/builder/src/main/resources/rules/VariableDeclarationUsageDistance.md

293 B

Checks that a variable declaration and its first usage are not more than 3 lines. Blocks of initialisation methods don't count toward this total.

See the official Checkstyle documentation for examples.