Skip to content

Fixes to high level issues reported by Sonarcloud#228

Merged
nikomakela merged 9 commits into
mainfrom
HCRC-162-sonar-fixes
Dec 11, 2025
Merged

Fixes to high level issues reported by Sonarcloud#228
nikomakela merged 9 commits into
mainfrom
HCRC-162-sonar-fixes

style(sonar): use read only props

dc0c80e
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Dec 11, 2025 in 39s

Annotations

Check warning on line 407 in src/core/card/Card.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis.window` over `window`.

See more on https://sonarcloud.io/project/issues?id=city-of-helsinki_react-helsinki-headless-cms&issues=AZsNNhTWciaGjp1xhzJv&open=AZsNNhTWciaGjp1xhzJv&pullRequest=228

Check warning on line 388 in src/core/card/Card.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=city-of-helsinki_react-helsinki-headless-cms&issues=AZsNNhTWciaGjp1xhzJu&open=AZsNNhTWciaGjp1xhzJu&pullRequest=228

Check warning on line 33 in src/core/utils/string.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=city-of-helsinki_react-helsinki-headless-cms&issues=AZsNNhRHciaGjp1xhzJp&open=AZsNNhRHciaGjp1xhzJp&pullRequest=228

Check warning on line 219 in src/core/card/Card.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=city-of-helsinki_react-helsinki-headless-cms&issues=AZsNNhTWciaGjp1xhzJt&open=AZsNNhTWciaGjp1xhzJt&pullRequest=228