org.sonar.l10n.delphi.rules.community-delphi.ConstructorName.html Maven / Gradle / Ivy
Why is this an issue?
Code that follows a consistent naming convention is self-documenting. In Delphi, all constructor
names should be in PascalCase and start with the word "Create".
Using a consistent naming convention makes constructor calls visually distinct, making it
clear when an object is allocated.
This helps in easy diagnosis of memory bugs by reducing the chance of misreading
a constructor as a non-allocating operation (e.g. a class procedure).
How to fix it
Rename the constructor name to follow the convention.
Resources
© 2015 - 2024 Weber Informatics LLC | Privacy Policy