Skip to content

fix: address all must-fix SonarQube findings across 25 files#2982

Merged
crivetimihai merged 1 commit intomainfrom
sonar-findings-part-2
Feb 16, 2026
Merged

fix: address all must-fix SonarQube findings across 25 files#2982
crivetimihai merged 1 commit intomainfrom
sonar-findings-part-2

Conversation

@crivetimihai
Copy link
Copy Markdown
Member

Summary

  • Fix all verified must-fix SonarQube findings from the 2026-02-16 scan
  • Impact: 1,612 → 1,592 issues (−20), 66 → 48 hotspots (−18)
  • 25 files changed, 58 insertions, 84 deletions

Changes by rule

Rule Severity Fix Files
S7502 BUG Store asyncio task refs to prevent GC resource_cache, token_catalog_service, email_auth_service
S5655 CRITICAL Replace SimpleNamespace with SSOProviderContext dataclass sso_service
S5886 MAJOR Return types → Optional where None is returned gateway_service, services_auth
S5890 MAJOR Add missing Optional for None defaults cedar/schema, opa/schema
S3923 BUG Remove dead if/else (both branches identical) cache, translate
S3457 MAJOR Fix logger format string (comma → %s) validate_signature
S1871 MAJOR Merge duplicate branches toon, schemas
S1854 MAJOR Remove dead stores for current_admin_origin sso_service
S5247 HOTSPOT Remove 16 autoescape-false blocks + 2 |safe patterns admin.html, 11 partial templates

Closes #2981

- S7502: store asyncio task references to prevent GC (resource_cache,
  token_catalog_service, email_auth_service)
- S5655: replace SimpleNamespace with SSOProviderContext dataclass
  (sso_service)
- S5886: fix return type lies with Optional (gateway_service,
  services_auth)
- S5890: add missing Optional for None defaults (cedar/opa schemas)
- S3923: remove dead if/else branches (cache, translate)
- S3457: fix logger format string (validate_signature)
- S1871: merge duplicate branches (toon, schemas)
- S1854: remove dead stores for current_admin_origin (sso_service)
- S5247: remove 16 autoescape-false blocks, replace 2 |safe patterns
  with CSS word-spacing (admin.html, 11 partial templates)

Closes #2981

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
@crivetimihai crivetimihai self-assigned this Feb 16, 2026
@crivetimihai crivetimihai added the sonar SonarQube code quality findings label Feb 16, 2026
@crivetimihai crivetimihai added this to the Release 1.0.0-RC1 milestone Feb 16, 2026
@crivetimihai crivetimihai merged commit 8586985 into main Feb 16, 2026
54 checks passed
@crivetimihai crivetimihai deleted the sonar-findings-part-2 branch February 16, 2026 22:37
vishu-bh pushed a commit that referenced this pull request Feb 18, 2026
- S7502: store asyncio task references to prevent GC (resource_cache,
  token_catalog_service, email_auth_service)
- S5655: replace SimpleNamespace with SSOProviderContext dataclass
  (sso_service)
- S5886: fix return type lies with Optional (gateway_service,
  services_auth)
- S5890: add missing Optional for None defaults (cedar/opa schemas)
- S3923: remove dead if/else branches (cache, translate)
- S3457: fix logger format string (validate_signature)
- S1871: merge duplicate branches (toon, schemas)
- S1854: remove dead stores for current_admin_origin (sso_service)
- S5247: remove 16 autoescape-false blocks, replace 2 |safe patterns
  with CSS word-spacing (admin.html, 11 partial templates)

Closes #2981

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Signed-off-by: Vishu Bhatnagar <vishu.bhatnagar@ibm.com>
cafalchio pushed a commit that referenced this pull request Feb 26, 2026
- S7502: store asyncio task references to prevent GC (resource_cache,
  token_catalog_service, email_auth_service)
- S5655: replace SimpleNamespace with SSOProviderContext dataclass
  (sso_service)
- S5886: fix return type lies with Optional (gateway_service,
  services_auth)
- S5890: add missing Optional for None defaults (cedar/opa schemas)
- S3923: remove dead if/else branches (cache, translate)
- S3457: fix logger format string (validate_signature)
- S1871: merge duplicate branches (toon, schemas)
- S1854: remove dead stores for current_admin_origin (sso_service)
- S5247: remove 16 autoescape-false blocks, replace 2 |safe patterns
  with CSS word-spacing (admin.html, 11 partial templates)

Closes #2981

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sonar SonarQube code quality findings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CHORE][SONAR]: Fix all must-fix SonarQube findings - type safety, async tasks, dead code

1 participant