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
+1 -2
View File
@@ -5,11 +5,10 @@
package cmd
import (
"Wavelet/core"
"log"
"github.com/spf13/cobra"
"Wavelet/core"
)
var allCmd = &cobra.Command{
+1 -2
View File
@@ -4,11 +4,10 @@
package cmd
import (
"Wavelet/core"
"log"
"github.com/spf13/cobra"
"Wavelet/core"
)
var apiCmd = &cobra.Command{
+12 -12
View File
@@ -4,17 +4,6 @@
package cmd
import (
"context"
"database/sql"
"fmt"
"io/fs"
"log"
"path/filepath"
"time"
"github.com/pressly/goose/v3"
goosedb "github.com/pressly/goose/v3/database"
"Wavelet/core"
"Wavelet/core/contracts"
"Wavelet/pkg/config"
@@ -33,9 +22,20 @@ import (
"Wavelet/plugins/drivers/driver_inproc_worker"
"Wavelet/plugins/infra/cache"
"Wavelet/plugins/infra/cache_memory"
infradb "Wavelet/plugins/infra/database"
"Wavelet/plugins/infra/logger"
"Wavelet/plugins/infra/storage"
"context"
"database/sql"
"fmt"
"io/fs"
"log"
"path/filepath"
"time"
"github.com/pressly/goose/v3"
goosedb "github.com/pressly/goose/v3/database"
infradb "Wavelet/plugins/infra/database"
)
// newWaveletApp creates a core.App wired with Wavelet platform infrastructure, domain plugins, and profile drivers.
+2 -3
View File
@@ -4,13 +4,12 @@
package cmd
import (
"Wavelet/core"
"Wavelet/pkg/config"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"Wavelet/core"
"Wavelet/pkg/config"
)
func TestNewWaveletAppProfiles(t *testing.T) {
+2 -3
View File
@@ -7,12 +7,11 @@
package cmd
import (
"Wavelet/pkg/buildinfo"
"Wavelet/pkg/config"
"fmt"
"runtime"
"strings"
"Wavelet/pkg/buildinfo"
"Wavelet/pkg/config"
)
//nolint:unused // startup banner formatting utilities
+2 -3
View File
@@ -4,11 +4,10 @@
package cmd
import (
"strings"
"testing"
"Wavelet/pkg/buildinfo"
"Wavelet/pkg/config"
"strings"
"testing"
)
func TestFormatStartupBanner(t *testing.T) {
+4 -5
View File
@@ -4,6 +4,10 @@
package cmd
import (
"Wavelet/core"
"Wavelet/core/contracts"
"Wavelet/core/extpoints"
"Wavelet/pkg/config"
"context"
"fmt"
"sync/atomic"
@@ -12,11 +16,6 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"Wavelet/core"
"Wavelet/core/contracts"
"Wavelet/core/extpoints"
"Wavelet/pkg/config"
)
func TestRedisPluggability_Simulation(t *testing.T) {
+2 -3
View File
@@ -4,6 +4,8 @@
package cmd
import (
"Wavelet/plugins/domain/auth"
"Wavelet/plugins/infra/database"
"bufio"
"context"
"crypto/rand"
@@ -14,12 +16,9 @@ import (
"strings"
userdomain "Wavelet/plugins/domain/user"
"Wavelet/plugins/infra/database"
"github.com/spf13/cobra"
"gorm.io/gorm"
"Wavelet/plugins/domain/auth"
)
var (
+1 -1
View File
@@ -4,13 +4,13 @@
package cmd
import (
"Wavelet/pkg/testhelper"
"bytes"
"io"
"os"
"testing"
"time"
"Wavelet/pkg/testhelper"
userdomain "Wavelet/plugins/domain/user"
)
+4 -5
View File
@@ -4,16 +4,15 @@
package cmd
import (
"Wavelet/pkg/buildinfo"
"Wavelet/pkg/config"
"Wavelet/pkg/logger"
"Wavelet/pkg/trace"
"context"
"log"
"time"
"github.com/spf13/cobra"
"Wavelet/pkg/buildinfo"
"Wavelet/pkg/config"
"Wavelet/pkg/logger"
"Wavelet/pkg/trace"
)
const traceShutdownTimeout = 10 * time.Second
+1 -2
View File
@@ -4,11 +4,10 @@
package cmd
import (
"Wavelet/core"
"log"
"github.com/spf13/cobra"
"Wavelet/core"
)
var schedulerCmd = &cobra.Command{
+1 -2
View File
@@ -4,11 +4,10 @@
package cmd
import (
"Wavelet/core"
"log"
"github.com/spf13/cobra"
"Wavelet/core"
)
var workerCmd = &cobra.Command{