From 34ef2678e794fcd735a473e78c96be9ebd5a3606 Mon Sep 17 00:00:00 2001 From: Marat Reymers Date: Sun, 29 May 2022 00:26:13 +0300 Subject: [PATCH] docs(thelper): add missing `fuzz` config and description --- .golangci.reference.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.golangci.reference.yml b/.golangci.reference.yml index 131458efa9f9..fc7dd8420d9f 100644 --- a/.golangci.reference.yml +++ b/.golangci.reference.yml @@ -1448,19 +1448,45 @@ linters-settings: skip-regexp: (export|internal)_test\.go thelper: - # The following configurations enable all checks. - # All checks are enabled by default. test: + # Check *testing.T is first param (or after context.Context) of helper function. + # Default: true first: false + # Check *testing.T param has name t. + # Default: true name: false + # Check t.Helper() begins helper function. + # Default: true begin: false benchmark: + # Check *testing.B is first param (or after context.Context) of helper function. + # Default: true first: false + # Check *testing.B param has name b. + # Default: true name: false + # Check b.Helper() begins helper function. + # Default: true begin: false tb: + # Check *testing.TB is first param (or after context.Context) of helper function. + # Default: true first: false + # Check *testing.TB param has name tb. + # Default: true name: false + # Check tb.Helper() begins helper function. + # Default: true + begin: false + fuzz: + # Check *testing.F is first param (or after context.Context) of helper function. + # Default: true + first: false + # Check *testing.F param has name f. + # Default: true + name: false + # Check f.Helper() begins helper function. + # Default: true begin: false unparam: