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

Adjust Go generated detection #6049

Merged
merged 1 commit into from
Sep 2, 2022
Merged

Conversation

lildude
Copy link
Member

@lildude lildude commented Sep 1, 2022

As pointed out in #5026, the current Go generated detection is a little too liberal as it finds cases of the string generation tools add to the generated files.

This PR addresses that by making the detection a little more concise, but not not as concise as it could be or as the current spec suggests. This is deliberate as we need to still detect uses of the old obsolete format and it's not Linguist's responsibility to call out users of old tools.

Fixes #5026

This isn't as concise as it could be or as the current spec suggests, but that's deliberate as we need to still detect uses of the old obsolete format.
@lildude lildude requested a review from a team as a code owner September 1, 2022 17:01
@lildude lildude merged commit 9f282ca into master Sep 2, 2022
@lildude lildude deleted the lildude/adjust-go-generated branch September 2, 2022 08:54
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go file incorrectly classified as generated
2 participants