go-tools
go-tools copied to clipboard
Improved suggestion for SA1024
It seems to me that what SA1024
may be catching is not an issue with duplicate characters, but a misuse of API. It is easy to confuse strings.TrimSuffix
and stings.TrimLeft
. Perhaps, there should be a suggestion to review the chosen API. I have now seen a few examples of this misuse in our organization. I am guessing we are not unique in this.