cluster-api icon indicating copy to clipboard operation
cluster-api copied to clipboard

Enable usetesting in golangci.yml

Open sivchari opened this issue 6 months ago • 5 comments

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

sivchari avatar May 09 '25 11:05 sivchari