All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.delphi.rules.community-delphi.ConstructorName.html Maven / Gradle / Ivy

There is a newer version: 1.12.1
Show newest version

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