You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ A Pluggable [Terraform](https://www.terraform.io/) Linter
12
12
13
13
TFLint is a framework and each feature is provided by plugins, the key features are as follows:
14
14
15
-
- Find possible errors (like illegal instance types) for Major Cloud providers (AWS/Azure/GCP).
15
+
- Find possible errors (like invalid instance types) for Major Cloud providers (AWS/Azure/GCP).
16
16
- Warn about deprecated syntax, unused declarations.
17
17
- Enforce best practices, naming conventions.
18
18
@@ -74,14 +74,25 @@ If you want to run on GitHub Actions, [setup-tflint](https://github.com/terrafor
74
74
75
75
## Getting Started
76
76
77
-
If you are using an AWS/Azure/GCP provider, it is a good idea to install the plugin and try it according to each usage:
77
+
First, enable rules for [Terraform Language](https://www.terraform.io/language) (e.g. warn about deprecated syntax, unused declarations). [TFLint Ruleset for Terraform Language](https://github.com/terraform-linters/tflint-ruleset-terraform) is bundled with TFLint, so you can use it without installing it separately.
78
+
79
+
The bundled plugin enables the "recommended" preset by default, but you can disable the plugin or use a different preset. Declare the plugin block in `.tflint.hcl` like this:
80
+
81
+
```hcl
82
+
plugin "terraform" {
83
+
enabled = true
84
+
preset = "recommended"
85
+
}
86
+
```
87
+
88
+
See the [tflint-ruleset-terraform documentation](https://github.com/terraform-linters/tflint-ruleset-terraform/blob/main/docs/configuration.md) for more information.
89
+
90
+
Next, If you are using an AWS/Azure/GCP provider, it is a good idea to install the plugin and try it according to each usage:
78
91
79
92
-[Amazon Web Services](https://github.com/terraform-linters/tflint-ruleset-aws)
Rules for the Terraform Language is built into the TFLint binary, so you don't need to install any plugins. Please see [Rules](docs/rules) for a list of available rules.
84
-
85
96
If you want to extend TFLint with other plugins, you can declare the plugins in the config file and easily install them with `tflint --init`.
0 commit comments