We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e92058a commit 409c430Copy full SHA for 409c430
warnings.go
@@ -2,6 +2,7 @@ package preview
2
3
import (
4
"fmt"
5
+ "strings"
6
7
"github.com/aquasecurity/trivy/pkg/iac/terraform"
8
"github.com/hashicorp/hcl/v2"
@@ -24,6 +25,10 @@ func unexpandedCountBlocks(modules terraform.Modules) hcl.Diagnostics {
24
25
for _, block := range modules.GetBlocks() {
26
block := block
27
28
+ // Only warn on coder blocks
29
+ if !strings.HasPrefix(block.NameLabel(), "coder_") {
30
+ continue
31
+ }
32
if countAttr, ok := block.Attributes()["count"]; ok {
33
if block.IsExpanded() {
34
continue
0 commit comments