kubernetes-sigs/cluster-api

Enable usetesting in golangci.yml

Aberta

#12.179 aberto em 9 de mai. de 2025

 (5 comentários) (1 reação) (1 responsável)Go (1.532 forks)auto 404
help wantedkind/cleanuppriority/backlogtriage/accepted

Métricas do repositório

Stars
 (4.267 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

usetesting linter is automatically enabled when Go 1.24 is used.

This linter diagnose the calls that can be replaced by functions defined in testing package. e.g. os.Setenv -> testing.Setenv.

It is what we're going to do after https://github.com/kubernetes-sigs/cluster-api/pull/12128 will be merged since the diff is very large.

The issue aims to enable usetesting linter and the fix all diagnostics to pass all.

/help

Guia do colaborador