Skip to content

Commit

Permalink
Update linter version + remove deprecated linters (ava-labs#2040)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Laine authored Sep 22, 2022
1 parent a914644 commit 3b4fced
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ linters:
disable-all: true
enable:
- asciicheck
- deadcode
- depguard
- errcheck
- exportloopref
Expand All @@ -37,7 +36,6 @@ linters:
- unconvert
- unparam
- unused
- varcheck
- unconvert
- whitespace
- staticcheck
Expand Down
2 changes: 1 addition & 1 deletion scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fi
TESTS=${TESTS:-"golangci_lint license_header"}

function test_golangci_lint {
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.47.2
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0
golangci-lint run --config .golangci.yml
}

Expand Down
2 changes: 1 addition & 1 deletion vms/rpcchainvm/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func Test_VMCreateHandlers(t *testing.T) {
require.NoErrorf(err, "failed to create listener: %v", err)

go func() {
err := http.Serve(listener, r)
err := http.Serve(listener, r) // #nosec G114
require.NoErrorf(err, "failed to serve HTTP: %v", err)
}()

Expand Down

0 comments on commit 3b4fced

Please sign in to comment.