-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
enhancementNew feature or improvementNew feature or improvementlinter: newSupport new linterSupport new linterno decisionNo decision to fix or notNo decision to fix or not
Description
Your feature request related to a problem? Please describe.
The constructor
linter reports whether name of a constructor like function does not begin "New":
type T1 struct{}
func NewT1() (t *T1) { return } // OK
func CreateT1() (t *T1) { return } // want `name of a constructor like function must begin "New"`
https://github.com/gostaticanalysis/constructor
Describe the solution you'd like.
—
Describe alternatives you've considered.
—
Additional context.
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or improvementNew feature or improvementlinter: newSupport new linterSupport new linterno decisionNo decision to fix or notNo decision to fix or not