We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f50a3f4 commit daf4b8dCopy full SHA for daf4b8d
pkg/golinters/goheader/goheader.go
@@ -8,6 +8,7 @@ import (
8
9
"github.com/golangci/golangci-lint/v2/pkg/config"
10
"github.com/golangci/golangci-lint/v2/pkg/goanalysis"
11
+ "github.com/golangci/golangci-lint/v2/pkg/golinters/internal"
12
)
13
14
const linterName = "goheader"
@@ -22,7 +23,9 @@ func New(settings *config.GoHeaderSettings, replacer *strings.Replacer) *goanaly
22
23
}
24
25
var goheaderSettings goheader.Settings
- _ = conf.FillSettings(&goheaderSettings)
26
+ if err := conf.FillSettings(&goheaderSettings); err != nil {
27
+ internal.LinterLogger.Fatalf("%s: invalid toolchain pattern: %s", linterName, err.Error())
28
+ }
29
return goanalysis.NewLinter(
30
linterName,
31
"Checks if file header matches to pattern",
0 commit comments