We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0e8335 commit e45ed01Copy full SHA for e45ed01
pkg/golinters/goheader/goheader.go
@@ -65,6 +65,10 @@ func runGoHeader(pass *analysis.Pass, conf *goheader.Configuration) error {
65
for _, file := range pass.Files {
66
position := goanalysis.GetFilePosition(pass, file)
67
68
+ if !strings.HasSuffix(position.Filename, ".go") {
69
+ continue
70
+ }
71
+
72
issue := a.Analyze(&goheader.Target{File: file, Path: position.Filename})
73
if issue == nil {
74
continue
0 commit comments