Skip to content

Mark generated files as linguist-generated #149

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

Merged
merged 3 commits into from
Jun 11, 2022

Conversation

TimJentzsch
Copy link
Collaborator

Objective

The generated tests and benchmarks add a lot of noise when reviewing PRs.
Their diffs should be hidden by default.

Solution

This PR adds a .gitattribute file that marks the folders tests/generated and benches/generated as linguist-generated=true. This will a) exclude them from the GitHub language stats and b) hide their diffs by default (Docs).

Context

We first discussed removing the generated tests completely in #133.
However, they add a lot of value to make sure that we are fully compatible with the browser flexbox spec. Thus, they were added back with #145.

We also discussed to not commit the generated files to the repository, but generating them requires installation of chromedriver and is a hassle for contributors.

Feedback wanted

I hope this covers all generated files. I'm not completely sure if this works as I expect it to, I have never used this feature before.

@alice-i-cecile alice-i-cecile added the build system Make continuous integration do the tedious things label Jun 11, 2022
@alice-i-cecile alice-i-cecile enabled auto-merge (squash) June 11, 2022 14:32
@alice-i-cecile alice-i-cecile merged commit 3ab6814 into DioxusLabs:main Jun 11, 2022
@TimJentzsch TimJentzsch deleted the mark-generated-files branch June 11, 2022 14:44
@TimJentzsch TimJentzsch changed the title Mark generated files as lunguist-generated Mark generated files as linguist-generated Jun 11, 2022
jkelleyrtp pushed a commit that referenced this pull request Oct 10, 2022
* Mark generated files as lunguist-generated

* Target files instead of folder in .gitattributes

Co-authored-by: François <[email protected]>

Co-authored-by: François <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system Make continuous integration do the tedious things
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants