forked from quic-go/quic-go
Merge pull request #2775 from lucas-clemente/more-linters
enable more linters, update golangci-lint to v1.31
This commit is contained in:
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -10,4 +10,4 @@ jobs:
|
|||||||
uses: golangci/golangci-lint-action@v1
|
uses: golangci/golangci-lint-action@v1
|
||||||
with:
|
with:
|
||||||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
||||||
version: v1.30
|
version: v1.31
|
||||||
|
|||||||
@@ -17,10 +17,13 @@ linters-settings:
|
|||||||
linters:
|
linters:
|
||||||
disable-all: true
|
disable-all: true
|
||||||
enable:
|
enable:
|
||||||
|
- asciicheck
|
||||||
- deadcode
|
- deadcode
|
||||||
- depguard
|
- depguard
|
||||||
|
- exportloopref
|
||||||
- goconst
|
- goconst
|
||||||
- goimports
|
- goimports
|
||||||
|
- gofmt
|
||||||
- gosimple
|
- gosimple
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- misspell
|
- misspell
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ var _ = BeforeSuite(func() {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
tlsConfig = &tls.Config{
|
tlsConfig = &tls.Config{
|
||||||
Certificates: []tls.Certificate{tls.Certificate{
|
Certificates: []tls.Certificate{{
|
||||||
Certificate: [][]byte{leafCert.Raw},
|
Certificate: [][]byte{leafCert.Raw},
|
||||||
PrivateKey: leafPrivateKey,
|
PrivateKey: leafPrivateKey,
|
||||||
}},
|
}},
|
||||||
@@ -260,7 +260,7 @@ func generateTLSConfigWithLongCertChain(ca *x509.Certificate, caPrivateKey *rsa.
|
|||||||
rawCerts[0] = leafCert.Raw
|
rawCerts[0] = leafCert.Raw
|
||||||
|
|
||||||
return &tls.Config{
|
return &tls.Config{
|
||||||
Certificates: []tls.Certificate{tls.Certificate{
|
Certificates: []tls.Certificate{{
|
||||||
Certificate: rawCerts,
|
Certificate: rawCerts,
|
||||||
PrivateKey: leafPrivateKey,
|
PrivateKey: leafPrivateKey,
|
||||||
}},
|
}},
|
||||||
|
|||||||
Reference in New Issue
Block a user