aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/coding-rules/app.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-02-22 14:24:55 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-02-22 14:47:02 +0100
commit2b8b8be83e310e386db0953fdb473bb3669d5e55 (patch)
tree1a5a7740f854897bbcfcf5ec822909e2f5895ab0 /server/sonar-web/src/main/js/apps/coding-rules/app.js
parentcabc34bfff261502a91745b2013ab65d7d8d84cb (diff)
downloadsonarqube-2b8b8be83e310e386db0953fdb473bb3669d5e55.tar.gz
sonarqube-2b8b8be83e310e386db0953fdb473bb3669d5e55.zip
SONAR-7377 Remove SQALE characteristics from UI
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules/app.js')
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/app.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/app.js b/server/sonar-web/src/main/js/apps/coding-rules/app.js
index 5bca4881b0b..a5f63248c28 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/app.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/app.js
@@ -86,16 +86,6 @@ App.manualRepository = function () {
};
};
-App.getSubCharacteristicName = function (key) {
- if (key != null) {
- const ch = _.findWhere(App.characteristics, { key });
- const parent = _.findWhere(App.characteristics, { key: ch.parent });
- return [parent.name, ch.name].join(' > ');
- } else {
- return null;
- }
-};
-
const appXHR = $.get('/api/rules/app').done(function (r) {
App.canWrite = r.canWrite;
App.qualityProfiles = _.sortBy(r.qualityprofiles, ['name', 'lang']);
@@ -108,9 +98,6 @@ const appXHR = $.get('/api/rules/app').done(function (r) {
App.repositories = r.repositories;
App.repositories.push(App.manualRepository());
App.statuses = r.statuses;
- App.characteristics = r.characteristics.map(function (item, index) {
- return _.extend(item, { index });
- });
});
App.on('start', function (options) {