Repository navigation
Conversation
Split computeBacklogBurndown, syncQuests, parseXmlRpcValue and summarizeErrors into smaller helpers to bring cognitive complexity under the limit. No behaviour change. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RP6NCSAVaLrdRATuEuUw8y
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The "Milestone is set" check fails because this PR has no milestone. That's a repo-management choice I can't make, so a maintainer needs to assign one; the check should then pass on re-run. No code change is needed for it. The Codex review failure is a usage-limit error on its side, not a finding in this PR. Generated by Claude Code |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
CI failed: The 'Milestone is set' CI job failed because the pull request has no milestone assigned, a configuration issue. The analyzer marked this as unrelated to the refactor changes, so no change-related failures were identified.OverviewThe 'Milestone is set' CI job failed because the pull request has no milestone assigned, a configuration issue. The analyzer marked this as unrelated to the refactor changes, so no change-related failures were identified. FailuresMilestone is set job fails: PR has no milestone assigned (unrelated to change)
Summary
Code Review ✅ Approved 🟢 Low riskHelper extraction in four server/shared modules preserves the shown calculations, parsing, and quest updates, limiting impact to internal structure without interface changes. Refactors high-complexity functions flagged by SonarCloud (S3776) in VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Approved For more verification details, comment Tip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
📊 Automated PR Analysis
SummaryRefactors five SonarCloud-flagged high-complexity functions across diagnostics, xmlrpc parsing, quest-service, and backlog-burndown modules by extracting smaller helper functions, with no intended behavior change. The PR explicitly defers larger refactors of ImportStrategies.ts and UI component files to future PRs. Review Checklist
Analyzed automatically by wshm · This is an automated analysis, not a human review. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Closing as superseded by #1446. This branch conflicts with Generated by Claude Code |



Summary
Fixes 5 of the 10 most severe open SonarCloud issues on
main(all CRITICAL,typescript:S3776cognitive complexity), by extracting helpers with no behaviour change:shared/backlog-burndown.ts(lines 87 and 152):computeBacklogBurndownsplit into history, span and projection helpers.server/quest-service.ts:syncQuestsloop body moved intosettleQuest.server/downloaders/xmlrpc.ts:parseXmlRpcValuesplit into scalar, array and struct parsers.server/diagnostics.ts:summarizeErrorssplit intoparseLogLineanderrorFieldMessage.Not fixed (remaining from the top 10)
server/services/ImportStrategies.tslines 346, 443, 742: larger refactors of file-transfer logic, left for a dedicated PR.client/src/components/BacklogBurndown.tsxandPlayTimeStats.tsx: UI files, which need visual evidence under the repo rules.Testing
npx tsc --noEmitclean, ESLint and Prettier clean.npx vitest run server shared: 5113 passed, 10 skipped.No
client/srcchanges.Generated by Claude Code
Summary by CodeRabbit