Skip to content

MWPW-00000: Foo - #586

Open
sanrai wants to merge 1 commit into
mainfrom
MWPW-00000-runner-routing-test
Open

MWPW-00000: Foo#586
sanrai wants to merge 1 commit into
mainfrom
MWPW-00000-runner-routing-test

MWPW-00000: Foo

e8e7f2d
Select commit
Loading
Failed to load commit list.
SonarQube-acom-PR-Deco-public / SonarQube Code Analysis failed Aug 20, 2026 in 32s

Quality Gate failed

Failed Quality Gate failed

  • 77.70% Coverage on New Code (is less than 80.00%)
  • 5.40% Duplicated Lines (%) on New Code (is greater than 3.00%)
  • 0.00% Security Hotspots Reviewed on New Code (is less than 100.00%)
  • 359 New Issues (is greater than 0)

Project ID: adobecom_caas_9e89bc21-de4f-46e2-9443-2052ced9386d

View in SonarQube

Annotations

Check failure on line 4 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L4

Specify the rules you want to disable.

Check notice on line 46 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L46

Prefer `globalThis` over `window`.

Check warning on line 49 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L49

Prefer `Number.parseInt` over `parseInt`.

Check notice on line 60 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L60

Prefer `globalThis` over `window`.

Check notice on line 64 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L64

Prefer `globalThis` over `window`.

Check warning on line 162 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L162

Move this array "sort" operation to a separate statement or replace it with "toSorted".

Check failure on line 186 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L186

Refactor this function to reduce its Cognitive Complexity from 23 to the 15 allowed.

Check failure on line 263 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L263

Move this "if" to a new line or add the missing "else".

Check notice on line 263 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L263

Use `.includes()`, rather than `.indexOf()`, when checking for existence.

Check failure on line 265 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L265

Move this "if" to a new line or add the missing "else".

Check notice on line 265 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L265

Use `.includes()`, rather than `.indexOf()`, when checking for existence.

Check failure on line 267 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L267

Move this "if" to a new line or add the missing "else".

Check notice on line 267 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L267

Use `.includes()`, rather than `.indexOf()`, when checking for existence.

Check failure on line 269 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L269

Move this "if" to a new line or add the missing "else".

Check notice on line 269 in react/src/js/components/Consonant/Helpers/eventSort.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/eventSort.js#L269

Use `.includes()`, rather than `.indexOf()`, when checking for existence.

Check warning on line 197 in react/src/js/components/Consonant/Helpers/TestingConstants/general.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/TestingConstants/general.js#L197

Prefer `Number.NaN` over `NaN`.

Check warning on line 303 in react/src/js/components/Consonant/Helpers/TestingConstants/general.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/TestingConstants/general.js#L303

Prefer `Number.NaN` over `NaN`.

Check notice on line 10 in react/src/js/components/Consonant/Helpers/withLinkTransformer.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/withLinkTransformer.js#L10

Handle this exception or don't catch it at all.

Check failure on line 45 in react/src/js/components/Consonant/Helpers/withLinkTransformer.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/withLinkTransformer.js#L45

This function expects 2 arguments, but 3 were provided.

Check warning on line 73 in react/src/js/components/Consonant/Helpers/withLinkTransformer.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/withLinkTransformer.js#L73

Prefer using an optional chain expression instead, as it's more concise and easier to read.

Check warning on line 77 in react/src/js/components/Consonant/Helpers/general.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/general.js#L77

Prefer `Array#flat()` over `Array#reduce()` to flatten an array.

Check notice on line 186 in react/src/js/components/Consonant/Helpers/general.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/general.js#L186

Handle this exception or don't catch it at all.

Check notice on line 286 in react/src/js/components/Consonant/Helpers/general.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/general.js#L286

Prefer `Math.min()` to simplify ternary expressions.

Check warning on line 296 in react/src/js/components/Consonant/Helpers/general.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/general.js#L296

Default parameters should be last.

Check notice on line 302 in react/src/js/components/Consonant/Helpers/general.js

See this annotation in the file changed.

@sonarqube-acom-pr-deco-public sonarqube-acom-pr-deco-public / SonarQube Code Analysis

react/src/js/components/Consonant/Helpers/general.js#L302

Prefer `String#replaceAll()` over `String#replace()`.