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

Refactor and improve the new lint creation bash script #786

Merged
merged 2 commits into from
Jan 20, 2024

Conversation

christopher-henderson
Copy link
Member

This script always provided a layer of friction, even for me, as it used anonymously named positional arguments with little explanation, parsing, or help. I had to understand the script in full each time I went to use it.

So I refactored it to be a more useful and easier to understand tool (I hope). Additionally, I extended it to also auto-generate a test file for the new lint.

@@ -82,13 +82,15 @@ golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
Copy link
Member Author

Choose a reason for hiding this comment

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

There was a dependency update in the test certificate generator script was laying around. It's not related to this change, but I don't see any harm in including it.

@zakird zakird merged commit 8a61dfa into master Jan 20, 2024
8 checks passed
@zakird zakird deleted the improve_new_lint_script branch January 20, 2024 17:16
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