+
-
+
@@ -166,6 +194,11 @@
return $scope.levels[lint.level];
};
+ $scope.groups = {};
+ $scope.byGroups = function (lint) {
+ return $scope.groups[lint.group];
+ };
+
// Get data
$scope.open = {};
$scope.loading = true;
@@ -181,6 +214,12 @@
$scope.data = data;
$scope.loading = false;
+ // Initialize lint groups (the same structure is also used to enable filtering)
+ $scope.groups = data.reduce(function (result, val) {
+ result[val.group] = true;
+ return result;
+ }, {});
+
scrollToLintByURL($scope);
})
.error(function (data) {