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

Allow ruleset to accept Only option #198

Merged
merged 1 commit into from
Sep 17, 2022

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Sep 14, 2022

See terraform-linters/tflint#1513

As explained in terraform-linters/tflint#1513 (comment), plugins cannot distinguish between the --only flag and disabled_by_default.

This PR adds a new only option to the global config, allowing plugins to identify this. The ApplyGlobalConfig() configures the rules as the highest priority setting based on the only option sent by the host process.

TODO

  • Add godoc about rules priority

@wata727 wata727 force-pushed the add_support_for_only_global_option branch from 7a18971 to 39364ff Compare September 17, 2022 12:42
@wata727 wata727 merged commit 346f86f into master Sep 17, 2022
@wata727 wata727 deleted the add_support_for_only_global_option branch September 17, 2022 12:45
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