Repository navigation
Fix suggestions in violation messages: is there interest in a hook for this upstream? #1781
Unanswered
omphile-matheolane
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In Modulith Rules (https://github.com/modular-monolith/modular-monolith-rules), built on ArchUnit, every violation message ends with a concrete fix, for example which api package to expose a service in. We do it by wrapping the condition and composing the message, which works but means the suggestion lives outside ArchUnit's own reporting.
Is there a cleaner extension point for attaching a remediation hint to a
ConditionEvent, or a plan for one? If not, would a small proposal be of interest? I am happy to write it up with the message formats we settled on after a few rounds of teams actually reading them. Also, thank you for 1.5.0; the library moved to it this week without any change on our side.All reactions