Go doc enforcement #4323
Answered
by
bombsimon
chrishalbert
asked this question in
Q&A
Go doc enforcement
#4323
-
|
I'd like to keep my code well documented so I was looking for a go doc comment enforcement linter. Am I totally missing the obvious? I feel like I am. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
bombsimon
Jan 17, 2024
Replies: 1 comment 1 reply
-
|
Have a look at exclude-use-defaults and default exclusions. By default no matter what linters you enable some issues are always excluded for historical reasons. One if them is EXC0002 from Try passing issues:
exclude-use-defaults: false
# Or include them, not 100% sure this works
include:
- EXC0013
- EXC0014
linters:
enable:
- revive |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
chrishalbert
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have a look at exclude-use-defaults and default exclusions. By default no matter what linters you enable some issues are always excluded for historical reasons. One if them is EXC0002 from
golint, one is EXC0011 fromstylecheckand two others are EXC0013 and EXC0014 fromrevive.Try passing
--enable revive --exclude-use-defaults=falseor setting this config and you should see reports.