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

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

There is a newer version: 1.12.1
Show newest version

Why is this an issue?

Having unused routines adversely affects code readability, as their presence is confusing. Code that is never used should be removed to keep codebases clean and maintainable.

Exceptions

  • Methods annotated with attributes, as these are often accessed via reflection.
  • Methods with published visibility, as these are often accessed via reflection or used by the Delphi IDE for design-time configuration.
  • Methods marked override.
  • Methods implementing an interface.

How to fix it

Remove the unused method.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy