chore: enable use-any from revive (#21282)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-01-03 00:26:59 +01:00
committed by GitHub
parent 6087b4f903
commit 9ea979bbcd
167 changed files with 1519 additions and 1455 deletions

View File

@@ -29,8 +29,8 @@ func TestIsAppSyncStatusRefreshed(t *testing.T) {
{
name: "No OperationState",
app: &unstructured.Unstructured{
Object: map[string]interface{}{
"status": map[string]interface{}{},
Object: map[string]any{
"status": map[string]any{},
},
},
expectedValue: true,
@@ -38,9 +38,9 @@ func TestIsAppSyncStatusRefreshed(t *testing.T) {
{
name: "No FinishedAt, Completed Phase",
app: &unstructured.Unstructured{
Object: map[string]interface{}{
"status": map[string]interface{}{
"operationState": map[string]interface{}{
Object: map[string]any{
"status": map[string]any{
"operationState": map[string]any{
"phase": "Succeeded",
},
},
@@ -51,9 +51,9 @@ func TestIsAppSyncStatusRefreshed(t *testing.T) {
{
name: "FinishedAt After ReconciledAt & ObservedAt",
app: &unstructured.Unstructured{
Object: map[string]interface{}{
"status": map[string]interface{}{
"operationState": map[string]interface{}{
Object: map[string]any{
"status": map[string]any{
"operationState": map[string]any{
"finishedAt": "2021-01-01T01:05:00Z",
"phase": "Succeeded",
},
@@ -67,9 +67,9 @@ func TestIsAppSyncStatusRefreshed(t *testing.T) {
{
name: "FinishedAt Before ReconciledAt & ObservedAt",
app: &unstructured.Unstructured{
Object: map[string]interface{}{
"status": map[string]interface{}{
"operationState": map[string]interface{}{
Object: map[string]any{
"status": map[string]any{
"operationState": map[string]any{
"finishedAt": "2021-01-01T01:02:00Z",
"phase": "Succeeded",
},
@@ -92,8 +92,8 @@ func TestIsAppSyncStatusRefreshed(t *testing.T) {
func TestGetAppProj_invalidProjectNestedString(t *testing.T) {
app := &unstructured.Unstructured{
Object: map[string]interface{}{
"spec": map[string]interface{}{},
Object: map[string]any{
"spec": map[string]any{},
},
}
informer := cache.NewSharedIndexInformer(nil, nil, 0, nil)
@@ -176,8 +176,8 @@ func TestInitTimeout(t *testing.T) {
func TestCheckAppNotInAdditionalNamespaces(t *testing.T) {
app := &unstructured.Unstructured{
Object: map[string]interface{}{
"spec": map[string]interface{}{},
Object: map[string]any{
"spec": map[string]any{},
},
}
namespace := "argocd"