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

Use conventional file header in generated files #105

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

magnusbaeck
Copy link
Member

Applicable Issues

Fixes #96

Description of the Change

The go generate documentation states that "this file is generated, don't touch" lines should match a particular regexp so that tools like VS Code can detect generated files and behave sensibly. Let's follow that convention.

Alternate Designs

None.

Possible Drawbacks

None.

Sign-off

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.

Signed-off-by: Magnus Bäck <[email protected]>

The "go generate" documentation states that "this file is generated,
don't touch" lines should match a particular regexp so that tools like
VS Code can detect generated files and behave sensibly. Let's follow
that convention.
@magnusbaeck magnusbaeck added the bug Something isn't working label Nov 27, 2024
@magnusbaeck magnusbaeck requested a review from a team as a code owner November 27, 2024 15:23
Copy link
Member

@JonasAlfredsson JonasAlfredsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generated files are not rendered by default.

Looks like it is working :)

@magnusbaeck
Copy link
Member Author

Looks like it is working :)

Yeah, I noted that! Curious why the same string in the .tmpl file didn't result in the same treatment.

@JonasAlfredsson
Copy link
Member

Maybe the parser only run on .go files?

@magnusbaeck magnusbaeck merged commit 879cf29 into eiffel-community:master Dec 3, 2024
1 check passed
@magnusbaeck magnusbaeck deleted the convheader branch December 3, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generated files should have conventional file header
3 participants