I just updated the internal (Google) version of go-github and one of the existing tools flagged some issues that seem reasonable to flag on GitHub.
The tool is staticcheck: https://staticcheck.io/
They look like they have a CLI and GitHub Actions.
Example of the errors it found, on actions_artifacts.go Line 121 there is an unused error value
parsedURL, err := url.Parse(resp.Header.Get("Location"))
return parsedURL, newResponse(resp), nil
@gmlewis and @willnorris curious what you think?
I just updated the internal (Google) version of go-github and one of the existing tools flagged some issues that seem reasonable to flag on GitHub.
The tool is staticcheck: https://staticcheck.io/
They look like they have a CLI and GitHub Actions.
Example of the errors it found, on actions_artifacts.go Line 121 there is an unused error value
@gmlewis and @willnorris curious what you think?