Skip to content

Commit

Permalink
Update Hound errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcrawford authored and gcmurphy committed Mar 20, 2019
1 parent ddfe54d commit 989eb3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions output/formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions output/sonarqube_format.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 989eb3f

Please sign in to comment.