Skip to content

Commit d704754

Browse files
authored
docs(thelper): add fuzz config and description (#2887)
docs(thelper): add missing `fuzz` config and description
1 parent dfb01c8 commit d704754

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.golangci.reference.yml

+28-2
Original file line numberDiff line numberDiff line change
@@ -1503,19 +1503,45 @@ linters-settings:
15031503
skip-regexp: (export|internal)_test\.go
15041504

15051505
thelper:
1506-
# The following configurations enable all checks.
1507-
# All checks are enabled by default.
15081506
test:
1507+
# Check *testing.T is first param (or after context.Context) of helper function.
1508+
# Default: true
15091509
first: false
1510+
# Check *testing.T param has name t.
1511+
# Default: true
15101512
name: false
1513+
# Check t.Helper() begins helper function.
1514+
# Default: true
15111515
begin: false
15121516
benchmark:
1517+
# Check *testing.B is first param (or after context.Context) of helper function.
1518+
# Default: true
15131519
first: false
1520+
# Check *testing.B param has name b.
1521+
# Default: true
15141522
name: false
1523+
# Check b.Helper() begins helper function.
1524+
# Default: true
15151525
begin: false
15161526
tb:
1527+
# Check *testing.TB is first param (or after context.Context) of helper function.
1528+
# Default: true
15171529
first: false
1530+
# Check *testing.TB param has name tb.
1531+
# Default: true
15181532
name: false
1533+
# Check tb.Helper() begins helper function.
1534+
# Default: true
1535+
begin: false
1536+
fuzz:
1537+
# Check *testing.F is first param (or after context.Context) of helper function.
1538+
# Default: true
1539+
first: false
1540+
# Check *testing.F param has name f.
1541+
# Default: true
1542+
name: false
1543+
# Check f.Helper() begins helper function.
1544+
# Default: true
15191545
begin: false
15201546

15211547
unparam:

0 commit comments

Comments
 (0)