diff --git a/pkg/results/types.go b/pkg/results/types.go index e9b99ed59..5bfda9544 100644 --- a/pkg/results/types.go +++ b/pkg/results/types.go @@ -18,16 +18,16 @@ package results // Violation Contains data for each violation type Violation struct { - RuleName string `json:"ruleName" yaml:"ruleName" xml:"ruleName,attr"` + RuleName string `json:"rule_name" yaml:"rule_name" xml:"rule_name,attr"` Description string `json:"description" yaml:"description" xml:"description,attr"` RuleID string `json:"rule" yaml:"rule" xml:"rule,attr"` Severity string `json:"severity" yaml:"severity" xml:"severity,attr"` Category string `json:"category" yaml:"category" xml:"category,attr"` - RuleFile string `json:"ruleFile" yaml:"ruleFile" xml:"ruleFile,attr"` + RuleFile string `json:"rule_file" yaml:"rule_file" xml:"rule_file,attr"` RuleData interface{} `json:"-" yaml:"-" xml:"-"` - ResourceName string `json:"resourceName" yaml:"resourceName" xml:"resourceName,attr"` - ResourceType string `json:"resourceType" yaml:"resourceType" xml:"resourceType,attr"` - ResourceData interface{} `json:"resourceData" yaml:"resourceData" xml:"resourceData,attr"` + ResourceName string `json:"resource_name" yaml:"resource_name" xml:"resource_name,attr"` + ResourceType string `json:"resource_type" yaml:"resource_type" xml:"resource_type,attr"` + ResourceData interface{} `json:"resource_data" yaml:"resource_data" xml:"resource_data,attr"` File string `json:"file" yaml:"file" xml:"file,attr"` LineNumber int `json:"line" yaml:"line" xml:"line,attr"` }