aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/test/json/coding-rules-page-should-show-custom-rules/show.json
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/test/json/coding-rules-page-should-show-custom-rules/show.json')
-rw-r--r--server/sonar-web/src/test/json/coding-rules-page-should-show-custom-rules/show.json37
1 files changed, 37 insertions, 0 deletions
diff --git a/server/sonar-web/src/test/json/coding-rules-page-should-show-custom-rules/show.json b/server/sonar-web/src/test/json/coding-rules-page-should-show-custom-rules/show.json
new file mode 100644
index 00000000000..517c5f6e754
--- /dev/null
+++ b/server/sonar-web/src/test/json/coding-rules-page-should-show-custom-rules/show.json
@@ -0,0 +1,37 @@
+{
+ "rule": {
+ "key": "squid:ArchitecturalConstraint",
+ "repo": "squid",
+ "name": "Architectural constraint",
+ "createdAt": "2013-03-27T09:52:40+0100",
+ "severity": "MAJOR",
+ "status": "READY",
+ "internalKey": "ArchitecturalConstraint",
+ "isTemplate": true,
+ "tags": [],
+ "sysTags": [],
+ "lang": "java",
+ "langName": "Java",
+ "htmlDesc": "<p>A source code comply to an architectural model when it fully\n\tadheres to a set of architectural constraints. A constraint allows to\n\tdeny references between classes by pattern.</p>\n<p>You can for instance use this rule to :</p>\n<ul>\n\t<li>forbid access to **.web.** from **.dao.** classes</li>\n\t<li>forbid access to java.util.Vector, java.util.Hashtable and\n\t\tjava.util.Enumeration from any classes</li>\n\t<li>forbid access to java.sql.** from **.ui.** and **.web.**\n\t\tclasses</li>\n</ul>",
+ "debtChar": "CHANGEABILITY",
+ "debtSubChar": "ARCHITECTURE_CHANGEABILITY",
+ "debtCharName": "Changeability",
+ "debtSubCharName": "Architecture related changeability",
+ "debtOverloaded": true,
+ "debtRemFnType": "LINEAR",
+ "debtRemFnCoeff": "3h",
+ "params": [
+ {
+ "key": "fromClasses",
+ "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
+ "type": "STRING"
+ },
+ {
+ "key": "toClasses",
+ "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
+ "type": "STRING"
+ }
+ ]
+ },
+ "actives": []
+}