From 4536be4d10f41396ddcf91a855b0dde743929a25 Mon Sep 17 00:00:00 2001 From: gogacoder Date: Tue, 18 Mar 2025 03:23:15 +0700 Subject: [PATCH] feat: more clear output --- relationsCheck/relationsCheck.go | 2 +- tests/null_safety_check_test.go | 1 - tests/relations_check_test.go | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/relationsCheck/relationsCheck.go b/relationsCheck/relationsCheck.go index 756dcb8..5360fb3 100644 --- a/relationsCheck/relationsCheck.go +++ b/relationsCheck/relationsCheck.go @@ -122,7 +122,7 @@ func CheckOneToMany(pass *analysis.Pass, models map[string]common.Model) { if !foundOneToMany { if foundBelongsTo { - fmt.Printf("Found belongs to relation in model `%s` with model `%s`\n", model.Name, *baseType) + fmt.Printf("`%s` belongs `%s`\n", *baseType, model.Name) } else if hasOne { fmt.Printf("`%s` has one `%s` \n", model.Name, relatedModel.Name) } else { diff --git a/tests/null_safety_check_test.go b/tests/null_safety_check_test.go index 4e6ac27..eb3cd21 100644 --- a/tests/null_safety_check_test.go +++ b/tests/null_safety_check_test.go @@ -7,6 +7,5 @@ import ( ) func TestNullSafety(t *testing.T) { - t.Parallel() analysistest.Run(t, analysistest.TestData(), nullSafetyCheck.NullSafetyAnalyzer, "null_safety") } diff --git a/tests/relations_check_test.go b/tests/relations_check_test.go index 3cd8d1b..a57e122 100644 --- a/tests/relations_check_test.go +++ b/tests/relations_check_test.go @@ -7,6 +7,5 @@ import ( ) func TestRelationsCheck(t *testing.T) { - t.Parallel() analysistest.Run(t, analysistest.TestData(), relationsCheck.RelationsAnalyzer, "relations_check") }