feat: foreignKeys check

+fix: "unnamed" field bug
This commit is contained in:
2024-12-30 23:44:24 +07:00
parent ece3f3c801
commit 03ccaff375
10 changed files with 123 additions and 21 deletions

View File

@@ -13,10 +13,8 @@ var ReferenceAnalyzer = &analysis.Analyzer{
Run: run,
}
var models map[string]common.Model
func run(pass *analysis.Pass) (any, error) {
models = make(map[string]common.Model)
models := make(map[string]common.Model)
common.ParseModels(pass, &models)
for _, model := range models {