aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx
diff options
context:
space:
mode:
authorAmbroise C <ambroise.christea@sonarsource.com>2023-09-11 19:25:35 +0200
committersonartech <sonartech@sonarsource.com>2023-09-12 20:02:41 +0000
commit8d5275ca04be8dbb4b4c7cb0068fe3f1320f1554 (patch)
tree73f1aa91e094c9ec92bc312096619ec6e54c87be /server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx
parentf0e873e18885be912862f5361bd4a77f6f6faac1 (diff)
downloadsonarqube-8d5275ca04be8dbb4b4c7cb0068fe3f1320f1554.tar.gz
sonarqube-8d5275ca04be8dbb4b4c7cb0068fe3f1320f1554.zip
SONAR-20327 Run new version of prettier on all files
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx22
1 files changed, 11 insertions, 11 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx b/server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx
index 820159a466a..fc05f24bcb6 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx
+++ b/server/sonar-web/src/main/js/apps/overview/branches/BranchOverview.tsx
@@ -157,7 +157,7 @@ export default class BranchOverview extends React.PureComponent<Props, State> {
if (this.mounted) {
this.setState({ appLeak: undefined });
}
- }
+ },
);
// We need to load the measures for each project in an application
@@ -176,13 +176,13 @@ export default class BranchOverview extends React.PureComponent<Props, State> {
projectBranchLike,
// Only load metrics that apply to failing QG conditions; we don't
// need the others anyway.
- project.conditions.filter((c) => c.status !== 'OK').map((c) => c.metric)
+ project.conditions.filter((c) => c.status !== 'OK').map((c) => c.metric),
).then(({ measures }) => ({
measures,
project,
projectBranchLike,
}));
- })
+ }),
).then(
(results) => {
if (this.mounted) {
@@ -216,7 +216,7 @@ export default class BranchOverview extends React.PureComponent<Props, State> {
if (this.mounted) {
this.setState({ loadingStatus: false, qgStatuses: undefined });
}
- }
+ },
);
};
@@ -271,7 +271,7 @@ export default class BranchOverview extends React.PureComponent<Props, State> {
if (this.mounted) {
this.setState({ loadingStatus: false, qgStatuses: undefined });
}
- }
+ },
);
};
@@ -285,12 +285,12 @@ export default class BranchOverview extends React.PureComponent<Props, State> {
loadMeasuresAndMeta = (
componentKey: string,
branchLike?: BranchLike,
- metricKeys: string[] = []
+ metricKeys: string[] = [],
) => {
return getMeasuresWithPeriodAndMetrics(
componentKey,
metricKeys.length > 0 ? metricKeys : METRICS,
- getBranchLikeQuery(branchLike)
+ getBranchLikeQuery(branchLike),
).then(({ component: { measures }, metrics, period }) => {
return {
measures: enhanceMeasuresWithMetrics(measures || [], metrics || []),
@@ -305,7 +305,7 @@ export default class BranchOverview extends React.PureComponent<Props, State> {
return Promise.all([this.loadHistoryMeasures(), this.loadAnalyses()]).then(
this.doneLoadingHistory,
- this.doneLoadingHistory
+ this.doneLoadingHistory,
);
};
@@ -335,7 +335,7 @@ export default class BranchOverview extends React.PureComponent<Props, State> {
});
}
},
- () => {}
+ () => {},
);
};
@@ -358,7 +358,7 @@ export default class BranchOverview extends React.PureComponent<Props, State> {
});
}
},
- () => {}
+ () => {},
);
};
@@ -430,7 +430,7 @@ export default class BranchOverview extends React.PureComponent<Props, State> {
loadingStatus === false &&
(measures === undefined ||
measures.find((measure) =>
- ([MetricKey.lines, MetricKey.new_lines] as string[]).includes(measure.metric.key)
+ ([MetricKey.lines, MetricKey.new_lines] as string[]).includes(measure.metric.key),
) === undefined);
return (