How to configure "Architectural constraints should not be violated"

Enterprise Edition v2025.1 (102418)

Java Rule ID = javaarchitecture:S7134

After upgrading from “Enterprise Edition v10.8 (100206)” the javaarchtecture:S7134 rule appeared and indicates it can be used to enforce “Architectural Constraints” and appears to indicate that architectural constraints can be configured somehow, but I can find no documentation on how to make this configuration. This seems like a valuable rule but it is unclear how to set it up.

The screenshot below shows the “How can I fix it?” tab in the rule help. This tab has a documentation section that simply states “Defining architectural constraints for SonarQube” and googling this phrase does not result in any documentation hits.

1 Like

Hi @tdennler,

Thank you for reaching out. The rule is available for use; however, we understand that comprehensive documentation is crucial in ensuring clarity and ease of implementation.
Our team is actively working on finalizing the extensive documentation, which will provide detailed explanations, best practices, and relevant examples to support its practical usage.

We appreciate your patience and’ll share the documentation as soon as it’s ready.
In the meantime, if you have any specific questions or need guidance, please feel free to ask—we’d be happy to assist!

Best,

Irina