Skip to content

Commit

Permalink
ci(deps): fix govet in ".*_test.go$" (#6736)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <[email protected]>
  • Loading branch information
mmorel-35 authored May 27, 2024
1 parent 3a4e845 commit 21114c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,13 @@ issues:
- bodyclose
- goconst
- gosec
- govet
- ineffassign
- misspell
- unused
- path: ".*_test.go$"
linters:
- govet
text: "copylocks:"
- path: ".*_test.go$"
linters:
- gocritic
Expand Down
2 changes: 1 addition & 1 deletion pkg/dependency/parser/java/jar/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ type doc struct {
ArtifactID string `json:"a"`
Version string `json:"v"`
P string `json:"p"`
VersionCount int `json:versionCount`
VersionCount int `json:"versionCount"`
}

func TestParse(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/fanal/analyzer/imgconf/apk/apk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ var (
},
{
Created: v1.Time{
time.Date(2018, time.October, 15, 21, 28, 51, 35012363, time.UTC),
Time: time.Date(2018, time.October, 15, 21, 28, 51, 35012363, time.UTC),
},
CreatedBy: "/bin/sh -c #(nop) ENV COMPOSER_VERSION=1.7.2",
EmptyLayer: true,
Expand Down Expand Up @@ -234,7 +234,7 @@ var (
},
{
Created: v1.Time{
time.Date(2018, time.October, 15, 21, 28, 53, 798628678, time.UTC),
Time: time.Date(2018, time.October, 15, 21, 28, 53, 798628678, time.UTC),
},
CreatedBy: "/bin/sh -c #(nop) CMD [\"composer\"]",
EmptyLayer: true,
Expand Down

0 comments on commit 21114c9

Please sign in to comment.