You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Linter fails
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):
Ubuntu
]chrome
]Additional context
swag cli
should generatedocTemplateSwagger
instead ofdocTemplate_swagger
and
SwaggerInfoSwagger
instead ofSwaggerInfo_swagger
The text was updated successfully, but these errors were encountered: