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
Update gometalinter for modules, add staticcheck #2908
Conversation
21d36b0
to
d7d0992
Compare
staticcheck.conf
Outdated
@@ -0,0 +1,11 @@ | |||
checks = ["all", "-S1002", "-S1007", "-S1008", "-S1009", "-S1019", "-S1021", "-S1025", "-ST1000", "-ST1003", "-ST1005", "-ST1017", "-SA4006", "-SA4010", -"SA6000", "-SA6005"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo, -"SA6000"
should be "-SA6000"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
c1bb668
to
0d2542f
Compare
@paddycarver: Re-requesting because this changed a bunch based on reading the AWS / Azure providers' configs as well. I took the output from hashicorp/terraform-provider-azurerm#2787 and added it in our Makefile, alongside some other small changes. I found that modules didn't work well with gometalinter, so I explicitly disabled them on every command. I have |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
This isn't working locally, but it matches the changes made in hashicorp/terraform-provider-azurerm#2722 so maybe something freaky is going on and it will only work in CI?
Edit: This only works in CI (well, at least doesn't work locally for me) but the same is true in the Azure provider. Most of those rules can be turned back on provided we make the corresponding code changes, but let's bring back
unused
for now. I'll dupe over to tpgb on approval.