kubernetes-sigs/cluster-api

Enable usetesting in golangci.yml

開放

#12,179 建立於 2025年5月9日

 (5 則留言) (1 個反應) (1 位負責人)Go (1,532 個分叉)auto 404
help wantedkind/cleanuppriority/backlogtriage/accepted

倉庫指標

星標
 (4,267 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南