Skip to content

fix golint warnings/errors on pkg/system and pkg/stdcopy#15125

Merged
jessfraz merged 1 commit intomoby:masterfrom
WeiZhang555:golint-stdcopy-system
Aug 21, 2015
Merged

fix golint warnings/errors on pkg/system and pkg/stdcopy#15125
jessfraz merged 1 commit intomoby:masterfrom
WeiZhang555:golint-stdcopy-system

Conversation

@WeiZhang555
Copy link
Contributor

Part of #14756

Signed-off-by: Zhang Wei zhangwei555@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.

s/return/returns/

@gdevillele
Copy link
Contributor

You need a period at the end of the sentences for the func comments.

@tiborvass
Copy link
Contributor

@WeiZhang555 sorry needs another rebase :(

@WeiZhang555 WeiZhang555 force-pushed the golint-stdcopy-system branch from 197091c to 17147a0 Compare July 30, 2015 01:44
@WeiZhang555
Copy link
Contributor Author

Refreshed, thank you for help reviewing!
ping @tiborvass @gdevillele @vdemeester

@tiborvass
Copy link
Contributor

LGTM

@WeiZhang555
Copy link
Contributor Author

It's strange that it looks like I missed some file, golint pkg/system report nothing but golint pkg/system/events_windows.go report warnings, maybe this is a golint bug?
I'll add the missing

@WeiZhang555 WeiZhang555 force-pushed the golint-stdcopy-system branch from 17147a0 to b266471 Compare July 31, 2015 10:03
@WeiZhang555
Copy link
Contributor Author

Updated, please help review @all-maintainers :)

@vdemeester
Copy link
Member

It's strange that it looks like I missed some file, golint pkg/system report nothing but golint pkg/system/events_windows.go report warnings, maybe this is a golint bug?

@WeiZhang555 golint do not look for other platform go files (or at least the sthg_else.go). That's why we do golint $package/*.go in validate-lint, to make sure we don't miss them 😝 .

Copy link
Member

Choose a reason for hiding this comment

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

s/doesn't support/is not supporty by/
but it's a nit 😊

@WeiZhang555 WeiZhang555 force-pushed the golint-stdcopy-system branch from b266471 to f21d953 Compare July 31, 2015 11:00
@WeiZhang555
Copy link
Contributor Author

@vdemeester Updated again. Thank you for your kind and patient advice! 😄
Let's see how it works this time.

@jmorganca
Copy link
Contributor

Should pkg/archive be added to hack/make/validate-lint?

@tiborvass
Copy link
Contributor

@JeffDM No because this PR doesn't address pkg/archive. The only changes in pkg/archive are to rename a variable from pkg/system.

@icecrime
Copy link
Contributor

icecrime commented Aug 3, 2015

@vdemeester @gdevillele PTAL!

Copy link
Member

Choose a reason for hiding this comment

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

small nit, a period here 😊.

@vdemeester
Copy link
Member

LGTM 😉

@WeiZhang555 WeiZhang555 force-pushed the golint-stdcopy-system branch from f21d953 to 6de4772 Compare August 4, 2015 07:41
@WeiZhang555
Copy link
Contributor Author

@vdemeester period added, thank you! 😆

@WeiZhang555 WeiZhang555 force-pushed the golint-stdcopy-system branch from 6de4772 to 3255ee3 Compare August 5, 2015 01:26
@WeiZhang555
Copy link
Contributor Author

Rebased

@gdevillele
Copy link
Contributor

$ make test failed here.

@WeiZhang555 WeiZhang555 force-pushed the golint-stdcopy-system branch from 3255ee3 to 1983583 Compare August 6, 2015 01:57
@WeiZhang555
Copy link
Contributor Author

All green now.
Ping @gdevillele @vdemeester @tiborvass @icecrime

@gdevillele
Copy link
Contributor

LGTM

@WeiZhang555 WeiZhang555 force-pushed the golint-stdcopy-system branch from 1983583 to de7532c Compare August 8, 2015 07:18
@WeiZhang555
Copy link
Contributor Author

Ping @gdevillele @vdemeester @tiborvass @icecrime
Any progress about this? 😄

Copy link
Member

Choose a reason for hiding this comment

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

Could you remove this one ? pkg/systemd is not here anymore (and thus is not covered by the PR 😅)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, some rebase mistake, will remove it.

@WeiZhang555 WeiZhang555 force-pushed the golint-stdcopy-system branch from de7532c to 9a03628 Compare August 11, 2015 06:28
@WeiZhang555
Copy link
Contributor Author

Updated :)

@vdemeester
Copy link
Member

@WeiZhang555 you're gonna need yet another rebase (to fix the experimental build). sorry 😅 (hopefully this is the last one 😉 )

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
@WeiZhang555 WeiZhang555 force-pushed the golint-stdcopy-system branch from 9a03628 to 7e420ad Compare August 13, 2015 10:50
@WeiZhang555
Copy link
Contributor Author

OK, updated. 😄

@WeiZhang555
Copy link
Contributor Author

@vdemeester
Copy link
Member

still LGTM for me 😉

@gdevillele
Copy link
Contributor

LGTM

jessfraz pushed a commit that referenced this pull request Aug 21, 2015
fix golint warnings/errors on pkg/system and pkg/stdcopy
@jessfraz jessfraz merged commit ecff4ba into moby:master Aug 21, 2015
@WeiZhang555 WeiZhang555 deleted the golint-stdcopy-system branch August 24, 2015 01:30
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.

8 participants