Skip to content

Commit

Permalink
update golangci-lint to v1.63.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ShoshinNikita committed Jan 12, 2025
1 parent b54b6a7 commit 67d237d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
go-version: "1.23.*"
- uses: golangci/golangci-lint-action@v6
with:
version: v1.60.1
version: v1.63.4
args: "-v"

# TODO: use an alpine image to mimic the production environment?
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ lint:
-v $(shell go env GOPATH)/pkg:/go/pkg \
-v $(shell pwd):/app \
-w /app \
golangci/golangci-lint:v1.60.1-alpine golangci-lint run -v --config .golangci.yml
golangci/golangci-lint:v1.63.4-alpine golangci-lint run -v --config .golangci.yml
2 changes: 1 addition & 1 deletion search/prefix_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type prefixIndex struct {
func newPrefixIndex(rawPaths []string, minPrefixLen, maxPrefixLen int) *prefixIndex {
paths := make(map[uint64]string, len(rawPaths))
for i, path := range rawPaths {
paths[uint64(i)] = path
paths[uint64(i)] = path //nolint:gosec
}

prefixes := make(map[string][]uint64)
Expand Down
2 changes: 1 addition & 1 deletion tests/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ func TestAPI_Search(t *testing.T) {
dirs = append(dirs, d.Path)
}
for _, f := range resp.Files {
r.True(strings.Contains(f.WebURL, "?preview="))
r.Contains(f.WebURL, "?preview=")
r.NotEmpty(f.Icon)

files = append(files, f.Path)
Expand Down

0 comments on commit 67d237d

Please sign in to comment.