aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/issues.ts
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/helpers/issues.ts
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/helpers/issues.ts')
-rw-r--r--server/sonar-web/src/main/js/helpers/issues.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/helpers/issues.ts b/server/sonar-web/src/main/js/helpers/issues.ts
index 7572276d6c4..df9c80dc754 100644
--- a/server/sonar-web/src/main/js/helpers/issues.ts
+++ b/server/sonar-web/src/main/js/helpers/issues.ts
@@ -40,7 +40,7 @@ function injectRelational(
issue: Dict<any>,
source: any[] | undefined,
baseField: string,
- lookupField: string
+ lookupField: string,
) {
const newFields: Dict<any> = {};
const baseValue = issue[baseField];
@@ -102,7 +102,7 @@ const FLOW_ORDER_MAP = {
function splitFlows(
issue: RawIssue,
- components: Component[] = []
+ components: Component[] = [],
): { secondaryLocations: FlowLocation[]; flows: FlowLocation[][]; flowsWithType: Flow[] } {
if (issue.flows?.some((flow) => flow.type !== undefined)) {
const flowsWithType = issue.flows.filter((flow) => flow.type !== undefined) as Flow[];
@@ -122,7 +122,7 @@ function splitFlows(
flow.map((location) => {
const component = components.find((component) => component.key === location.component);
return { ...location, componentName: component && component.name };
- })
+ }),
);
const onlySecondaryLocations = parsedFlows.every((flow) => flow.length === 1);
@@ -140,7 +140,7 @@ function orderLocations(locations: FlowLocation[]) {
return sortBy(
locations,
(location) => location.textRange && location.textRange.startLine,
- (location) => location.textRange && location.textRange.startOffset
+ (location) => location.textRange && location.textRange.startOffset,
);
}
@@ -148,7 +148,7 @@ export function parseIssueFromResponse(
issue: RawIssue,
components?: Component[],
users?: UserBase[],
- rules?: Rule[]
+ rules?: Rule[],
): Issue {
return {
...issue,