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

There is a newer version: 1.12.1
Show 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