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

Fix tfproviderlint errors #596

Merged
merged 20 commits into from
Oct 11, 2022
Merged

Fix tfproviderlint errors #596

merged 20 commits into from
Oct 11, 2022

Conversation

Integralist
Copy link
Collaborator

@Integralist Integralist commented Oct 6, 2022

Fixes #237

Note: I've run the complete end-to-end integration test suite, and it's passing.

ErrorCheck allows providers the option to handle errors such as skipping tests
based on certain errors. But we don't need to worry about that for our
current test suite. Maybe in the future we'll want to add an ErrorCheck
but we shouldn't feel like it's mandatory.

https://github.com/bflad/tfproviderlint/tree/main/xpasses/XAT001
https://pkg.go.dev/github.com/hashicorp/terraform-plugin-sdk/v2@v2.23.0/helper/resource#TestCase
We don't want to have to manually type the key name when we already have
h.GetKey()/h.Key() to return us the value. Especially if we decide to
rename that key in the future.

https://github.com/bflad/tfproviderlint/tree/main/passes/R001
@Integralist Integralist added the enhancement New feature or request label Oct 6, 2022
@Integralist Integralist requested a review from shawnps October 6, 2022 14:42
Copy link

@shawnps shawnps left a comment

Choose a reason for hiding this comment

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

@Integralist if we're ignoring XAT001 everywhere and plan to add tfproviderlint to the build, I wonder if invoking it with tfproviderlint -XAT001=false would be better than the lintignore comment.

@Integralist Integralist merged commit 27dde96 into main Oct 11, 2022
@Integralist Integralist deleted the integralist/lint branch October 11, 2022 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tfproviderlint linting issue
2 participants