go-tools icon indicating copy to clipboard operation
go-tools copied to clipboard

Improved suggestion for SA1024

Open szaydel opened this issue 1 year ago • 0 comments

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.

szaydel avatar Feb 15 '23 14:02 szaydel