blob: cf466543361368a4a6cd33cc5aa760ec0d1c1fd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
define([
'coding-rules/facets/base-facet',
'templates/coding-rules'
], function (BaseFacet) {
return BaseFacet.extend({
template: Templates['coding-rules-severity-facet'],
severities: ['BLOCKER', 'CRITICAL', 'MAJOR', 'MINOR', 'INFO'],
sortValues: function (values) {
var order = this.severities;
return _.sortBy(values, function (v) {
return order.indexOf(v.val);
});
}
});
});
|