Skip to main content
Unnecessary code detection

Detect unused or empty methods, interfaces that are never implemented, and more unnecessary code.

Lorenzo Frattini avatar
Written by Lorenzo Frattini
Updated over a week ago

Rationale

Removing unnecessary code makes your app cleaner, more efficient and easier to understand.

Scope

  • Apex methods that do not contain any code

  • Apex methods that are never invoked, either directly or indirectly

  • Apex interfaces with no concrete implementations

Exclusions

  • This rule will not trigger on Apex methods annotated with @testSetup

Did this answer your question?