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

Run golangci-lint on generated files #396

Merged
merged 3 commits into from
May 10, 2023

Conversation

jtraglia
Copy link
Contributor

@jtraglia jtraglia commented May 4, 2023

As mentioned in #395, golangci-lint does not run on generated files. This PR adds a hack that removes the "generated by" comments before running golangci-lint in the CI staticcheck test. This should trick it into examining them. I expect this PR's CI checks to fail until these findings are fixed, probably in other PRs.

@gbotrel
Copy link
Collaborator

gbotrel commented May 5, 2023

nice hack, will fix in separate PR 👍

@jtraglia jtraglia force-pushed the run-golangci-on-generated branch from 30eba9d to 29a2ddd Compare May 6, 2023 00:41
@gbotrel gbotrel marked this pull request as ready for review May 10, 2023 21:22
@gbotrel gbotrel merged commit 62e5595 into Consensys:develop May 10, 2023
4 of 5 checks passed
@jtraglia jtraglia deleted the run-golangci-on-generated branch May 11, 2023 02:02
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.

None yet

2 participants