You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
While working on enabling testifylint, specifically the formatter (etcd-io/etcd#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:
assert.Equal(t, want, got, "")
testifylint autofix automatically replaced them with that: (assert.Equalf)
assert.Equalf(t, want, got, "")
which is fine but I belive it would be better to remove the empty message string and replace as follows:
assert.Equal(t, want, got)
What do you think about that? Would you accept a PR that changes this behaviour?
The text was updated successfully, but these errors were encountered:
Hey,
While working on enabling testifylint, specifically the formatter (etcd-io/etcd#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?
The text was updated successfully, but these errors were encountered: