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

golint has update the rule, is there any plan for support it? #2

Open
fizzday opened this issue Nov 11, 2019 · 1 comment
Open

golint has update the rule, is there any plan for support it? #2

fizzday opened this issue Nov 11, 2019 · 1 comment

Comments

@fizzday
Copy link

fizzday commented Nov 11, 2019

now, the method need prefix for golint, is there any plan for support it? such as:

go lint report

gorose/orm.go
Line 81: warning: comment on exported method Orm.Table should be of the form "Table ..." (golint)

orm.go source code

func (dba *Orm) Table(tab interface{}) IOrm {
	dba.GetISession().Bind(tab)
	//dba.table = dba.GetISession().GetTableName()
	return dba
}

this need the comment like // Orm.Table ..., not // Table ...

@cuonglm
Copy link
Owner

cuonglm commented Nov 11, 2019

@fizzday Thanks for reporting. Can you make a small reproducible program?

As your description above, the warning message still indicates that the form is "Table ...".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants