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

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

The newest version!

Why is this an issue?

Having consecutive var sections is useless and negatively impacts readability. Combining the sections into one larger section is more concise and easier to understand.

This rule also picks up consecutive threadvar sections.

How to fix it

Combine the var or threadvar sections together:

var
  Foo: Integer;
  Bar: string;
var
  Baz: Double;
var
  Foo: Integer;
  Bar: string;
  Baz: Double;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy