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

Linter fails #1136

Closed
pilinux opened this issue Feb 13, 2022 · 0 comments
Closed

Linter fails #1136

pilinux opened this issue Feb 13, 2022 · 0 comments

Comments

@pilinux
Copy link
Contributor

pilinux commented Feb 13, 2022

Linter fails

docs/docs.go:7:7: don't use underscores in Go names; const docTemplate_swagger should be docTemplateSwagger
docs/docs.go:102:5: don't use underscores in Go names; var SwaggerInfo_swagger should be SwaggerInfoSwagger

To Reproduce

swag init

golint ./...

revive ./...

Expected behavior

The convention in Go is to use MixedCaps or mixedCaps (simply camelCase) rather than underscores to write multi-word names.

Your swag version
1.7.9

Your go version
1.17.5

Desktop (please complete the following information):

  • OS: [Ubuntu]
  • Browser: [chrome]

Additional context
swag cli should generate docTemplateSwagger instead of docTemplate_swagger
and SwaggerInfoSwagger instead of SwaggerInfo_swagger

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

No branches or pull requests

1 participant