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

Configuration should be able to specify compatible TFLint versions #1217

Closed
bendrucker opened this issue Sep 8, 2021 · 0 comments · Fixed by #2027
Closed

Configuration should be able to specify compatible TFLint versions #1217

bendrucker opened this issue Sep 8, 2021 · 0 comments · Fixed by #2027

Comments

@bendrucker
Copy link
Member

A TFLint configuration is implicitly associated with a specific version of TFLint as well as plugin versions. The configuration schema depends on TFLint and the rule blocks depend on plugin versions. Since the configuration specifies plugin versions, this relationship well-encapsulated for plugins. However, there's no explicit relationship between the generic TFLint CLI config and the running CLI.

We could adopt a syntax/feature similar to required_version in Terraform so that a configuration is able to specify the TFLint versions with which it's compatible. When TFLint loads the configuration, it should first examine the required version. If the constraint is not satisfied, TFLint would exit early rather than potentially encounter schema errors when attempting to parse the remainder of the structure. If the constraint is satisfied (or omitted), TFLint would proceed as it does today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant