org.sonar.l10n.delphi.rules.community-delphi.SuperfluousSemicolon.html Maven / Gradle / Ivy
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