Skip to content
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

Closed
ainar-g opened this issue Oct 22, 2017 · 1 comment · Fixed by #670
Closed

Golint and Godoc issues #669

ainar-g opened this issue Oct 22, 2017 · 1 comment · Fixed by #670

Comments

@ainar-g
Copy link
Contributor

ainar-g commented Oct 22, 2017

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?

@tamird
Copy link
Collaborator

tamird commented Oct 22, 2017 via email

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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants