From e4932658dc78756c87003afbc734fd4551810529 Mon Sep 17 00:00:00 2001 From: gabel0287 Date: Mon, 28 Oct 2019 10:36:07 -0700 Subject: [PATCH] fix: pre-commit has full path in filename --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d7ad7e8..f9b4cc9 100644 --- a/main.go +++ b/main.go @@ -64,7 +64,7 @@ func showModuleMarkdown(module *tfconfig.Module) { blacklist := []string{"environment.tf.json", "global-variables.tf.json", "account-variables.tf.json", "variables.tf"} for _, b := range blacklist { - if p.Filename == b { + if strings.HasSuffix(p.Filename, b) { return false } }