Skip to content

Commit

Permalink
fix regal lint defer-assignment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturRibeiro-CX committed Mar 2, 2025
1 parent aeadfd7 commit 413ddf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ CxPolicy[result] {
portName := portsMap[portNumber]

elbType := getELBType(elb.properties)

############## Result
result := {
"documentId": input.document[i].id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ CxPolicy[result] {
portNumber = port
portName = portContent
ingress := resource.ingress[j]

protocol := tf_lib.getProtocolList(ingress.protocol)[_]
isTCPorUDP(protocol)

ends_with := endswith(ingress.cidr_blocks[_], "/0")
port_contains := tf_lib.containsPort(ingress, portNumber)

ends_with

port_contains := tf_lib.containsPort(ingress, portNumber)
port_contains
isTCPorUDP(protocol)

result := {
"documentId": input.document[i].id,
Expand Down

0 comments on commit 413ddf2

Please sign in to comment.