Skip to content

Conversation

@the-dev-z
Copy link
Member

摘要

修復整個專案的 Go 程式碼格式,以通過 CI 格式檢查。

變更內容

  • 執行 go fmt ./... 格式化所有 Go 檔案
  • 影響範圍:
    • trader/ 目錄:15 個檔案
    • api/:2 個檔案
    • decision/:3 個檔案
    • manager/:1 個檔案
    • market/:1 個檔案
    • mcp/:7 個檔案
    • store/:5 個檔案
  • 總計:34 個檔案,+219/-210 行(僅空白與格式變更)

類型

  • 🎨 Style(程式碼格式化,不影響邏輯)

測試

  • CI 格式檢查應該全部通過
  • 無邏輯變更,不需要額外測試

備註

此 PR 從 #1186 拆分出來,專門處理 Go 格式化問題,讓類型斷言安全修復的 PR 保持專注。


關聯 PR: #1186

the-dev-z and others added 2 commits December 7, 2025 23:46
This commit runs 'go fmt ./trader/...' to fix code formatting issues
that were causing CI/CD checks to fail.

Changes:
- Auto-formatted 15 trader files
- No logic changes, only whitespace/formatting
- Fixes 'Go Formatting: ⚠️ Needs formatting' CI check

Files formatted:
- trader/aster_trader.go
- trader/auto_trader.go
- trader/bybit_trader.go
- trader/lighter_*.go
- trader/order_sync.go
- trader/position_sync.go
- and 9 more trader files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
This commit runs 'go fmt ./...' to fix ALL code formatting issues
across the entire project, not just the trader directory.

This is necessary because CI checks the entire project's formatting,
and multiple files across different modules had formatting issues.

Changes:
- Auto-formatted 19 files across 6 modules
- No logic changes, only whitespace/formatting
- Fixes 'Go Formatting: ⚠️ Needs formatting' CI check completely

Affected modules:
- api/ (2 files)
- decision/ (3 files)
- manager/ (1 file)
- market/ (1 file)
- mcp/ (7 files)
- store/ (5 files)

Total changes: +117 lines, -106 lines (formatting only)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@github-actions
Copy link

github-actions bot commented Dec 7, 2025

🤖 Advisory Check Results

These are advisory checks to help improve code quality. They won't block your PR from being merged.

📋 PR Information

Title Format: ✅ Good - Follows Conventional Commits
PR Size: 🟡 Medium (429 lines: +219 -210)

🔧 Backend Checks

Go Formatting: ✅ Good
Go Vet: ✅ Good
Tests: ✅ Passed

Fix locally:

go fmt ./...      # Format code
go vet ./...      # Check for issues
go test ./...     # Run tests

⚛️ Frontend Checks

Build & Type Check: ✅ Success

Fix locally:

cd web
npm run build  # Test build (includes type checking)

📖 Resources

Questions? Feel free to ask in the comments! 🙏


These checks are advisory and won't block your PR from being merged. This comment is automatically generated from pr-checks-run.yml.

@the-dev-z the-dev-z changed the title style: run go fmt on entire project to fix formatting chore(backend): run go fmt on entire project to fix formatting Dec 7, 2025
@cla-assistant
Copy link

cla-assistant bot commented Dec 22, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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