Skip to content

Fix golint warnings for daemon/execdriver/*#14848

Merged
LK4D4 merged 2 commits intomoby:masterfrom
hqhq:hq_golint_execdriver
Jul 28, 2015
Merged

Fix golint warnings for daemon/execdriver/*#14848
LK4D4 merged 2 commits intomoby:masterfrom
hqhq:hq_golint_execdriver

Conversation

@hqhq
Copy link
Contributor

@hqhq hqhq commented Jul 22, 2015

Addresses: #14756

Signed-off-by: Qiang Huang h.huangqiang@huawei.com

@hqhq hqhq force-pushed the hq_golint_execdriver branch 2 times, most recently from 0b4b7c8 to 78b758d Compare July 22, 2015 10:23
Copy link
Member

Choose a reason for hiding this comment

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

Needs more info, i.e. what/where is this callback used?

@cpuguy83
Copy link
Member

All in all I think most of the doc strings could use some more detail as things like "Foo stores information about foos" isn't all that helpful.

@LK4D4
Copy link
Contributor

LK4D4 commented Jul 22, 2015

I agree with @cpuguy83

@hqhq hqhq force-pushed the hq_golint_execdriver branch from 78b758d to 37c7119 Compare July 23, 2015 03:51
@hqhq
Copy link
Contributor Author

hqhq commented Jul 23, 2015

@cpuguy83 @LK4D4 updated comments as you suggested and added some extra comments for some other functions/structs.

Feel free to point them out if you think they need more details, I just thought most of them are quite self explained, which is why they have no docs in the first place.

Copy link
Contributor

Choose a reason for hiding this comment

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

launch :)

Copy link
Member

Choose a reason for hiding this comment

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

mmm, lxc commands. omnomnomnom

cookiemonster

@hqhq hqhq force-pushed the hq_golint_execdriver branch from 37c7119 to e2616ff Compare July 24, 2015 07:25
Copy link
Member

Choose a reason for hiding this comment

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

Same thing as below regarding caps

@cpuguy83
Copy link
Member

@hqhq Great work on this! This is a fantastic start.

I did notice we have slightly different doc strings between native/lxc on stuff that should basically be the same as they are just implementing some interface.
I wonder if it's good enough to put the doc details on the Driver methods in the interface definition and just mention in the actual drivers this implements the exec driver <foo> interface, and any pertinent details required for that particular implementation.

@hqhq hqhq force-pushed the hq_golint_execdriver branch from e2616ff to 654fa02 Compare July 25, 2015 03:04
@hqhq
Copy link
Contributor Author

hqhq commented Jul 25, 2015

@cpuguy83 Updated, now all common docs are in interface, it's easier to maintain, what do you think now?

@cpuguy83
Copy link
Member

LGTM

Copy link
Member

Choose a reason for hiding this comment

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

s/do/does/ or s/do/to do/ ?

@vdemeester
Copy link
Member

@hqhq Could you rebase it so you can add the daemon/execdriver package and sub-packages to hack/make/validate-lint 😉 .

@hqhq hqhq force-pushed the hq_golint_execdriver branch from 654fa02 to 6b44c35 Compare July 27, 2015 07:24
@hqhq
Copy link
Contributor Author

hqhq commented Jul 27, 2015

@vdemeester Thanks, updated.

@vdemeester
Copy link
Member

ah, driver_unsupported*.go needs some lint too 😊.

@hqhq hqhq force-pushed the hq_golint_execdriver branch from 6b44c35 to dd61f36 Compare July 27, 2015 08:11
@hqhq
Copy link
Contributor Author

hqhq commented Jul 27, 2015

Fixed, should'v used golint xxx/*.go 😄

@jessfraz
Copy link
Contributor

needs rebase sorry

hqhq added 2 commits July 28, 2015 08:43
Addresses: moby#14756

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
@hqhq hqhq force-pushed the hq_golint_execdriver branch from dd61f36 to 4862d72 Compare July 28, 2015 01:40
@hqhq
Copy link
Contributor Author

hqhq commented Jul 28, 2015

@jfrazelle done.

@RichardScothern
Copy link
Contributor

LGTM

@LK4D4
Copy link
Contributor

LK4D4 commented Jul 28, 2015

@hqhq Thanks!
LGTM

LK4D4 added a commit that referenced this pull request Jul 28, 2015
Fix golint warnings for daemon/execdriver/*
@LK4D4 LK4D4 merged commit f809037 into moby:master Jul 28, 2015
@hqhq hqhq deleted the hq_golint_execdriver branch July 29, 2015 00:40
Copy link
Contributor

Choose a reason for hiding this comment

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

@hqhq you forgot windows! :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tiborvass Yeah, I didn't use golint xxx/*.go just goling xxx/ so codes for windows are missed when I sent the PR, windows part is in another PR #15114, PTAL, thanks.

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.

9 participants