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