这是indexloc提供的服务,不要输入任何密码
Skip to content

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.

Co-authored-by: François <mockersf@gmail.com>
@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 <mockersf@gmail.com>

Co-authored-by: François <mockersf@gmail.com>
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