org.sonar.l10n.delphi.rules.community-delphi.VariableName.html Maven / Gradle / Ivy
Why is this an issue?
Code that follows a consistent naming convention is self-documenting. In Delphi, all variable
names should be in PascalCase. This rule enforces that variables follow the following conventions:
- Variable names (both local and global) should be in PascalCase
- Global variable names should have a consistent prefix
The required prefix for global variables defaults to G
, although some projects may
use another prefix to separate their global variables from those of other projects.
This can make code spanning several projects more easily understandable.
How to fix it
Rename the variable name to follow the convention.
Resources
© 2015 - 2024 Weber Informatics LLC | Privacy Policy