Skip to content

golint fixes on runconfig#14751

Merged
jessfraz merged 1 commit intomoby:masterfrom
vdemeester:runconfig-lint
Jul 27, 2015
Merged

golint fixes on runconfig#14751
jessfraz merged 1 commit intomoby:masterfrom
vdemeester:runconfig-lint

Conversation

@vdemeester
Copy link
Member

Had a 3 hours long train trip so I did a golint run on the runconfig package. Mostly documentation, even on Config and HostConfig 🐸.

If it feels unecessary feel free to close the PR. 🐧

Signed-off-by: Vincent Demeester vincent@sbr.pm

@runcom
Copy link
Member

runcom commented Jul 20, 2015

Amazing, LGTM if janky's happy

Copy link
Member

Choose a reason for hiding this comment

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

I wouldn't say lxc here, unless I'm mistaken this is specifically about caps available to a user in a container, not really lxc specific.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh you're right, typo here, will fix 😉

Copy link
Member Author

Choose a reason for hiding this comment

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

Hum on this one the structure is LxcConfig, but yeah, the comment on the CapList were wrong, I've updated it.

@cpuguy83
Copy link
Member

Just a couple of nits regarding the mentioning specifically of lxc. in CapList

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it worth to mention that this method is needed to implement json.Marshaller. And I think this is main usage of this method.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right :)

Copy link
Contributor

Choose a reason for hiding this comment

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

s/Marshal (or serialize)/marshals (or serializes)/

@vdemeester vdemeester force-pushed the runconfig-lint branch 2 times, most recently from 60cbac5 to eec56bb Compare July 20, 2015 21:34
@runcom
Copy link
Member

runcom commented Jul 20, 2015

@vdemeester there are some compiling errors

@vdemeester
Copy link
Member Author

@runcom oups.. forgot to add a change before commit/push..

@vdemeester vdemeester force-pushed the runconfig-lint branch 2 times, most recently from 778f4ad to 843fb03 Compare July 21, 2015 06:16
Copy link
Member Author

Choose a reason for hiding this comment

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

Wasn't sure about adding the json:… notation here, but as it is in the API and consumed/produced already by other external components, I though it would be best to make it so the json in the API doesn't change (to not break external tools).

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds safest to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

s/unmarshal (or deserialize)/unmarshals (or deserializes)/

@duglin
Copy link
Contributor

duglin commented Jul 21, 2015

@vdemeester minor comments. But per @tiborvass's irc comment, you need a period at the end of the sentences for the func comments.
https://botbot.me/freenode/docker-dev/2015-07-21/?msg=45149757&page=4

@vdemeester vdemeester force-pushed the runconfig-lint branch 2 times, most recently from 52bbfa5 to 6cf9c82 Compare July 22, 2015 07:12
@vdemeester
Copy link
Member Author

@duglin thx 😊. Updated it, I think I've added a period everywhere 😝.

@LK4D4
Copy link
Contributor

LK4D4 commented Jul 22, 2015

@vdemeester Need rebase :)

@vdemeester
Copy link
Member Author

@LK4D4 oh, already ? 😊 Done 😉

@vdemeester
Copy link
Member Author

Rebased again and added godoc on *_windows.go files 😝

@jessfraz
Copy link
Contributor

ah man needs rebase, then ping me ;)

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
@vdemeester
Copy link
Member Author

@jfrazelle yep, systemd/booted.go removed, that's why 👯.
Rebased, weird errors on janky/experimental few hours ago, seems to be going smoothly this time 😅.

@jessfraz
Copy link
Contributor

LGTM

jessfraz pushed a commit that referenced this pull request Jul 27, 2015
@jessfraz jessfraz merged commit 542de78 into moby:master Jul 27, 2015
@vdemeester vdemeester deleted the runconfig-lint branch July 27, 2015 22:01
@vdemeester
Copy link
Member Author

yay 🎉

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.

7 participants