Skip to content

Commit

Permalink
chore: update golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Apr 17, 2024
1 parent cf96da2 commit 930fbdb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
- uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804
with:
version: v1.54.2
version: v1.57.2
8 changes: 7 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ linters:
- govet
- grouper
- importas
- inamedparam
- ineffassign
- interfacebloat
- ireturn
Expand All @@ -55,17 +56,23 @@ linters:
- nonamedreturns
- nosprintfhostport
- paralleltest
- perfsprint
- prealloc
- predeclared
- promlinter
- protogetter
- reassign
- revive
- rowserrcheck
- sloglint
- spancheck
- sqlclosecheck
- staticcheck
- tagalign
- tagliatelle
- tenv
- testableexamples
- testifylint
- thelper
- tparallel
- typecheck
Expand Down Expand Up @@ -93,7 +100,6 @@ linters:
- maligned
- nestif
- nlreturn
- revive
- stylecheck
- testpackage
- varnamelen
Expand Down
2 changes: 1 addition & 1 deletion generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
var (
SkipDir = fs.SkipDir
//lint:ignore ST1012 SkipFile is not an error
SkipFile = errors.New("skip file") //nolint:errname
SkipFile = errors.New("skip file") //nolint:errname,revive
)

// A Generator observes XML documents and generates Go structs into which the
Expand Down
2 changes: 1 addition & 1 deletion internal/tests/gml/gml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestGML(t *testing.T) {
zipReader, err := zip.NewReader(file, fileInfo.Size())
assert.NoError(t, err)

assert.NoError(t, generator.ObserveFS(zipReader, "ets-gml32-master/src/test/resources", func(path string, dirEntry fs.DirEntry, err error) error {
assert.NoError(t, generator.ObserveFS(zipReader, "ets-gml32-master/src/test/resources", func(path string, _ fs.DirEntry, err error) error {
switch {
case err != nil:
return err
Expand Down

0 comments on commit 930fbdb

Please sign in to comment.