mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-07-25 13:39:12 -04:00
dev: refactor .golangci.yml configuration and fix up nolintlint issues (#4537)
This commit is contained in:
parent
02ea91d77e
commit
6709c974a4
42 changed files with 58 additions and 75 deletions
scripts/website/expand_templates
|
@ -96,7 +96,7 @@ type latestRelease struct {
|
|||
func getLatestVersion() (string, error) {
|
||||
endpoint := "https://api.github.com/repos/golangci/golangci-lint/releases/latest"
|
||||
|
||||
//nolint:noctx
|
||||
//nolint:noctx // request timeout handled by the client
|
||||
req, err := http.NewRequest(http.MethodGet, endpoint, http.NoBody)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("prepare a HTTP request: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue