-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add docenv linter #5143
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
Add docenv linter #5143
Conversation
|
Hey, thank you for opening your first Pull Request ! |
|
In order for a pull request adding a linter to be reviewed, the linter and the PR must follow some requirements.
Pull Request Description
Linter
The Linter Tests Inside Golangci-lint
|
|
Hello, The checklist is not completed but I already have some problems with this linter:
Everything feels extremely niche and related to the promotion of your tool: I will sleep on that but, for now, I think this linter will not be accepted. |
|
Hello @ldez, I see your point. The goal of both tools |
|
@g4s8 maybe it's better to create a |
|
@alexandear thanks, sounds like a good idea |
|
Sorry, but a linter about "undocumented" tags will have the same problem: why fields with struct tags should be more documented than other fields? Based on my previous comment, for now, I closed this PR. I recommend modifying your linter to be usable as a plugin: https://golangci-lint.run/contributing/new-linters/#how-to-add-a-private-linter-to-golangci-lint |
Add new docenv linter to validate that struct fields with env tags are documented: https://github.com/g4s8/envdoc/blob/master/docenv/README.md
Linter source code: https://github.com/g4s8/envdoc/tree/master/linter