gocmt icon indicating copy to clipboard operation
gocmt copied to clipboard

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

Open fizzday opened this issue 6 years ago • 1 comments

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 ...

fizzday avatar Nov 11 '19 04:11 fizzday

@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 ...".

cuonglm avatar Nov 11 '19 04:11 cuonglm