Skip to content

Commit

Permalink
docs(thelper): add fuzz config and description (#2887)
Browse files Browse the repository at this point in the history
docs(thelper): add missing `fuzz` config and description
  • Loading branch information
maratori authored May 30, 2022
1 parent dfb01c8 commit d704754
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1503,19 +1503,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:
Expand Down

0 comments on commit d704754

Please sign in to comment.