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

Is there a way to use all existing rules #1056

Closed
shchowdhury opened this issue Feb 2, 2021 · 4 comments · Fixed by #1496
Closed

Is there a way to use all existing rules #1056

shchowdhury opened this issue Feb 2, 2021 · 4 comments · Fixed by #1496

Comments

@shchowdhury
Copy link

Hi,
I am total newbie of tflint. trying out its features. Looking into https://github.com/terraform-linters/tflint/tree/master/docs/rules, so these rules are already built-in in the tflint binary. However, 3 is enabled by default. is there a shortcut that I use says to tflint, use all those (14 i believe) during execution.

Dont want to individually add each rule in the config file and enable them!

rule "terraform_naming_convention" {
enabled = true
}

rule "terraform_documented_variables" {
enabled = true
}

.....

@wata727
Copy link
Member

wata727 commented Feb 14, 2021

Since these rules will be cut out into plugins in the future, enabling/disabling each plugin may solve this problem.

@tgdfool2

This comment has been minimized.

@Zialus

This comment was marked as off-topic.

@alexanderdavide
Copy link

alexanderdavide commented Sep 8, 2022

Awesome, enabling all terraform plugin rules is now possible by upgrading to TFLint v0.40.0 and adding the following to your TFLint configuration:

plugin "terraform" {
  enabled = true
}

Note that preset = "recommended", which is now the default when you don't have an explicit "terraform" plugin configuration, already has more rules enabled than < v0.40.0.

Thank you, @wata727!

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

Successfully merging a pull request may close this issue.

5 participants