kubernetes-sigs/cluster-api

Enable usetesting in golangci.yml

オープン

#12,179 opened on 2025/05/09

 (5 件のコメント) (1 件のリアクション) (1 人の担当者)Go (1,532 件のフォーク)auto 404
help wantedkind/cleanuppriority/backlogtriage/accepted

Repository metrics

Stars
 (4,267 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド