feat: more clear output

This commit is contained in:
2025-03-18 03:23:15 +07:00
parent 6e5e676e84
commit 4536be4d10
3 changed files with 1 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ func CheckOneToMany(pass *analysis.Pass, models map[string]common.Model) {
if !foundOneToMany { if !foundOneToMany {
if foundBelongsTo { 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 { } else if hasOne {
fmt.Printf("`%s` has one `%s` \n", model.Name, relatedModel.Name) fmt.Printf("`%s` has one `%s` \n", model.Name, relatedModel.Name)
} else { } else {

View File

@@ -7,6 +7,5 @@ import (
) )
func TestNullSafety(t *testing.T) { func TestNullSafety(t *testing.T) {
t.Parallel()
analysistest.Run(t, analysistest.TestData(), nullSafetyCheck.NullSafetyAnalyzer, "null_safety") analysistest.Run(t, analysistest.TestData(), nullSafetyCheck.NullSafetyAnalyzer, "null_safety")
} }

View File

@@ -7,6 +7,5 @@ import (
) )
func TestRelationsCheck(t *testing.T) { func TestRelationsCheck(t *testing.T) {
t.Parallel()
analysistest.Run(t, analysistest.TestData(), relationsCheck.RelationsAnalyzer, "relations_check") analysistest.Run(t, analysistest.TestData(), relationsCheck.RelationsAnalyzer, "relations_check")
} }