Skip to content

refactor(server): reduce Sonar complexity - #27

Merged
aksOps merged 18 commits into
mainfrom
fix/sonar-g005-server
Aug 1, 2026
Merged

refactor(server): reduce Sonar complexity#27
aksOps merged 18 commits into
mainfrom
fix/sonar-g005-server

Conversation

@aksOps

@aksOps aksOps commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add deterministic regression coverage for board JSON PUT CAS and forge/AI preview contracts
  • replace 12 duplicated server literals with byte-identical constants
  • reduce cognitive complexity in 10 production functions across board handlers, AI coercion, and forge import/integration paths
  • add focused error-path tests required by the 95% new-code coverage gate
  • preserve HTTP, revision, idempotency, token isolation, pagination, provenance, and current all-invalid preview behavior

Verification

  • 418 server tests passed; 418 server race tests passed
  • GitHub Actions full Go race, vet, formatting, frontend coverage, Go coverage, and build gates passed
  • Go coverage: 97.8% total; server package 98.3%
  • 905 frontend tests passed; build transformed 197 modules
  • staticcheck, gopls, complexity, duplication, parameter-count, and diff checks passed
  • all 18 commits have valid ED25519 signatures
  • independent lane, coverage, and integrated reviews: APPROVE

Sonar

  • quality gate: OK at exact head 13a0dfffa773aa8bac326b755a2323f8bd48019e
  • open PR issues: 0
  • new coverage: 99.3%
  • new duplicated lines: 0.0%
  • resolves 12 go:S1192 and 10 go:S3776 production findings

@sonarqubecloud

sonarqubecloud Bot commented Aug 1, 2026

Copy link
Copy Markdown

@aksOps
aksOps merged commit a735f9d into main Aug 1, 2026
9 checks passed
@aksOps
aksOps deleted the fix/sonar-g005-server branch August 1, 2026 22:33
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.

1 participant