-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add swaggo/swag formatter #5749
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
base: main
Are you sure you want to change the base?
Conversation
Hey, thank you for opening your first Pull Request ! |
In order for a pull request adding a formatter to be reviewed, the linter and the PR must follow some requirements.
Pull Request Description
Formatter
The Formatter Tests Inside Golangci-lint
|
🤔 The formatter is not isolated into a module, so there are unrelated dependencies. I'm not sure I want to integrate this formatter in this way. Also, there is dead code inside the formatter itself. |
That's all fair. I was trying to integrate an existing formatter for my own use, but that means I don't really have much control over it. I could try to raise an issue or PR on the base repo but I'm uncertain how much work it would take to adress the above issues |
And it's related to Swagger 2.0 and not OpenAPI 3 (2017) |
I have a solution, but before applying it, I want to evaluate the value of this formatter. If it's too niche and old, it can become a problem quickly. |
And based on https://github.com/swaggo/swag/releases/tag/v2.0.0-rc4, OpenAPI V3 will be supported. |
The project seems active. I don't think that isolating the formatter inside a module will be something valuable for the swaggo team:
So, the best approach for me is to create a hard fork with only the useful files (the fork will be created inside the golangci organization). I think it can be a good idea to open an issue on the swaggo/swag repository to inform the team of this fork. |
Adding the comment formatter from swaggo/swag