Skip to content

Enable golint in pkg/jsonlog and pkg/jsonmessage part of #14756#15074

Merged
cpuguy83 merged 1 commit intomoby:masterfrom
coolljt0725:14756_enable_golint_2
Aug 8, 2015
Merged

Enable golint in pkg/jsonlog and pkg/jsonmessage part of #14756#15074
cpuguy83 merged 1 commit intomoby:masterfrom
coolljt0725:14756_enable_golint_2

Conversation

@coolljt0725
Copy link
Contributor

pkg/jsonlog
pkg/jsonmessage

Signed-off-by: Lei Jitang leijitang@huawei.com

Choose a reason for hiding this comment

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

Perhaps document how the format string is interpreted.

@tiborvass
Copy link
Contributor

Ping @coolljt0725

@coolljt0725
Copy link
Contributor Author

@tiborvass sorry ,a bit busy these days, I'll update this tomorrow

@tiborvass
Copy link
Contributor

@coolljt0725 no worries! Thanks for the heads-up!

@coolljt0725 coolljt0725 force-pushed the 14756_enable_golint_2 branch 3 times, most recently from 8cb3c0c to 6001dd6 Compare August 3, 2015 11:48
@coolljt0725
Copy link
Contributor Author

@tiborvass @aaronlehmann updated. For the name of JSONLogBytes, I changes it to JSONLogs to fix golint warnings, perhaps you have a better suggessions.

Copy link
Contributor

Choose a reason for hiding this comment

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

please be a bit more specific with what it does with in and out and isTerminal

@coolljt0725 coolljt0725 force-pushed the 14756_enable_golint_2 branch from 6001dd6 to cba7a12 Compare August 6, 2015 01:58
@coolljt0725
Copy link
Contributor Author

@tiborvass updated

@abronan
Copy link
Contributor

abronan commented Aug 6, 2015

Just added a couple of suggestions on the comments to add more informations and to correct some mistakes 😃, other than that LGTM

@coolljt0725 coolljt0725 force-pushed the 14756_enable_golint_2 branch from cba7a12 to 257f69f Compare August 7, 2015 00:55
@coolljt0725
Copy link
Contributor Author

@abronan Thanks, updated

Copy link
Member

Choose a reason for hiding this comment

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

It would be helpful to put what a JSONLog is, what it is used for.
Think about a newcomer reading and trying to figure it out.

Copy link
Member

Choose a reason for hiding this comment

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

JSONLog represents a log message, typically a single entry from a given log stream.
JSONLogs can be easily serialized to and from JSON and support custom formatting.

@coolljt0725 coolljt0725 force-pushed the 14756_enable_golint_2 branch from 257f69f to 5220f3b Compare August 8, 2015 03:26
Signed-off-by: Lei Jitang <leijitang@huawei.com>
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