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

Add the string '@generated' to the lockfile #6890

Closed

Conversation

mwgamble
Copy link

@mwgamble mwgamble commented Jan 9, 2019

Summary

Various tools such as linters look for the string '@generated' in a file and use this to skip processing of the file. This change will help prevent linters from targeting the yarn.lock lockfile, as there is no benefit to performing things such as line length checks on this file.

Test plan

On the next update to the lock file, you should observe a new comment line near the top of the yarn.lock file. It should look like the following:

# @generated

Matthew Gamble added 3 commits January 9, 2019 17:37
Various tools such as linters look for the string '@generated' in a file
and use this to skip processing of the file. This change will help prevent
linters from targeting the yarn.lock lockfile, as there is no benefit to
performing things such as line length checks on this file.
@arcanis
Copy link
Member

arcanis commented Jan 10, 2019

I would be wary of this change because it'll also cause UIs not to display the file diffs. I don't want to make code reviews harder (related, github-linguist/linguist#4348).

@arcanis
Copy link
Member

arcanis commented Jan 14, 2019

I'm sorry I won't merge it - I don't think the pros out-weight the cons, so I prefer to keep things the same. Thanks for the contribution, though, I look forward to see other PRs if you feel like it 🙂

@arcanis arcanis closed this Jan 14, 2019
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.

2 participants