Skip to content

Commit

Permalink
Update golang linter
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorsm committed Sep 10, 2024
1 parent 6a13b4b commit 4375ca5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
go-version: '1.19'

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v6
with:
version: v1.56.2
version: v1.60.1
skip-pkg-cache: true
skip-build-cache: true
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/theodorsm/covert-dtls

go 1.19
go 1.20

require (
github.com/google/gopacket v1.1.19
Expand Down
2 changes: 1 addition & 1 deletion pkg/randomize/cipher_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func encodeCipherSuiteIDs(cipherSuiteIDs []uint16) []byte {
return out
}

// nolint:typecheck
//nolint:typecheck
func DefaultCipherSuites() []dtls.CipherSuiteID {

Check failure on line 35 in pkg/randomize/cipher_suite.go

View workflow job for this annotation

GitHub Actions / linting

undefined: dtls (typecheck)
return []dtls.CipherSuiteID{

Check failure on line 36 in pkg/randomize/cipher_suite.go

View workflow job for this annotation

GitHub Actions / linting

undefined: dtls (typecheck)
dtls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,

Check failure on line 37 in pkg/randomize/cipher_suite.go

View workflow job for this annotation

GitHub Actions / linting

undefined: dtls (typecheck)
Expand Down
2 changes: 1 addition & 1 deletion pkg/randomize/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math/rand/v2"
)

// nolint:typecheck
//nolint:typecheck
func randRange(min, max int) int {
return rand.IntN(max-min+1) + min

Check failure on line 9 in pkg/randomize/util.go

View workflow job for this annotation

GitHub Actions / linting

undefined: rand (typecheck)
}
Expand Down

0 comments on commit 4375ca5

Please sign in to comment.