Closed pgimalac closed 1 month ago
Thanks for reporting this. I appreciate your feedback, and the minimum reproducible code.
We will have a look.
This one is indeed a bug, if confirmed.
The fix should be easy :tm: (famous last words 😅🤣)
I took a look and I believe I found the issue, I'll validate and open a PR.
@pgimalac thanks!
Fixed.
Here is a minimal reproducible example where the formatter rule should suggest not using
fmt.Sprintf
, but doesn't.Adding a blank import of
github.com/stretchr/testify/assert
(or any assertion using it) will make theformatter
rule complain.