Skip to content

fix: resolve ~250 SonarQube LOW severity issues#558

Merged
rygel merged 1 commit intodevelopfrom
fix/sonarqube-low-severity
Apr 16, 2026
Merged

fix: resolve ~250 SonarQube LOW severity issues#558
rygel merged 1 commit intodevelopfrom
fix/sonarqube-low-severity

Conversation

@rygel
Copy link
Copy Markdown
Owner

@rygel rygel commented Apr 16, 2026

Summary

Fix ~250 SonarQube LOW severity issues across 53 files in production code (no test file changes).

Changes by category

Rule Count Description
S2325 46 Made methods static where this is not used
S3260 41 Marked private classes as sealed
S6667 27 Passed caught exception to logger in catch blocks
S3267 10 Simplified loops to LINQ (Select, Where, SelectMany)
S6608 4 Replaced .First() with [0] indexing
S1481 2 Removed unused local variables
S1905 2 Removed unnecessary int casts
S1450 2 Converted unused fields to local variables
S6669 2 Renamed logger fields to match convention
S1125 1 Removed unnecessary boolean literal
S1940 1 Used opposite operator (!=)
S3400 1 Replaced constant-returning method with inline const
S101 1 Renamed ZAI class to Zai
S6672 1 Fixed logger to use enclosing type
S7764 1 Preferred globalThis over window in JS

Test plan

  • Build succeeds with 0 errors
  • All 1487 tests pass (1282 + 159 + 46)

- S2325: Make 46 methods static across Infrastructure, Monitor, UI.Slim, Web (55)
- S3260: Mark 41 private classes as sealed in provider DTOs
- S6667: Pass caught exception to logger in 27 catch blocks
- S3267: Simplify 10 loops to LINQ (Select, Where, SelectMany)
- S6608: Replace .First() with [0] indexing (4)
- S1481: Remove unused local variables (2)
- S1905: Remove unnecessary int casts (2)
- S1450: Convert unused fields to local variables (2)
- S1125: Remove unnecessary boolean literal (1)
- S1940: Use opposite operator != instead of !(==) (1)
- S3400: Replace constant-returning method with inline const (1)
- S101: Rename ZAI class to Zai (1)
- S6672: Fix logger to use enclosing type (1)
- S6669: Rename logger field to match convention (2)
- S7764: Prefer globalThis over window in JS (1)
@rygel rygel merged commit 606b002 into develop Apr 16, 2026
1 check passed
@rygel rygel deleted the fix/sonarqube-low-severity branch April 16, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants