Skip to content

feat(fmt): Run formatters#435

Merged
Danieldd28 merged 7 commits intosipeed:mainfrom
mymmrac:fix-formatting
Feb 20, 2026
Merged

feat(fmt): Run formatters#435
Danieldd28 merged 7 commits intosipeed:mainfrom
mymmrac:fix-formatting

Conversation

@mymmrac
Copy link
Collaborator

@mymmrac mymmrac commented Feb 18, 2026

📝 Description

This PR is just a result of running golangci-lint fmt, also old fmt check from CI is removed since linter already will check that.

🗣️ Type of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 📖 Documentation update
  • ⚡ Code refactoring (no functional changes, no api changes)

🤖 AI Code Generation

  • 🤖 Fully AI-generated (100% AI, 0% Human)
  • 🛠️ Mostly AI-generated (AI draft, Human verified/modified)
  • 👨‍💻 Mostly Human-written (Human lead, AI assisted or none)

📸 Evidence (Optional)

Click to view Logs/Screenshots
$ make lint                                                                                                                                                                                                                        
0 issues.  

☑️ Checklist

  • My code/docs follow the style of this project.
  • I have performed a self-review of my own changes.
  • I have updated the documentation accordingly.

Copy link

@nikolasdehor nikolasdehor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Large formatting PR from running golangci-lint fmt with gci, gofmt, gofumpt, goimports, and golines enabled. The changes include:

  1. CI workflow cleanup — Removes the standalone fmt-check job since the linter now handles formatting. The vet and test jobs no longer depend on fmt-check. This is correct.

  2. Makefile improvements — Adds a lint target and changes fmt to use golangci-lint fmt instead of go fmt. Good.

  3. Formatting changes — The bulk of the diff is mechanical formatting: import grouping (gci), octal literals (0644 -> 0o644 via gofumpt), line wrapping (golines), map[string]interface{} -> map[string]any, blank line removal, etc. These are all standard formatter outputs.

  4. No functional changes — I spot-checked several files and all changes are cosmetic. The map[string]interface{} to map[string]any changes are a Go 1.18+ alias and are semantically identical.

One concern: this is a 90-file, 2200-line diff that will conflict with essentially every other open PR. Merging this first and having other PR authors rebase is the cleanest path, but it will create friction. Consider coordinating with maintainers on merge timing.

LGTM on the content.

# Conflicts:
#	pkg/agent/loop.go
#	pkg/agent/loop_test.go
#	pkg/channels/discord.go
#	pkg/channels/onebot.go
#	pkg/config/config.go
#	pkg/tools/subagent_tool_test.go
# Conflicts:
#	cmd/picoclaw/main.go
#	pkg/agent/context.go
#	pkg/agent/loop.go
#	pkg/channels/dingtalk.go
#	pkg/channels/feishu_64.go
#	pkg/channels/line.go
#	pkg/channels/manager.go
#	pkg/config/config.go
#	pkg/migrate/migrate_test.go
#	pkg/providers/anthropic/provider_test.go
#	pkg/providers/claude_provider_test.go
#	pkg/providers/http_provider.go
#	pkg/providers/openai_compat/provider.go
#	pkg/providers/protocoltypes/types.go
#	pkg/providers/types.go
Copy link
Collaborator

@harshbansal7 harshbansal7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not to forget, need to raise a PR to remove redundant linters.

@harshbansal7 harshbansal7 mentioned this pull request Feb 20, 2026
10 tasks
@Danieldd28 Danieldd28 merged commit df2c424 into sipeed:main Feb 20, 2026
3 checks passed
hyperwd pushed a commit to hyperwd/picoclaw that referenced this pull request Mar 5, 2026
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.

5 participants