Skip to content

Mark *_arginfo.h as linguist-generated #8722

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 1 commit into from
Jun 7, 2022

Conversation

TimWolla
Copy link
Member

@TimWolla TimWolla commented Jun 7, 2022

The generated *_arginfo.h usually cannot be usefully reviewed within a PR.
Collapse them by default by adding the linguist-generated attribute to reduce
the visual noise.

see https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
see https://github.com/github/linguist/blob/master/docs/overrides.md#summary

The generated `*_arginfo.h` usually cannot be usefully reviewed within a PR.
Collapse them by default by adding the `linguist-generated` attribute to reduce
the visual noise.

see https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
see https://github.com/github/linguist/blob/master/docs/overrides.md#summary
@TimWolla TimWolla requested a review from kocsismate June 7, 2022 07:52
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

Since GH-8295 there's no longer a risk that somebody could inject malicious code in generated files, so collapsing makes sense to me. There are other files we could add here, like the files generated from zend_vm_gen.php, Bison, etc. But those can be added separately. Thanks @TimWolla!

@TimWolla Btw, you can add [skip ci] to the commit message when making non-code changes to avoid triggering the CI needlessly.

@Girgias Girgias merged commit 94183d3 into php:master Jun 7, 2022
@TimWolla TimWolla deleted the linguist-generated branch June 7, 2022 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants