aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/coding-rules
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules')
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/bulk-change-modal-view.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/bulk-change-popup-view.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/controller.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/active-severity-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/available-since-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/base-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/characteristic-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/custom-labels-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/custom-values-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/inheritance-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/key-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/language-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/quality-profile-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/query-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/repository-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/severity-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/status-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/tag-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/facets/template-facet.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/filters-view.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/layout.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/models/rule.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/models/rules.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/models/state.js3
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/rule-filter-view.js1
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rule-creation-view.js4
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rule-view.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rules-view.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/rule/manual-rule-creation-view.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/rule/profile-activation-view.js4
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/rule/rule-description-view.js2
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js126
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/workspace-list-item-view.js2
33 files changed, 64 insertions, 130 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/bulk-change-modal-view.js b/server/sonar-web/src/main/js/apps/coding-rules/bulk-change-modal-view.js
index f8dcd2570a4..d816c21c219 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/bulk-change-modal-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/bulk-change-modal-view.js
@@ -91,5 +91,3 @@ export default ModalFormView.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/bulk-change-popup-view.js b/server/sonar-web/src/main/js/apps/coding-rules/bulk-change-popup-view.js
index 881b84434de..ec2ea523c9e 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/bulk-change-popup-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/bulk-change-popup-view.js
@@ -35,5 +35,3 @@ export default PopupView.extend({
};
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/controller.js b/server/sonar-web/src/main/js/apps/coding-rules/controller.js
index e399ddb9acc..d020701976f 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/controller.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/controller.js
@@ -158,5 +158,3 @@ export default Controller.extend({
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/active-severity-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/active-severity-facet.js
index 35ae3641ba5..2062e292b99 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/active-severity-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/active-severity-facet.js
@@ -41,5 +41,3 @@ export default BaseFacet.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/available-since-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/available-since-facet.js
index 253c636bd8f..f2190fa9bd6 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/available-since-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/available-since-facet.js
@@ -37,5 +37,3 @@ export default BaseFacet.extend({
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/base-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/base-facet.js
index ebdca1169e0..251a688a144 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/base-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/base-facet.js
@@ -5,5 +5,3 @@ export default BaseFacet.extend({
className: 'search-navigator-facet-box',
template: Template
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/characteristic-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/characteristic-facet.js
index 9ab26b33caf..9c7dae3a8ab 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/characteristic-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/characteristic-facet.js
@@ -60,5 +60,3 @@ export default BaseFacet.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/custom-labels-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/custom-labels-facet.js
index 7396208123f..0e722adff01 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/custom-labels-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/custom-labels-facet.js
@@ -23,5 +23,3 @@ export default BaseFacet.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/custom-values-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/custom-values-facet.js
index ba35fe660ed..9b2e01ef70a 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/custom-values-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/custom-values-facet.js
@@ -65,5 +65,3 @@ export default BaseFacet.extend({
this.options.app.state.updateFilter(obj);
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/inheritance-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/inheritance-facet.js
index ecf8ba9dde9..d72f47e4584 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/inheritance-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/inheritance-facet.js
@@ -65,5 +65,3 @@ export default BaseFacet.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/key-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/key-facet.js
index b2854b5028a..87f16198d35 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/key-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/key-facet.js
@@ -19,5 +19,3 @@ export default BaseFacet.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/language-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/language-facet.js
index 258640cbd89..f36935865fb 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/language-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/language-facet.js
@@ -46,5 +46,3 @@ export default CustomValuesFacet.extend({
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/quality-profile-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/quality-profile-facet.js
index c04d56f93ee..24a3cea18b0 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/quality-profile-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/quality-profile-facet.js
@@ -74,5 +74,3 @@ export default BaseFacet.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/query-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/query-facet.js
index 0b1216ca4bd..094907f65ca 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/query-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/query-facet.js
@@ -32,5 +32,3 @@ export default BaseFacet.extend({
this.options.app.state.updateFilter(obj, { force: true });
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/repository-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/repository-facet.js
index 8efc8b46869..a360cf743d9 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/repository-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/repository-facet.js
@@ -50,5 +50,3 @@ export default CustomValuesFacet.extend({
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/severity-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/severity-facet.js
index 9c019f36b95..fabaadda424 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/severity-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/severity-facet.js
@@ -13,5 +13,3 @@ export default BaseFacet.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/status-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/status-facet.js
index 7d2e627f243..23b0e41e089 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/status-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/status-facet.js
@@ -25,5 +25,3 @@ export default BaseFacet.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/tag-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/tag-facet.js
index b54b63ddb1a..a54d3b2e150 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/tag-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/tag-facet.js
@@ -25,5 +25,3 @@ export default CustomValuesFacet.extend({
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/template-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/template-facet.js
index 13c5cd7b405..30d0630dbbd 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/facets/template-facet.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/template-facet.js
@@ -26,5 +26,3 @@ export default BaseFacet.extend({
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/filters-view.js b/server/sonar-web/src/main/js/apps/coding-rules/filters-view.js
index ff902dec733..51359305d94 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/filters-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/filters-view.js
@@ -20,5 +20,3 @@ export default Marionette.ItemView.extend({
return _.extend(this._super(), { canWrite: this.options.app.canWrite });
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/layout.js b/server/sonar-web/src/main/js/apps/coding-rules/layout.js
index ef24f8ce321..662a991fbdc 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/layout.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/layout.js
@@ -38,5 +38,3 @@ export default Marionette.LayoutView.extend({
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/models/rule.js b/server/sonar-web/src/main/js/apps/coding-rules/models/rule.js
index 6cc502192d5..2f6e7c4ecc1 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/models/rule.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/models/rule.js
@@ -26,5 +26,3 @@ export default Backbone.Model.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/models/rules.js b/server/sonar-web/src/main/js/apps/coding-rules/models/rules.js
index 8e293c6ad6e..5e6440d0fa3 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/models/rules.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/models/rules.js
@@ -39,5 +39,3 @@ export default Backbone.Collection.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/models/state.js b/server/sonar-web/src/main/js/apps/coding-rules/models/state.js
index 952bff0d252..47889fe2258 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/models/state.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/models/state.js
@@ -19,6 +19,3 @@ export default State.extend({
}
}
});
-
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule-filter-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule-filter-view.js
index b2dc3619cf9..9a5057edd4e 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/rule-filter-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/rule-filter-view.js
@@ -20,4 +20,3 @@ export default ActionOptionsView.extend({
}
});
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rule-creation-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rule-creation-view.js
index d3e9d49ba6b..ff0da3c7803 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rule-creation-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rule-creation-view.js
@@ -2,7 +2,7 @@ import $ from 'jquery';
import _ from 'underscore';
import ModalFormView from '../../../components/common/modal-form';
import Template from '../templates/rule/coding-rules-custom-rule-creation.hbs';
-import {csvEscape} from '../../../helpers/csv';
+import { csvEscape } from '../../../helpers/csv';
import latinize from '../../../helpers/latinize';
export default ModalFormView.extend({
@@ -187,5 +187,3 @@ export default ModalFormView.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rule-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rule-view.js
index 43f577429a9..6e7002ba587 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rule-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rule-view.js
@@ -40,5 +40,3 @@ export default Marionette.ItemView.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rules-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rules-view.js
index c550708d0aa..0f2cdfb95f2 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rules-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/custom-rules-view.js
@@ -41,5 +41,3 @@ export default Marionette.CompositeView.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/manual-rule-creation-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/manual-rule-creation-view.js
index d5c5dd07fbf..cb0869490d0 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/rule/manual-rule-creation-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/manual-rule-creation-view.js
@@ -114,5 +114,3 @@ export default ModalFormView.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/profile-activation-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/profile-activation-view.js
index e20be1987e7..e861820b8e8 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/rule/profile-activation-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/profile-activation-view.js
@@ -3,7 +3,7 @@ import _ from 'underscore';
import Backbone from 'backbone';
import ModalForm from '../../../components/common/modal-form';
import Template from '../templates/rule/coding-rules-profile-activation.hbs';
-import {csvEscape} from '../../../helpers/csv';
+import { csvEscape } from '../../../helpers/csv';
export default ModalForm.extend({
template: Template,
@@ -139,5 +139,3 @@ export default ModalForm.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-description-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-description-view.js
index f169121e376..c1a2bc458e5 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-description-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-description-view.js
@@ -81,5 +81,3 @@ export default Marionette.ItemView.extend({
});
}
});
-
-
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js
index 5f9f497acba..5bfe09cc90c 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js
@@ -4,77 +4,75 @@ import ProfileView from './rule-profile-view';
import ProfileActivationView from './profile-activation-view';
import Template from '../templates/rule/coding-rules-rule-profiles.hbs';
- export default Marionette.CompositeView.extend({
- template: Template,
- childView: ProfileView,
- childViewContainer: '#coding-rules-detail-quality-profiles',
+export default Marionette.CompositeView.extend({
+ template: Template,
+ childView: ProfileView,
+ childViewContainer: '#coding-rules-detail-quality-profiles',
- childViewOptions: function () {
- return {
- app: this.options.app,
- rule: this.model,
- refreshActives: this.refreshActives.bind(this)
- };
- },
+ childViewOptions: function () {
+ return {
+ app: this.options.app,
+ rule: this.model,
+ refreshActives: this.refreshActives.bind(this)
+ };
+ },
- modelEvents: {
- 'change': 'render'
- },
+ modelEvents: {
+ 'change': 'render'
+ },
- events: {
- 'click #coding-rules-quality-profile-activate': 'activate'
- },
+ events: {
+ 'click #coding-rules-quality-profile-activate': 'activate'
+ },
- onRender: function () {
- var isManual = this.model.get('isManual'),
- qualityProfilesVisible = !isManual;
+ onRender: function () {
+ var isManual = this.model.get('isManual'),
+ qualityProfilesVisible = !isManual;
- if (qualityProfilesVisible) {
- if (this.model.get('isTemplate')) {
- qualityProfilesVisible = this.collection.length > 0;
- }
- else {
- qualityProfilesVisible = (this.options.app.canWrite || this.collection.length > 0);
- }
+ if (qualityProfilesVisible) {
+ if (this.model.get('isTemplate')) {
+ qualityProfilesVisible = this.collection.length > 0;
}
+ else {
+ qualityProfilesVisible = (this.options.app.canWrite || this.collection.length > 0);
+ }
+ }
- this.$el.toggleClass('hidden', !qualityProfilesVisible);
- },
-
- activate: function () {
- var that = this,
- activationView = new ProfileActivationView({
- rule: this.model,
- collection: this.collection,
- app: this.options.app
- });
- activationView.on('profileActivated', function (severity, params, profile) {
- if (that.options.app.state.get('query').qprofile === profile) {
- var activation = {
- severity: severity,
- inherit: 'NONE',
- params: params,
- qProfile: profile
- };
- that.model.set({ activation: activation });
- }
- that.refreshActives();
- });
- activationView.render();
- },
-
- refreshActives: function () {
- var that = this;
- this.options.app.controller.getRuleDetails(this.model).done(function (data) {
- that.collection.reset(that.model.getInactiveProfiles(data.actives, that.options.app.qualityProfiles));
- });
- },
+ this.$el.toggleClass('hidden', !qualityProfilesVisible);
+ },
- serializeData: function () {
- return _.extend(Marionette.ItemView.prototype.serializeData.apply(this, arguments), {
- canWrite: this.options.app.canWrite
- });
- }
- });
+ activate: function () {
+ var that = this,
+ activationView = new ProfileActivationView({
+ rule: this.model,
+ collection: this.collection,
+ app: this.options.app
+ });
+ activationView.on('profileActivated', function (severity, params, profile) {
+ if (that.options.app.state.get('query').qprofile === profile) {
+ var activation = {
+ severity: severity,
+ inherit: 'NONE',
+ params: params,
+ qProfile: profile
+ };
+ that.model.set({ activation: activation });
+ }
+ that.refreshActives();
+ });
+ activationView.render();
+ },
+ refreshActives: function () {
+ var that = this;
+ this.options.app.controller.getRuleDetails(this.model).done(function (data) {
+ that.collection.reset(that.model.getInactiveProfiles(data.actives, that.options.app.qualityProfiles));
+ });
+ },
+ serializeData: function () {
+ return _.extend(Marionette.ItemView.prototype.serializeData.apply(this, arguments), {
+ canWrite: this.options.app.canWrite
+ });
+ }
+});
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/workspace-list-item-view.js b/server/sonar-web/src/main/js/apps/coding-rules/workspace-list-item-view.js
index e4e70351b97..5897372020b 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/workspace-list-item-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/workspace-list-item-view.js
@@ -87,5 +87,3 @@ export default WorkspaceListItemView.extend(RuleFilterMixin).extend({
});
}
});
-
-