dev: refactor .golangci.yml configuration and fix up nolintlint issues ()

This commit is contained in:
Oleksandr Redko 2024-03-19 17:38:59 +02:00 committed by GitHub
parent 02ea91d77e
commit 6709c974a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 58 additions and 75 deletions
scripts/website/expand_templates

View file

@ -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)