Class should implement interface
This is a proposal for a new configurable rule. This rule would work like the keywordmatch rule that allows you to add extra rules through configuration.
The rule checks that if a class inherits from a specified base class that it also implements a second specified interface. It should also be possible to specifiy that if a class implements a certain interface it should also implement a second .
Sample Use case : In April 2017 an optional interface was added to the consultingwerk frame work, we require all our business entities to implement that new interface . We could use this rule to flag business entity classes that do not implement the interface. https://documentation.consultingwerkcloud.com/display/SCL/BY-REFERENCE+Access+to+Business+Entity+FetchData