org.sonar.l10n.delphi.rules.community-delphi.GroupedVariableDeclaration.html Maven / Gradle / Ivy
The newest version!
Why is this an issue?
Multiple variables should not be declared on a single line. This affects readability, is less
convenient to change for version control purposes, and can be error-prone to modify.
How to fix it
Separate the grouped variables into separate lines.
procedure MyProc;
var
MyName: string;
MyId, MyAge: Integer;
begin
// ...
end;
procedure MyProc;
var
MyName: string;
MyId: Integer;
MyAge: Integer;
begin
// ...
end;
Resources
© 2015 - 2024 Weber Informatics LLC | Privacy Policy