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

Update gometalinter for modules, add staticcheck #2908

Merged
merged 2 commits into from Feb 5, 2019

Conversation

rileykarson
Copy link
Collaborator

@rileykarson rileykarson commented Jan 22, 2019

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.

staticcheck.conf Outdated
@@ -0,0 +1,11 @@
checks = ["all", "-S1002", "-S1007", "-S1008", "-S1009", "-S1019", "-S1021", "-S1025", "-ST1000", "-ST1003", "-ST1005", "-ST1017", "-SA4006", "-SA4010", -"SA6000", "-SA6005"]
Copy link

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"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks!

@ghost ghost added size/s and removed size/xs labels Feb 4, 2019
@rileykarson rileykarson changed the title Add staticcheck Update gometalinter for modules, add staticcheck Feb 4, 2019
@rileykarson
Copy link
Collaborator Author

@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 GO111MODULE=on set locally, and it caused me some... weird dependency issues.

@rileykarson rileykarson merged commit 8a237de into hashicorp:master Feb 5, 2019
@ghost
Copy link

ghost commented Mar 8, 2019

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!

@hashicorp hashicorp locked and limited conversation to collaborators Mar 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants