Skip to content

Commit e45ed01

Browse files
committed
chore: exclude build artifact (non-Go files)
1 parent f0e8335 commit e45ed01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/golinters/goheader/goheader.go

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ func runGoHeader(pass *analysis.Pass, conf *goheader.Configuration) error {
6565
for _, file := range pass.Files {
6666
position := goanalysis.GetFilePosition(pass, file)
6767

68+
if !strings.HasSuffix(position.Filename, ".go") {
69+
continue
70+
}
71+
6872
issue := a.Analyze(&goheader.Target{File: file, Path: position.Filename})
6973
if issue == nil {
7074
continue

0 commit comments

Comments
 (0)