I propose adding a new option fmt-print that detects fmt.Println/fmt.Printf calls in tests.
The check should suggest replacing fmt.Println with t/b.Log, fmt.Printf wtih t/b.Logf.
Real examples
github.com/99designs/gqlgen
In the TestApolloTracing fmt.Printf could be replaced with t.Logf. See 99designs/gqlgen#3099
github.com/hypermodeinc/badger
In the TestExistsMore fmt.Println could by replaced with t.Log.
I propose adding a new option
fmt-printthat detectsfmt.Println/fmt.Printfcalls in tests.The check should suggest replacing
fmt.Printlnwitht/b.Log,fmt.Printfwtiht/b.Logf.Real examples
github.com/99designs/gqlgen
In the
TestApolloTracingfmt.Printfcould be replaced witht.Logf. See 99designs/gqlgen#3099github.com/hypermodeinc/badger
In the TestExistsMore
fmt.Printlncould by replaced witht.Log.