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

View file

@ -61,7 +61,7 @@ func runMeasurementsUpload(cmd *cobra.Command, _ []string) error {
} }
defer func() { defer func() {
if err := uploadCClose(cmd.Context()); err != nil { 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. // Validator for AWS TPM attestation.
type Validator struct { type Validator struct {
// Embed variant to identify the Validator using varaint.OID(). // Embed variant to identify the Validator using variant.OID().
variant.AWSSEVSNP variant.AWSSEVSNP
// Embed validator to implement Validate method for aTLS handshake. // Embed validator to implement Validate method for aTLS handshake.
*vtpm.Validator *vtpm.Validator