Skip to content

refactor(sonar): mark constructor-only fields readonly (typescript:S2933) - #218

Merged
setchy merged 3 commits into
mainfrom
fix/sonar/typescript-S2933
Oct 7, 2026
Merged

setchy merged 3 commits into
mainfrom
fix/sonar/typescript-S2933

Conversation

@setchy

@setchy setchy commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Summary

_app and _options in src/Menubar.ts are assigned only in the constructor and never reassigned (only their properties mutate via setOption etc.). They are now readonly.

Findings

SonarQube rule typescript:S2933 flags class members that are only assigned
in the constructor. _app and _options are set once in the constructor and
never reassigned, so they are now readonly.
@setchy setchy changed the title fix(menubar): address SonarQube typescript:S2933 finding refactor(sonar): mark constructor-only fields readonly (typescript:S2933) Oct 3, 2026
@setchy setchy closed this Oct 3, 2026
@setchy setchy reopened this 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 10:46
@setchy
setchy requested a review from afonsojramos as a code owner October 4, 2026 10:46
@setchy
setchy merged commit 4a5d6ab into main Oct 7, 2026
30 checks passed
@setchy
setchy deleted the fix/sonar/typescript-S2933 branch October 7, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant