linter: Enable gofumpt and run against codebase (#1848)

* linter: Enable gofumpt and run against codebase

* Address shazbert's nits

* gofumpt: Fix issues after rebase
This commit is contained in:
Adrian Gallagher
2025-03-18 10:23:16 +11:00
committed by GitHub
parent 748ed71455
commit f5faca2eb2
189 changed files with 1541 additions and 1104 deletions

View File

@@ -4,7 +4,7 @@ import "testing"
func TestSetCustomLoghook(t *testing.T) {
t.Parallel()
logHook := func(_ string, _ string, _ ...interface{}) (bypassLibraryLogSystem bool) {
logHook := func(_, _ string, _ ...interface{}) (bypassLibraryLogSystem bool) {
return false
}
SetCustomLogHook(logHook)

View File

@@ -210,7 +210,8 @@ func registerNewSubLogger(subLogger string) *SubLogger {
tempHolder, err := getWriters(&SubLoggerConfig{
Name: strings.ToUpper(subLogger),
Level: "INFO|WARN|DEBUG|ERROR",
Output: "stdout"})
Output: "stdout",
})
if err != nil {
return nil
}

View File

@@ -37,7 +37,8 @@ var (
Name: "lOg",
Level: "INFO|DEBUG|WARN|ERROR",
Output: "stdout",
}},
},
},
}
testConfigDisabled = &Config{
Enabled: convert.BoolPtr(false),