chore(lint): unify formatting on golangci-lint fmt (gofumpt), uncap issue reporting, fix gofumpt drift

- make format 现在与 code-check 使用同一格式化器(golangci-lint fmt),消除 goimports -local 与 gofumpt 的格式拉锯
- .golangci.yml 关闭默认 50/3 截断,完整上报所有问题(只增强不弱化)
- 全库 gofumpt 规范化(203 files, 纯格式无行为变更)
This commit is contained in:
ryan
2026-08-28 16:31:53 +08:00
parent 078ad9b2f3
commit 528240026d
204 changed files with 572 additions and 718 deletions
@@ -4,13 +4,12 @@
package driver_asynq_cron
import (
"Wavelet/core"
"Wavelet/core/contracts"
"context"
"sync"
"gorm.io/gorm"
"Wavelet/core"
"Wavelet/core/contracts"
)
var (
@@ -5,6 +5,9 @@
package driver_asynq_cron
import (
"Wavelet/core"
"Wavelet/core/contracts"
"Wavelet/pkg/config"
"context"
"embed"
"encoding/json"
@@ -13,10 +16,6 @@ import (
"time"
"github.com/hibiken/asynq"
"Wavelet/core"
"Wavelet/core/contracts"
"Wavelet/pkg/config"
)
//go:embed migrations/*/*.sql
@@ -4,6 +4,8 @@
package driver_asynq_cron
import (
"Wavelet/core/contracts"
"Wavelet/pkg/logger"
"context"
"fmt"
"os/signal"
@@ -12,9 +14,6 @@ import (
"time"
"github.com/hibiken/asynq"
"Wavelet/core/contracts"
"Wavelet/pkg/logger"
)
var (
@@ -153,7 +152,7 @@ func ReloadScheduler() error {
return nil
}
func waitForStop(done <-chan struct{}, signals <-chan struct{}) bool {
func waitForStop(done, signals <-chan struct{}) bool {
select {
case <-done:
return false