feat(ci): update golangci-lint and action (#325)

* Update linter

- Update Github golangci-lint-action to v3
- Update golangci-lint to v1.52.2

* Fix linter issues after updating to linter 1.52.2
This commit is contained in:
Gregor Zurowski
2023-05-19 14:05:14 +02:00
committed by GitHub
parent ab07b876b8
commit 85eeb860bf
15 changed files with 43 additions and 62 deletions

View File

@@ -27,13 +27,13 @@ type MockFS struct {
db *db.DB
}
func New(t testing.TB) *MockFS { return new(t, []string{""}, "") }
func NewWithDirs(t testing.TB, dirs []string) *MockFS { return new(t, dirs, "") }
func New(t testing.TB) *MockFS { return newMockFS(t, []string{""}, "") }
func NewWithDirs(t testing.TB, dirs []string) *MockFS { return newMockFS(t, dirs, "") }
func NewWithExcludePattern(t testing.TB, excludePattern string) *MockFS {
return new(t, []string{""}, excludePattern)
return newMockFS(t, []string{""}, excludePattern)
}
func new(t testing.TB, dirs []string, excludePattern string) *MockFS {
func newMockFS(t testing.TB, dirs []string, excludePattern string) *MockFS {
dbc, err := db.NewMock()
if err != nil {
t.Fatalf("create db: %v", err)