Skip to content

Fix golint warning on pkg/sysinfo#14840

Merged
runcom merged 1 commit intomoby:masterfrom
HuKeping:golint-pkg-sysinfo
Aug 4, 2015
Merged

Fix golint warning on pkg/sysinfo#14840
runcom merged 1 commit intomoby:masterfrom
HuKeping:golint-pkg-sysinfo

Conversation

@HuKeping
Copy link
Contributor

Part of #14756
Signed-off-by: Hu Keping hukeping@huawei.com

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these exported fields should be documented

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems golint will not get crazy about that, but I agree with you it is better to add comments on those exported fields.

@LK4D4
Copy link
Contributor

LK4D4 commented Jul 27, 2015

@HuKeping Would you mind to add pkg/sysinfo to hack/make/validate-lint?

@HuKeping
Copy link
Contributor Author

OK, I'll do that

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by -> for

@tiborvass
Copy link
Contributor

LGTM

@jmorganca
Copy link
Contributor

I'm getting the warning:

Errors from glint:
pkg/sysinfo/sysinfo_freebsd.go:3:1: comment on exported function New should be of the form "New ..."

@vdemeester
Copy link
Member

@JeffDM this means @HuKeping missed one.
@HuKeping could you update to add it 😊 ? (you can either use make validate-lint or golint pkg/sysinfo/*.go to make sure you got all of the files 😉 .

@HuKeping
Copy link
Contributor Author

HuKeping commented Aug 1, 2015

I'll check that. There is no more warning on my golint pkg/sysinfo, maybe it should be golint pkg/sysinfo/*.go

@HuKeping
Copy link
Contributor Author

HuKeping commented Aug 1, 2015

updated, thanks @JeffDM

Signed-off-by: Hu Keping <hukeping@huawei.com>
@runcom
Copy link
Member

runcom commented Aug 4, 2015

LGTM, waiting windows janky

runcom added a commit that referenced this pull request Aug 4, 2015
@runcom runcom merged commit 23dab01 into moby:master Aug 4, 2015
@HuKeping HuKeping deleted the golint-pkg-sysinfo branch August 5, 2015 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants