A go: directive has a space after the slashes, which turns it into a plain comment

tx0/go:spaced-directivedefaultwarningbug

What it finds

// go:generate stringer -type=Kind: the go tool and the compiler recognize a directive only when go: follows the slashes directly. With a space it is an ordinary comment, so the generator never runs, the file is not embedded, or the function is inlined after all.

Reported are line comments on lines of their own that start with // go: or //\tgo: followed by one of the directives build, generate, embed, noinline, nosplit, noescape, linkname, norace or nocheckptr. The fix removes the space.

From the rule's source, spaced_directive.rs.

Example from the rule's tests
package p // go:generate stringer -type=Kindtx0 reports: go:generate is not a directive heretype Kind int //go:generate stringer -type=Modetype Mode int // go:noinlinetx0 reports: go:noinline is not a directive herefunc f() {} // go:something else is prosefunc g() {}
Highlighted lines are the ones tx0 reports, with its message under each; the other lines are left alone.

Turn it on, off or suppress it

The rule runs in every tier. To turn it off for a project, set its level in tx0.toml:

tx0.toml
[rules]
"tx0/go:spaced-directive" = "off"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/go:spaced-directive] reason="..."

tx0 explain tx0/go:spaced-directive shows the same in the terminal. Found a false positive? Report it.