Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ST1003 triggered by names of fuzzing functions #1420

Closed
ainar-g opened this issue Jul 6, 2023 · 0 comments
Closed

ST1003 triggered by names of fuzzing functions #1420

ainar-g opened this issue Jul 6, 2023 · 0 comments

Comments

@ainar-g
Copy link
Contributor

ainar-g commented Jul 6, 2023

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)
@ainar-g ainar-g added false-positive needs-triage Newly filed issue that needs triage labels Jul 6, 2023
@dominikh dominikh removed the needs-triage Newly filed issue that needs triage label Jul 6, 2023
dominikh added a commit that referenced this issue Aug 17, 2023
Closes: gh-1420
(cherry picked from commit ddee6bb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants