Skip to content

ST1003 triggered by names of fuzzing functions #1420

Closed
@ainar-g

Description

@ainar-g
staticcheck --version
staticcheck (devel, v0.5.0-0.dev.0.20230703140048-65cc494ab55c)
package main_test

import (
	"io"
	"testing"
)

func FuzzA_B(f *testing.F) {
	f.Add("a")

	f.Fuzz(func(_ *testing.T, input string) {
		_, _ = io.WriteString(io.Discard, input)
	})
}
staticcheck --checks='*'
main_test.go:8:6: should not use underscores in Go names; func FuzzA_B should be FuzzAB (ST1003)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions