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
Thanks for the report. Currently, the tool does not try to detect this case so you'd have to add a nolint for it. Feel free to put up a PR if you think you can detect this sort of case generally and reliably. The current detection engine is very simple and does not try to follow the code, so there are a lot of ways that a user could generate a false positive with this tool. The belief behind this linter is that these cases aren't so common that using nolint isn't too much of an imposition to avoid the kind of error this detects, but that may not be true for your use case if you are doing a lot of copies.
if we have the following situation
The linter will identify a false positive, even though we filled the
slice2
withcopy
builtin function.The text was updated successfully, but these errors were encountered: