Skip to content
This repository was archived by the owner on May 9, 2021. It is now read-only.

can i set some word not lint? #262

Closed
guotie opened this issue Nov 28, 2016 · 3 comments
Closed

can i set some word not lint? #262

guotie opened this issue Nov 28, 2016 · 3 comments

Comments

@guotie
Copy link

guotie commented Nov 28, 2016

such as Id, etc

@dsnet
Copy link
Member

dsnet commented Nov 28, 2016

Hi, I apologize, but I do not understand this issue report.

@guotie
Copy link
Author

guotie commented Nov 29, 2016

such as Id , golint will warning it to be ID, I want golint ignore this word.

@dsnet
Copy link
Member

dsnet commented Dec 28, 2016

Trying to whitelist a specific word is too specific of feature to provide, but I can imagine behavior of this sort to be covered by #263.

That being said, the style that the Go community has converged upon is to use "ID" instead of "Id" as a shorthand for the word "identity". I would highly recommend against ignoring this warning.

@dsnet dsnet closed this as completed Dec 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants