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

config: Add plugin_dir config #1235

Merged
merged 1 commit into from Oct 14, 2021
Merged

config: Add plugin_dir config #1235

merged 1 commit into from Oct 14, 2021

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Oct 9, 2021

Fixes #1198

This PR adds plugin_dir to the config schema. For example:

config {
  plugin_dir = "./.tflint_plugins"
}

If plugin_dir is set, change the installation directory from ~/.tflint.d/plugins. This is the same behavior as the TFLINT_PLUGIN_DIR environment variable, except that it can be explicitly declared in the config file.

Copy link

@tylert tylert left a comment

Choose a reason for hiding this comment

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

Very nice.

@wata727 wata727 merged commit 47ee5a4 into master Oct 14, 2021
@wata727 wata727 deleted the add_plugin_dir_config branch October 14, 2021 13:29
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.

Allow location of plugins directory to be defined in the configuration file
2 participants