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

Add package name in doc.go to pass the Go linter checks #1463

Closed
dsha256 opened this issue Feb 6, 2023 · 0 comments · Fixed by #1583
Closed

Add package name in doc.go to pass the Go linter checks #1463

dsha256 opened this issue Feb 6, 2023 · 0 comments · Fixed by #1583

Comments

@dsha256
Copy link

dsha256 commented Feb 6, 2023

Add package name in doc.go to pass Go linter checks

Currently golint ./... is giving the following error:

package comment should be of the form "Package swagger ..."

Another option is to add // +build !codeanalysis during generating the file

Using this approach prevents parsing of the files, and significantly reduced our memory consumption during build time.


The linter-related packages and their versions I use currently

golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7

@dsha256 dsha256 changed the title Add package name in doc.go to pass go linter check Add package name in doc.go to pass the Go linter checks Feb 6, 2023
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

Successfully merging a pull request may close this issue.

1 participant