chore: enable exptostd linter (#9086)
Some checks failed
Run the E2E test on kind / build (push) Failing after 7m47s
Run the E2E test on kind / setup-test-matrix (push) Successful in 4s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Main CI / Build (push) Failing after 39s
Close stale issues and PRs / stale (push) Successful in 20s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m39s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-aws, main) (push) Failing after 1m21s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-gcp, main) (push) Failing after 1m28s
Trivy Nightly Scan / Trivy nightly scan (velero-plugin-for-microsoft-azure, main) (push) Failing after 1m28s

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-07-17 23:16:00 +02:00
committed by GitHub
parent 805237a8da
commit e88fbb6fa5
4 changed files with 4 additions and 3 deletions

View File

@@ -315,6 +315,7 @@ linters:
- durationcheck - durationcheck
- errcheck - errcheck
- errchkjson - errchkjson
- exptostd
- ginkgolinter - ginkgolinter
- goconst - goconst
- goheader - goheader

2
go.mod
View File

@@ -41,7 +41,6 @@ require (
github.com/stretchr/testify v1.10.0 github.com/stretchr/testify v1.10.0
github.com/vmware-tanzu/crash-diagnostics v0.3.7 github.com/vmware-tanzu/crash-diagnostics v0.3.7
go.uber.org/zap v1.27.0 go.uber.org/zap v1.27.0
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
golang.org/x/mod v0.24.0 golang.org/x/mod v0.24.0
golang.org/x/net v0.40.0 golang.org/x/net v0.40.0
golang.org/x/oauth2 v0.30.0 golang.org/x/oauth2 v0.30.0
@@ -182,6 +181,7 @@ require (
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
go.uber.org/multierr v1.11.0 // indirect go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.38.0 // indirect golang.org/x/crypto v0.38.0 // indirect
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect
golang.org/x/sync v0.14.0 // indirect golang.org/x/sync v0.14.0 // indirect
golang.org/x/sys v0.33.0 // indirect golang.org/x/sys v0.33.0 // indirect
golang.org/x/term v0.32.0 // indirect golang.org/x/term v0.32.0 // indirect

View File

@@ -23,11 +23,11 @@ import (
"fmt" "fmt"
"os" "os"
"os/exec" "os/exec"
"slices"
"strings" "strings"
"time" "time"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/exp/slices"
"golang.org/x/mod/semver" "golang.org/x/mod/semver"
appsv1api "k8s.io/api/apps/v1" appsv1api "k8s.io/api/apps/v1"
corev1api "k8s.io/api/core/v1" corev1api "k8s.io/api/core/v1"

View File

@@ -32,11 +32,11 @@ import (
"reflect" "reflect"
"regexp" "regexp"
"runtime" "runtime"
"slices"
"strings" "strings"
"time" "time"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/exp/slices"
"golang.org/x/mod/semver" "golang.org/x/mod/semver"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
ver "k8s.io/apimachinery/pkg/util/version" ver "k8s.io/apimachinery/pkg/util/version"