Skip to content

Commit

Permalink
Merge pull request #144 from seiyab/update-govet
Browse files Browse the repository at this point in the history
Add govet new format
  • Loading branch information
haya14busa committed Mar 11, 2024
2 parents 6dd01ea + f369262 commit 739e471
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions fmts/go.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func init() {
register(&Fmt{
Name: "govet",
Errorformat: []string{
`%f:%l:%c: %m`,
`%f:%l: %m`,
`%-G%.%#`,
},
Expand Down
1 change: 1 addition & 0 deletions fmts/testdata/govet.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ buildtag.go:12: +build comment must appear before package clause and be followed
assign.go:15: self-assignment of x to x
assign.go:17: self-assignment of s.x to s.x
atomic.go:17: direct assignment to atomic value
./main.go:7:2: fmt.Printf format %s has arg x of wrong type int
exit status 1
1 change: 1 addition & 0 deletions fmts/testdata/govet.ok
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ buildtag.go|12| +build comment must appear before package clause and be followed
assign.go|15| self-assignment of x to x
assign.go|17| self-assignment of s.x to s.x
atomic.go|17| direct assignment to atomic value
./main.go|7 col 2| fmt.Printf format %s has arg x of wrong type int

0 comments on commit 739e471

Please sign in to comment.