Skip to content

Commit 658ca60

Browse files
maratoriSeigeC
authored andcommitted
docs(thelper): add fuzz config and description (golangci#2887)
docs(thelper): add missing `fuzz` config and description
1 parent 70b7a4e commit 658ca60

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.golangci.reference.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,19 +1528,45 @@ linters-settings:
15281528
skip-regexp: (export|internal)_test\.go
15291529

15301530
thelper:
1531-
# The following configurations enable all checks.
1532-
# All checks are enabled by default.
15331531
test:
1532+
# Check *testing.T is first param (or after context.Context) of helper function.
1533+
# Default: true
15341534
first: false
1535+
# Check *testing.T param has name t.
1536+
# Default: true
15351537
name: false
1538+
# Check t.Helper() begins helper function.
1539+
# Default: true
15361540
begin: false
15371541
benchmark:
1542+
# Check *testing.B is first param (or after context.Context) of helper function.
1543+
# Default: true
15381544
first: false
1545+
# Check *testing.B param has name b.
1546+
# Default: true
15391547
name: false
1548+
# Check b.Helper() begins helper function.
1549+
# Default: true
15401550
begin: false
15411551
tb:
1552+
# Check *testing.TB is first param (or after context.Context) of helper function.
1553+
# Default: true
15421554
first: false
1555+
# Check *testing.TB param has name tb.
1556+
# Default: true
15431557
name: false
1558+
# Check tb.Helper() begins helper function.
1559+
# Default: true
1560+
begin: false
1561+
fuzz:
1562+
# Check *testing.F is first param (or after context.Context) of helper function.
1563+
# Default: true
1564+
first: false
1565+
# Check *testing.F param has name f.
1566+
# Default: true
1567+
name: false
1568+
# Check f.Helper() begins helper function.
1569+
# Default: true
15441570
begin: false
15451571

15461572
unparam:

0 commit comments

Comments
 (0)