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
{{ message }}
Repository navigation
staticcheck: detect uses of fmt.Sprintf for URL-like values #730
This is probably not the best way to create a URL. While the host part
may be considered “acceptable”, the query part just
looks like bad code to me. Best case scenario: this leads to occasional
errors because of bad URLs. Worst case scenario: data leakage due to
undervalidated parameters.
I think that this would be much better with *url.URL,
url.Values, and path.Join.
Activity
seiyab commentedon Apr 19, 2024
Should these be detected?
Maybe test code should be ignored.