</li>
{{/if}}
- {{#if subCharacteristic}}
- <li class="coding-rules-detail-property coding-rules-subcharacteristic">{{subCharacteristic}}</li>
- {{/if}}
+
<li class="coding-rules-detail-property">{{t 'coding_rules.available_since'}} {{d createdAt}}</li>
</li>
{{/if}}
</ul>
+
+{{#if subCharacteristic}}
+ <ul class="coding-rules-detail-properties">
+ <li class="coding-rules-detail-property">{{subCharacteristic}}</li>
+
+ {{#if debtRemFnType}}
+ <li class="coding-rules-detail-property">
+ <span title="{{t 'coding_rules.remediation_function'}}">
+ {{t 'coding_rules.remediation_function' debtRemFnType}}
+ </span>
+ </li>
+ {{/if}}
+
+ {{#if debtRemFnCoeff}}
+ <li class="coding-rules-detail-property">
+ <span title="{{t 'coding_rules.remediation_function.coeff'}}">
+ {{debtRemFnCoeff}}
+ </span>
+ </li>
+ {{/if}}
+
+ {{#if debtRemFnOffset}}
+ <li class="coding-rules-detail-property">
+ <span title="{{#eq debtRemFnType 'CONSTANT_ISSUE'}}{{t 'coding_rules.remediation_function.constant'}}{{else}}{{t 'coding_rules.remediation_function.offset'}}{{/eq}}">
+ {{debtRemFnOffset}}
+ </span>
+ </li>
+ {{/if}}
+ </ul>
+{{/if}}
lib.changeWorkingDirectory('coding-rules-page-should-show-details');
-casper.test.begin('coding-rules-page-should-show-details', 17, function (test) {
+casper.test.begin('coding-rules-page-should-show-details', 20, function (test) {
casper
.start(lib.buildUrl('coding-rules'), function () {
lib.setDefaultViewport();
test.assertSelectorContains('.coding-rules-detail-properties', 'error-handling');
test.assertSelectorContains('.coding-rules-detail-properties', '2013');
test.assertSelectorContains('.coding-rules-detail-properties', 'SonarQube (Java)');
+ test.assertSelectorContains('.coding-rules-detail-properties', 'Reliability > Exception handling');
+ test.assertSelectorContains('.coding-rules-detail-properties', 'LINEAR');
+ test.assertSelectorContains('.coding-rules-detail-properties', '20min');
test.assertSelectorContains('.coding-rules-detail-description', 'is the superclass of all errors and');
test.assertSelectorContains('.coding-rules-detail-description', 'its subclasses should be caught.');