-
Notifications
You must be signed in to change notification settings - Fork 490
Avoid generated files #239
Comments
Is it jumping the gun to say that the consensus is look for one of "DO NOT EDIT" or "Code generated by" in the first comment block? |
Now that the code generation header is formalized via https://golang.org/s/generatedcode, this seems tractable. |
I'm still experiencing linting alerts for generated files. I'm running go 1.8, my I have two files generated by Ditto for running golint from vim-go. Unless I'm missing something, the |
You must have an old version of protoc-gen-go. This was fixed in golang/protobuf@47eb67e |
Thanks @dsnet. The code was certainly generated before that commit |
|
Generated source files are not generally expected to follow proper Go style. For example, running lint on a protobuf-generated Go file reports hundreds of lint issues.
With the upcoming generator disclaimer headers, we should consider having lint ignore these types of source files: golang/go#13560
The text was updated successfully, but these errors were encountered: