From 989eb3ff880c937281a40473ed038d6d35930eb6 Mon Sep 17 00:00:00 2001 From: kencrawford Date: Mon, 11 Mar 2019 16:16:30 -0400 Subject: [PATCH] Update Hound errors --- output/formatter.go | 4 ++-- output/sonarqube_format.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/output/formatter.go b/output/formatter.go index edca2c7..85b1b6b 100644 --- a/output/formatter.go +++ b/output/formatter.go @@ -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), diff --git a/output/sonarqube_format.go b/output/sonarqube_format.go index d0f33b3..1c90b68 100644 --- a/output/sonarqube_format.go +++ b/output/sonarqube_format.go @@ -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"`