Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Check: Unused Abstractions

Madeline Kahn edited this page Mar 11, 2024 · 3 revisions
  • Name: "unusedAbstractions"
  • Default: Enabled

Description

For a set of classes, the Check iterates through each class and checks if the class is abstract or an interface. If the class is abstract, it iterates through every class except itself and searches for classes that extend the abstraction class. If the class is an interface, it iterates through every class except itself and searches for classes that implement the interface. If no classes are found for either check, the abstraction is unused, and it is added to a list.

The Check creates a message for each class that is unused and returns the set of messages.

Clone this wiki locally