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

rules: Use EmitIssueOnExpr when emitting an issue for an expression #195

Merged
merged 1 commit into from
Nov 6, 2021

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Nov 6, 2021

Fixes #194

EmitIssue is a low-level API that cannot send expression associations to the host process:
https://github.com/terraform-linters/tflint-plugin-sdk/blob/v0.9.1/tflint/client/client.go#L382-L388

As a result, the expression currently being processed cannot be recognized and issues encountered during module inspection are ignored. You should use EmitIssueOnExpr in this case:
https://github.com/terraform-linters/tflint-plugin-sdk/blob/v0.9.1/tflint/client/client.go#L365-L372

@wata727 wata727 merged commit ed75fbe into master Nov 6, 2021
@wata727 wata727 deleted the emit_issue_on_expr_instead_of_range branch November 6, 2021 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Rule aws_s3_bucket_name does work on module parameters
1 participant