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

linting: update to work with new staticcheck #2722

Merged
merged 3 commits into from
Jan 22, 2019
Merged

linting: update to work with new staticcheck #2722

merged 3 commits into from
Jan 22, 2019

Conversation

katbyte
Copy link
Collaborator

@katbyte katbyte commented Jan 21, 2019

megacheck and unused are now part of staticcheck

@katbyte katbyte added this to the 2.0.0 milestone Jan 21, 2019
@ghost ghost added the size/XS label Jan 21, 2019
@ghost ghost added size/S and removed size/XS labels Jan 21, 2019
@katbyte katbyte requested a review from a team January 22, 2019 00:24
@katbyte katbyte changed the title [WIP] linting: update to work with new static check linting: update to work with new static check Jan 22, 2019
@katbyte katbyte changed the title linting: update to work with new static check linting: update to work with new staticcheck Jan 22, 2019
Copy link
Contributor

@metacpp metacpp left a comment

Choose a reason for hiding this comment

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

Thanks @katbyte for the quick fix, most of the changes LGTM except one minor comment.

staticcheck.conf Outdated
"URL", "UTF8", "VM", "XML", "XMPP", "XSRF",
"XSS"]
dot_import_whitelist = []
http_status_code_whitelist = ["200", "400", "404", "500"]
Copy link
Contributor

Choose a reason for hiding this comment

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

A new line is required.

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@tombuildsstuff tombuildsstuff modified the milestones: 2.0.0, 1.22.0 Jan 22, 2019
@tombuildsstuff tombuildsstuff merged commit 10ecead into master Jan 22, 2019
@tombuildsstuff tombuildsstuff deleted the lintfix branch January 22, 2019 10:09
rileykarson added a commit to hashicorp/terraform-provider-google that referenced this pull request Feb 5, 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.
@ghost
Copy link

ghost commented Mar 5, 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 👉 [email protected]. Thanks!

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

Successfully merging this pull request may close these issues.

3 participants