Skip to content

refactor(sonar): reduce NotificationList cognitive complexity (typescript:S3776) - #3372

Merged
setchy merged 2 commits into
mainfrom
sonar/S3776
Oct 4, 2026
Merged

setchy merged 2 commits into
mainfrom
sonar/S3776

Conversation

@setchy

@setchy setchy commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

SonarCloud: typescript:S3776 (filtered issues)

Resolves Sonar rule typescript:S3776 — Cognitive Complexity of functions should not be too high (1 issue).

NotificationList.tsx: split the items useMemo (complexity 21 → limit 15) into module-level buildAccountItems / buildRepositoryItems helpers plus a shared BuildItemsContext. Flattening logic and ordering are unchanged.

Lint, tsc, and the full test suite pass.

@github-actions github-actions Bot added the refactor Refactoring of existing feature label Oct 3, 2026
@setchy setchy changed the title refactor(sonar): reduce NotificationList cognitive complexity (S3776) refactor(sonar): reduce NotificationList cognitive complexity (typescript:S3776) Oct 3, 2026
@sonarqubecloud

sonarqubecloud Bot commented Oct 4, 2026

Copy link
Copy Markdown

@setchy
setchy marked this pull request as ready for review October 4, 2026 02:05
@setchy
setchy requested a review from afonsojramos as a code owner October 4, 2026 02:05
@setchy
setchy merged commit 2d1a4b5 into main Oct 4, 2026
23 checks passed
@setchy
setchy deleted the sonar/S3776 branch October 4, 2026 11:18
@github-actions github-actions Bot added this to the Release 7.9.1 milestone Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactoring of existing feature

Development

Successfully merging this pull request may close these issues.

1 participant