Skip to content

Commit 2f318ce

Browse files
authored
fix(terraform): Support tfvars (#4123)
1 parent ec3906c commit 2f318ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/fanal/analyzer/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
var (
1616
_ analyzer.PostAnalyzer = (*Analyzer)(nil)
1717

18-
requiredExts = []string{".json", ".yaml", ".yml"}
18+
requiredExts = []string{".json", ".yaml", ".yml", ".tfvars"}
1919
)
2020

2121
// Analyzer represents an analyzer for config files,

pkg/fanal/analyzer/config/terraform/terraform.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const (
1919
var requiredExts = []string{
2020
".tf",
2121
".tf.json",
22+
".tfvars",
2223
}
2324

2425
func init() {

0 commit comments

Comments
 (0)