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