Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(deps): fix govet in ".*_test.go$" #6736

Merged
merged 2 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,14 @@ issues:
- gocritic
- goconst
- gosec
- govet
- ineffassign
- misspell
- tenv
- unused
- path: ".*_test.go$"
linters:
- govet
text: "copylocks:"
- linters:
- gosec
text: "G304: Potential file inclusion"
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