Hi,
I realized that on violations a priority is logged:
java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'xxx.' was violated (x times)
MEDIUM is the default, but I do have rules i would like to mark with a different priority.
I was expecting it to be as easy as:
classes().should(...).as("...").priority(Priority.HIGH);
but there is no way to change the priority in ArchRule.
The only way i found was to use ArchRule.Factory.create(...) which far to difficult.
The docs do not mention the priority at all.
any help greatly appreciated.
Hi,
I realized that on violations a priority is logged:
MEDIUM is the default, but I do have rules i would like to mark with a different priority.
I was expecting it to be as easy as:
but there is no way to change the priority in ArchRule.
The only way i found was to use
ArchRule.Factory.create(...)which far to difficult.The docs do not mention the priority at all.
any help greatly appreciated.