all: enable use-any revive rule (#417)

Enable the `use-any` `revive` rule which requires replacing the empty
interface `interface{}` with `any`.
This commit is contained in:
Michael McLoughlin
2024-01-07 13:16:59 -08:00
committed by GitHub
parent d84f103398
commit 11e0a2138b
9 changed files with 9 additions and 11 deletions

View File

@@ -182,6 +182,6 @@ func TestChecks(t *testing.T) {
}
}
func funcname(f interface{}) string {
func funcname(f any) string {
return runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name()
}