Skip to content

Commit

Permalink
Update golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 22, 2024
1 parent 396e0cb commit 2aaaa37
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
go-version: stable
- uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc
with:
version: v1.54.2
version: v1.55.2
9 changes: 8 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ linters:
- forbidigo
- forcetypeassert
- gci
- ginkgolinter
- gocheckcompilerdirectives
- goconst
- gocritic
Expand All @@ -36,15 +37,18 @@ linters:
- goprintffuncname
- gosec
- gosimple
- gosmopolitan
- govet
- grouper
- importas
- inamedparam
- ineffassign
- ireturn
- lll
- loggercheck
- maintidx
- makezero
- mirror
- misspell
- musttag
- nakedret
Expand All @@ -54,14 +58,18 @@ linters:
- nolintlint
- nonamedreturns
- nosprintfhostport
- perfsprint
- prealloc
- predeclared
- promlinter
- protogetter
- reassign
- rowserrcheck
- sloglint
- sqlclosecheck
- staticcheck
- stylecheck
- tagalign
- tagliatelle
- tenv
- testpackage
Expand All @@ -77,7 +85,6 @@ linters:
- asasalint
- cyclop
- depguard
- exhaustivestruct
- exhaustruct
- funlen
- gochecknoglobals
Expand Down
2 changes: 1 addition & 1 deletion contains.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
// A Stater implements Stat. It is assumed that the fs.FileInfos returned by
// Stat are compatible with os.SameFile.
type Stater interface {
Stat(string) (fs.FileInfo, error)
Stat(name string) (fs.FileInfo, error)
}

// Contains returns true if p is reachable by traversing through prefix. prefix
Expand Down

0 comments on commit 2aaaa37

Please sign in to comment.