Message-ID: <1110032373.8582.1422610519587.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8581_61524940.1422610519587" ------=_Part_8581_61524940.1422610519587 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: