I want to define some design rules for a medium-sized project being developed by a team. These rules are not like the ifstatement rule should use parentheses. "They are related to design.
Examples of rules:
- If a class has an association with a JPA class, it should not have any association with a GUI class.
- There
Messagemust be a subclass for each subclass Serializer. - If a class is marked as DTO, it should only have getter and setter methods.
Is there a way to define rules like exemplary and check compile time?
thank
source
share