feat(terraform): Add hcl extension support to Terraform module (#1875)

* Add hcl file extension to terraform module

Signed-off-by: adhaamehab <adhaamehab.me@gmail.com>

* Update docs

Signed-off-by: adhaamehab <adhaamehab.me@gmail.com>
This commit is contained in:
Adham 2020-11-14 19:33:21 +02:00 committed by GitHub
parent 680663f5b3
commit ac88301294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2244,7 +2244,7 @@ If you still want to enable it, [follow the example shown below](#with-version).
The module will be shown if any of the following conditions are met:
- The current directory contains a `.terraform` folder
- Current directory contains a file with the `.tf` extension
- Current directory contains a file with the `.tf` or `.hcl` extensions
### Options

View File

@ -16,7 +16,7 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
let is_terraform_project = context
.try_begin_scan()?
.set_folders(&[".terraform"])
.set_extensions(&["tf"])
.set_extensions(&["tf", "hcl"])
.is_match();
if !is_terraform_project {