Message-ID: <213202418.3163.1429418812128.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3162_1890544490.1429418812127" ------=_Part_3162_1890544490.1429418812127 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: