package http import "example.com/project/internal/domain" func ResolveMethod(id domain.ObjectID) bool { // want "suspicious-business-logic-in-adapter" if id.IsFull() { return true } if id.String() == "" { return false } return false } func ResolveFree(id domain.ObjectID) bool { // want "suspicious-business-logic-in-adapter" if domain.Allowed(id) { return true } if id.String() == "" { return false } return false } func ResolveBoolSet(id domain.ObjectID, seen map[string]bool) bool { // want "suspicious-business-logic-in-adapter" if _, ok := seen[id.String()]; ok { return true } if id.String() == "" { return false } return false } func ResolveStructSet(id domain.ObjectID, seen map[string]struct{}) bool { // want "suspicious-business-logic-in-adapter" if _, ok := seen[id.String()]; !ok { return false } if id.String() == "" { return false } return true } func ResolveUnusedMembership(id domain.ObjectID, seen map[string]struct{}, other bool) bool { if _, ok := seen[id.String()]; other { _ = ok return true } return false } func ResolveStringMax(l domain.Limits) bool { if l.MaxLabel == "" { return false } if l.MaxLabel > "a" { return true } return false } func ResolveBoolMax(l domain.Limits) bool { if l.MaxEnabled == true { return false } if !l.MaxEnabled { return true } return false } func ResolveNumericEquality(l domain.Limits) bool { if l.Budget == 0 { return false } if l.Budget != 1 { return true } return false } func ResolveNumericField(l domain.Limits) bool { // want "suspicious-business-logic-in-adapter" if l.Budget > 0 { return true } if l.Budget < 1 { return false } return false } func ResolveNumericVar(n int) bool { // want "suspicious-business-logic-in-adapter" if n > domain.Budget { return true } if n < 1 { return false } return false }