Update Hound errors

This commit is contained in:
kencrawford 2019-03-11 16:16:30 -04:00 committed by Grant Murphy
parent ddfe54d0a0
commit 989eb3ff88
2 changed files with 4 additions and 4 deletions

View file

@ -112,8 +112,8 @@ func reportSonarqube(rootPath string, w io.Writer, data *reportInfo) error {
endLine, _ = strconv.Atoi(lines[1])
}
s := sonarIssue{
EngineId: "gosec",
RuleId: issue.RuleID,
EngineID: "gosec",
RuleID: issue.RuleID,
PrimaryLocation: location{
Message: issue.What,
FilePath: strings.Replace(issue.File, rootPath+"/", "", 1),

View file

@ -13,8 +13,8 @@ type location struct {
}
type sonarIssue struct {
EngineId string `json:"engineId"`
RuleId string `json:"ruleId"`
EngineID string `json:"engineId"`
RuleID string `json:"ruleId"`
PrimaryLocation location `json:"primaryLocation"`
Type string `json:"type"`
Severity string `json:"severity"`