Skip to content
This repository was archived by the owner on Jan 18, 2026. It is now read-only.
This repository was archived by the owner on Jan 18, 2026. It is now read-only.

Generated code identifier comment not on first line #454

@tomarrell

Description

@tomarrell

The comment identifying generated code matches the regex, but it does not abide by the second rule below:

To convey to humans and machine tools that code is generated, generated source should have a line that matches the following regular expression (in Go syntax):

^// Code generated .* DO NOT EDIT\.$

This line must appear before the first non-comment, non-blank text in the file. 

Directly from: https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source

This leads to misidentification of the generated code files by some tools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions