misc: update golangci-lint related changes

This commit is contained in:
Malte Poll 2024-05-10 13:53:01 +02:00
parent dfeeb788ec
commit cfaba0b1c3
3 changed files with 7 additions and 5 deletions

View File

@ -4,11 +4,11 @@ run:
- integration
- e2e
modules-download-mode: readonly
skip-dirs:
- 3rdparty/node-maintenance-operator
output:
format: tab
formats:
- format: tab
path: stdout
sort-results: true
linters:
@ -38,6 +38,8 @@ linters:
issues:
max-issues-per-linter: 0
max-same-issues: 20
exclude-dirs:
- 3rdparty/node-maintenance-operator
include:
- EXC0012
- EXC0014

View File

@ -61,7 +61,7 @@ func runMeasurementsUpload(cmd *cobra.Command, _ []string) error {
}
defer func() {
if err := uploadCClose(cmd.Context()); err != nil {
log.Error("closing upload client: %v", err)
log.Error("closing upload client", "error", err)
}
}()

View File

@ -31,7 +31,7 @@ import (
// Validator for AWS TPM attestation.
type Validator struct {
// Embed variant to identify the Validator using varaint.OID().
// Embed variant to identify the Validator using variant.OID().
variant.AWSSEVSNP
// Embed validator to implement Validate method for aTLS handshake.
*vtpm.Validator