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

Add "constructor" linter #3488

Open
leonklingele opened this issue Jan 18, 2023 · 0 comments
Open

Add "constructor" linter #3488

leonklingele opened this issue Jan 18, 2023 · 0 comments
Labels
enhancement New feature or improvement linter: new Support new linter no decision No decision to fix or not

Comments

@leonklingele
Copy link
Member

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

@leonklingele leonklingele added the enhancement New feature or improvement label Jan 18, 2023
@ldez ldez added linter: new Support new linter no decision No decision to fix or not labels Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement linter: new Support new linter no decision No decision to fix or not
Projects
None yet
Development

No branches or pull requests

2 participants