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

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

There is a newer version: 1.12.1
Show newest version

Why is this an issue?

Delphi allows empty statements, which means that stray semicolons can be added in most places. These are unnecessary, confusing, and should be removed.

They are almost always introduced by mistake, such as:

  • Forgetting to add an actual statement
  • Making a typo by doubling an existing semicolon

How to fix it

Remove the stray semicolon:

Result := 123;;
Result := 123;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy