Skip to content

Mark generated files with a comment? #2094

@quasilyte

Description

@quasilyte

It looks like _aot_generated/* files were generated (I tried a quick search, but mostly cmake/make files were showing up, so I am unsure what generated them at this point).

A comment might look like this:

// Code generated by <command>! DO NOT EDIT.

Where <command> is an actual command/script that was responsible for this file.

(This is a Go's standard format ^// Code generated .* DO NOT EDIT\.$)

This solves 2 issues:

  1. It will be easier to find the code that generates these files
  2. The editor will warn on an editing attempt on these files (and maybe we can filter-out those results from the global search if plugin helps a bit here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions