Open ghouscht opened 1 month ago
@ghouscht hi!
thank you for issue
these are really strange occasions :D
What do you think about that?
I am ok this that.
Would you accept a PR that changes this behaviour?
Yes, appreciated.
But need to introduce new messages for this
formatter: empty format string
formatter: empty string among formatted arguments
And to test it carefully:
Sprintf
cases? please, look at current formatter
tests and grep some ideasbut 3-5 looks like issue in go vet's printf
, that could be natively inherited by testifylint
without extra dev on our side.
Hey, While working on enabling testifylint, specifically the formatter (https://github.com/etcd-io/etcd/pull/18741) we found a potential improvement for the automatic fix in the formatter check with require-f-funcs option enabled.
In the codebase we found several occasions of assertions like this:
testifylint autofix automatically replaced them with that: (assert.Equalf)
which is fine but I belive it would be better to remove the empty message string and replace as follows:
What do you think about that? Would you accept a PR that changes this behaviour?