aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/actions.js4
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/OverviewApp.js4
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/Timeline.js2
-rw-r--r--server/sonar-web/src/main/js/apps/overview/main/CodeSmells.js12
-rw-r--r--server/sonar-web/src/main/js/apps/overview/main/Coverage.js4
-rw-r--r--server/sonar-web/src/main/js/apps/overview/main/Duplications.js4
-rw-r--r--server/sonar-web/src/main/js/apps/overview/meta/__tests__/MetaLink-test.js2
-rw-r--r--server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateCondition.js6
-rw-r--r--server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateConditions.js10
-rw-r--r--server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/QualityGateCondition-test.js16
10 files changed, 32 insertions, 32 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/actions.js b/server/sonar-web/src/main/js/apps/overview/actions.js
index 562f861bfb0..4647b6ac94c 100644
--- a/server/sonar-web/src/main/js/apps/overview/actions.js
+++ b/server/sonar-web/src/main/js/apps/overview/actions.js
@@ -26,7 +26,7 @@ const PAGE_SIZE = 5;
export const fetchRecentProjectActivity = (project: string) => (dispatch: Function) => (
api.getProjectActivity(project, { pageSize: PAGE_SIZE }).then(
- ({ analyses, paging }) => dispatch(receiveProjectActivity(project, analyses, paging)),
- onFail(dispatch)
+ ({ analyses, paging }) => dispatch(receiveProjectActivity(project, analyses, paging)),
+ onFail(dispatch)
)
);
diff --git a/server/sonar-web/src/main/js/apps/overview/components/OverviewApp.js b/server/sonar-web/src/main/js/apps/overview/components/OverviewApp.js
index 4064b6b49d7..4de489272c2 100644
--- a/server/sonar-web/src/main/js/apps/overview/components/OverviewApp.js
+++ b/server/sonar-web/src/main/js/apps/overview/components/OverviewApp.js
@@ -119,8 +119,8 @@ export default class OverviewApp extends React.Component {
this.setState({ loading: true });
return getMeasuresAndMeta(
- component.key,
- METRICS,
+ component.key,
+ METRICS,
{ additionalFields: 'metrics,periods' }
).then(r => {
if (this.mounted) {
diff --git a/server/sonar-web/src/main/js/apps/overview/components/Timeline.js b/server/sonar-web/src/main/js/apps/overview/components/Timeline.js
index 1ad08824d9b..f1ded836d83 100644
--- a/server/sonar-web/src/main/js/apps/overview/components/Timeline.js
+++ b/server/sonar-web/src/main/js/apps/overview/components/Timeline.js
@@ -27,7 +27,7 @@ const HEIGHT = 80;
export default class Timeline extends React.Component {
static propTypes = {
history: React.PropTypes.arrayOf(
- React.PropTypes.object
+ React.PropTypes.object
).isRequired,
before: React.PropTypes.object,
after: React.PropTypes.object
diff --git a/server/sonar-web/src/main/js/apps/overview/main/CodeSmells.js b/server/sonar-web/src/main/js/apps/overview/main/CodeSmells.js
index 60b0870f3a9..826f71bbf98 100644
--- a/server/sonar-web/src/main/js/apps/overview/main/CodeSmells.js
+++ b/server/sonar-web/src/main/js/apps/overview/main/CodeSmells.js
@@ -30,8 +30,8 @@ import CodeSmellIcon from '../../../components/ui/CodeSmellIcon';
class CodeSmells extends React.Component {
renderHeader () {
return this.props.renderHeader(
- 'Maintainability',
- translate('metric.code_smells.name'));
+ 'Maintainability',
+ translate('metric.code_smells.name'));
}
renderDebt (metric, type) {
@@ -46,7 +46,7 @@ class CodeSmells extends React.Component {
const formattedSnapshotDate = moment(component.snapshotDate).format('LLL');
const tooltip = translateWithParameters('widget.as_calculated_on_x',
- formattedSnapshotDate);
+ formattedSnapshotDate);
return (
<Link to={getComponentIssuesUrl(component.key, params)}>
@@ -69,9 +69,9 @@ class CodeSmells extends React.Component {
renderTimeline (range, displayDate) {
return this.props.renderTimeline(
- 'sqale_index',
- range,
- displayDate ? this.renderTimelineStartDate() : null);
+ 'sqale_index',
+ range,
+ displayDate ? this.renderTimelineStartDate() : null);
}
renderLeak () {
diff --git a/server/sonar-web/src/main/js/apps/overview/main/Coverage.js b/server/sonar-web/src/main/js/apps/overview/main/Coverage.js
index eff433ac792..aa9a34d38e9 100644
--- a/server/sonar-web/src/main/js/apps/overview/main/Coverage.js
+++ b/server/sonar-web/src/main/js/apps/overview/main/Coverage.js
@@ -44,8 +44,8 @@ class Coverage extends React.Component {
renderHeader () {
return this.props.renderHeader(
- 'Coverage',
- translate('metric.coverage.name'));
+ 'Coverage',
+ translate('metric.coverage.name'));
}
renderTimeline (range) {
diff --git a/server/sonar-web/src/main/js/apps/overview/main/Duplications.js b/server/sonar-web/src/main/js/apps/overview/main/Duplications.js
index 9cc786e48ca..cb1d98832e5 100644
--- a/server/sonar-web/src/main/js/apps/overview/main/Duplications.js
+++ b/server/sonar-web/src/main/js/apps/overview/main/Duplications.js
@@ -28,8 +28,8 @@ import DuplicationsRating from '../../../components/ui/DuplicationsRating';
class Duplications extends React.Component {
renderHeader () {
return this.props.renderHeader(
- 'Duplications',
- translate('overview.domain.duplications'));
+ 'Duplications',
+ translate('overview.domain.duplications'));
}
renderTimeline (range) {
diff --git a/server/sonar-web/src/main/js/apps/overview/meta/__tests__/MetaLink-test.js b/server/sonar-web/src/main/js/apps/overview/meta/__tests__/MetaLink-test.js
index 21ff71aee19..f661877b510 100644
--- a/server/sonar-web/src/main/js/apps/overview/meta/__tests__/MetaLink-test.js
+++ b/server/sonar-web/src/main/js/apps/overview/meta/__tests__/MetaLink-test.js
@@ -31,7 +31,7 @@ it('should match snapshot', () => {
};
expect(shallow(
- <MetaLink link={link}/>
+ <MetaLink link={link}/>
)).toMatchSnapshot();
});
diff --git a/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateCondition.js b/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateCondition.js
index 363730eed2e..064c3d2b447 100644
--- a/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateCondition.js
+++ b/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateCondition.js
@@ -100,8 +100,8 @@ export default class QualityGateCondition extends React.Component {
const periodDate = getPeriodDate(period);
const className = classNames(
- 'overview-quality-gate-condition',
- 'overview-quality-gate-condition-' + condition.level.toLowerCase(),
+ 'overview-quality-gate-condition',
+ 'overview-quality-gate-condition-' + condition.level.toLowerCase(),
{ 'overview-quality-gate-condition-leak': period != null }
);
@@ -155,7 +155,7 @@ export default class QualityGateCondition extends React.Component {
translate('quality_gates.operator', condition.op);
return this.wrapWithLink(
- <div className="overview-quality-gate-condition-container">
+ <div className="overview-quality-gate-condition-container">
<div className="overview-quality-gate-condition-value">
<Measure measure={{ value: actual, leak: actual }} metric={metric}/>
</div>
diff --git a/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateConditions.js b/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateConditions.js
index 92c0215d0f6..e689587fcb2 100644
--- a/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateConditions.js
+++ b/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGateConditions.js
@@ -70,8 +70,8 @@ export default class QualityGateConditions extends React.Component {
if (failedConditions.length > 0) {
const metrics = failedConditions.map(condition => condition.metric);
getMeasuresAndMeta(
- component.key,
- metrics,
+ component.key,
+ metrics,
{ additionalFields: 'metrics' }
).then(r => {
if (this.mounted) {
@@ -96,9 +96,9 @@ export default class QualityGateConditions extends React.Component {
}
const sortedConditions = sortBy(
- conditions,
- condition => LEVEL_ORDER.indexOf(condition.level),
- condition => condition.metric.name
+ conditions,
+ condition => LEVEL_ORDER.indexOf(condition.level),
+ condition => condition.metric.name
);
return (
diff --git a/server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/QualityGateCondition-test.js b/server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/QualityGateCondition-test.js
index 8a854c3b03f..6b9323eafcc 100644
--- a/server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/QualityGateCondition-test.js
+++ b/server/sonar-web/src/main/js/apps/overview/qualityGate/__tests__/QualityGateCondition-test.js
@@ -54,7 +54,7 @@ it('open_issues', () => {
op: 'GT'
};
expect(shallow(
- <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+ <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
)).toMatchSnapshot();
});
@@ -75,48 +75,48 @@ it('new_open_issues', () => {
op: 'GT'
};
expect(shallow(
- <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+ <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
)).toMatchSnapshot();
});
it('reliability_rating', () => {
const condition = mockRatingCondition('reliability_rating');
expect(shallow(
- <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+ <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
)).toMatchSnapshot();
});
it('security_rating', () => {
const condition = mockRatingCondition('security_rating');
expect(shallow(
- <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+ <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
)).toMatchSnapshot();
});
it('sqale_rating', () => {
const condition = mockRatingCondition('sqale_rating');
expect(shallow(
- <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+ <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
)).toMatchSnapshot();
});
it('new_reliability_rating', () => {
const condition = mockRatingCondition('new_reliability_rating');
expect(shallow(
- <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+ <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
)).toMatchSnapshot();
});
it('new_security_rating', () => {
const condition = mockRatingCondition('new_security_rating');
expect(shallow(
- <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+ <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
)).toMatchSnapshot();
});
it('new_sqale_rating', () => {
const condition = mockRatingCondition('new_sqale_rating');
expect(shallow(
- <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
+ <QualityGateCondition component={{ key: 'abcd-key' }} periods={[]} condition={condition}/>
)).toMatchSnapshot();
});