-
Notifications
You must be signed in to change notification settings - Fork 10
Check VariableDeclarationUsageDistance
github-actions[bot] edited this page Nov 22, 2024
·
4 revisions
Distance between a variable declaration and its first usage.
_local a << 10
do_something_unrelated() # distance to a is 1
do_something_unrelated() # distance to a is 2
do_something_unrelated() # distance to a is 3
do_something_unrelated() # distance to a is 4
do_something_unrelated() # distance to a is 5
show(a) # distance to a is 6
Option | Default value | Description |
---|---|---|
variable-declaration-usage-distance.max-distance | 5 | Maximum distance between declaration and usage |
variable-declaration-usage-distance.ignore-constants | true | Ignore declared constants |
Note
This page is generated. Any changes made to this page through the wiki will be lost in the future.