Skip to content

ST1003 triggered by names of fuzzing functions #1420

Closed

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)

Activity

  1. added
    needs-triage
    on Jul 6, 2023
  2. removed
    needs-triage
    on Jul 6, 2023
  3. added a commit that references this issue on Aug 17, 2023
    cdf983c
  4. added a commit that references this issue on Feb 27, 2024
    ddee6bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions