Message-ID: <1562056343.405.1425228442837.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_404_1408664353.1425228442837" ------=_Part_404_1408664353.1425228442837 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Source code complies to an architectural model when it fully adheres to = a set of architectural constraints. Setting an architectural constraint all= ows you to set patterns to flag forbidden references between classes.
Here are some examples of patterns:
java.util.Enumerationfrom any class
*.ui.*and <= code>**.web.* classes
The Architectural constraint template, provided by the Sonar rule engine, allows you to define as many architectural constra= int rules as desired:
When creating a custom rule based on this architectural rule= template, you must specify the access constraints:
Your newly created rule can now be used and activated in any d= esired quality profile: