-
Notifications
You must be signed in to change notification settings - Fork 909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Golint and Godoc issues #669
Comments
Go for it. Please add golint to Travis.
…On Sun, Oct 22, 2017 at 5:20 AM, Ainar Garipov ***@***.***> wrote:
Both golint and godoc.org show some issues in packages' documentation.
The linter mostly complains about "malformed" or missing doc comments, e.g. notify.go:63:1:
comment on exported function NewListenerConn should be of the form
"NewListenerConn ...". It also complains about package listen_example's
name containing an underscore. Godoc is mostly fine, aside from the missing
comments, but some code and lists are not aligned to the 80 char mark, and
thus the scroll bars appears at https://godoc.org/github.com/
lib/pq#pkg-constants. Thus, some proposals:
-
Align all code and lists to the 80 char mark.
-
Add missing documentation and fix documentation golint complains about.
-
Move listen_example to examples/listen.
-
Add a link to godoc.org to the README.
Adding golint to the Travis builds is doable, but I am not sure if it's
worth it.
Thoughts?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#669>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABdsPG96nqiA1Jlpli4AqDhDOtmIsihKks5suwjngaJpZM4QB4N7>
.
|
ainar-g
added a commit
to ainar-g/pq
that referenced
this issue
Oct 22, 2017
This change introduces golint to the TravisCI build process, fixes everything it has found, and additionally fixes some Godoc scrolling isuues. Fixes lib#669.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both golint and godoc.org show some issues in packages' documentation. The linter mostly complains about "malformed" or missing doc comments, e.g.
notify.go:63:1: comment on exported function NewListenerConn should be of the form "NewListenerConn ..."
. It also complains about packagelisten_example
's name containing an underscore. Godoc is mostly fine, aside from the missing comments, but some code and lists are not aligned to the 80 char mark, and thus the scroll bars appears at https://godoc.org/github.com/lib/pq#pkg-constants. Thus, some proposals:Align all code and lists to the 80 char mark.
Add missing documentation and fix documentation golint complains about.
Move
listen_example
toexamples/listen
.Add a link to godoc.org to the README.
Adding golint to the Travis builds is doable, but I am not sure if it's worth it.
Thoughts?
The text was updated successfully, but these errors were encountered: