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

plugin: Add support for fetching rule config #1003

Merged
merged 1 commit into from
Dec 19, 2020

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Dec 13, 2020

To cut out the aws_resource_missing_tags rule into a plugin, this PR adds a new runner API, called RuleConfig.

This API returns an encoded HCL format rule config like the plugin configuration. See also #967
On the plugin side, they can decode the rule config and reflects it into the config structure defined in the rule implementation using gohcl.DecodeBody.

See also terraform-linters/tflint-plugin-sdk#82

@wata727 wata727 force-pushed the add_support_for_decode_rule_config branch 3 times, most recently from 56a2891 to a591192 Compare December 14, 2020 17:12
@wata727 wata727 force-pushed the add_support_for_decode_rule_config branch from a591192 to a4f3b6a Compare December 19, 2020 15:03
@wata727 wata727 marked this pull request as ready for review December 19, 2020 15:03
@wata727 wata727 merged commit 9844546 into master Dec 19, 2020
@wata727 wata727 deleted the add_support_for_decode_rule_config branch December 19, 2020 15:10
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.

None yet

1 participant