feat(misconf): render causes for Terraform (#8360)

Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
This commit is contained in:
Nikita Pivkin
2025-02-28 13:01:01 +06:00
committed by GitHub
parent a994453a7d
commit a99498cdd9
29 changed files with 782 additions and 259 deletions

View File

@@ -30,13 +30,14 @@ type MisconfResult struct {
type MisconfResults []MisconfResult
type CauseMetadata struct {
Resource string `json:",omitempty"`
Provider string `json:",omitempty"`
Service string `json:",omitempty"`
StartLine int `json:",omitempty"`
EndLine int `json:",omitempty"`
Code Code `json:",omitempty"`
Occurrences []Occurrence `json:",omitempty"`
Resource string `json:",omitempty"`
Provider string `json:",omitempty"`
Service string `json:",omitempty"`
StartLine int `json:",omitempty"`
EndLine int `json:",omitempty"`
Code Code `json:",omitempty"`
Occurrences []Occurrence `json:",omitempty"`
RenderedCause RenderedCause `json:",omitempty"`
}
type Occurrence struct {
@@ -45,6 +46,11 @@ type Occurrence struct {
Location Location
}
type RenderedCause struct {
Raw string `json:",omitempty"`
Highlighted string `json:",omitempty"`
}
type Code struct {
Lines []Line
}