Skip to content

Commit

Permalink
change json, yaml tags from camel case to underscore notation
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuf Kanchwala authored and cesar-rodriguez committed Aug 14, 2020
1 parent 9cef225 commit 52bfc38
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/results/types.go
Expand Up @@ -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"`
}
Expand Down

0 comments on commit 52bfc38

Please sign in to comment.