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