An exported name repeats the name of its package
What it finds
package config; type ConfigLoader struct: callers write the package name before every exported name, so config.ConfigLoader says "config" twice where config.Loader says the same once.
Reported are exported top-level functions and types of a package other than main whose name starts with the package name, in any case, followed by an upper-case letter.
From the rule's source, stuttering_name.rs.
package config type ConfigLoader struct{}tx0 reports: callers write config.ConfigLoader, which repeats the package name type Loader struct{} func Configure() {} Turn it on, off or suppress it
The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/go:stuttering-name" = "warning"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:stuttering-name] reason="..."tx0 explain tx0/go:stuttering-name shows the same in the terminal. Found a false positive? Report it.