org.sonar.l10n.delphi.rules.community-delphi.UnusedGlobalVariable.html Maven / Gradle / Ivy
The newest version!
Why is this an issue?
Having unused global variables adversely affects code readability, as their presence is confusing.
Code that is never used should be removed to keep codebases clean and maintainable.
Note that this rule excludes the form variables automatically generated by the Delphi IDE using
the following heuristic:
- The variable declaration section is the last element in the interface section, and
- There is a single variable declaration in the variable declaration section, and
- The variable's type is a descendant of
TComponent
How to fix it
Remove the unused global variable.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy