mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 04:25:52 +00:00
Update Hound errors
This commit is contained in:
parent
ddfe54d0a0
commit
989eb3ff88
2 changed files with 4 additions and 4 deletions
|
@ -112,8 +112,8 @@ func reportSonarqube(rootPath string, w io.Writer, data *reportInfo) error {
|
||||||
endLine, _ = strconv.Atoi(lines[1])
|
endLine, _ = strconv.Atoi(lines[1])
|
||||||
}
|
}
|
||||||
s := sonarIssue{
|
s := sonarIssue{
|
||||||
EngineId: "gosec",
|
EngineID: "gosec",
|
||||||
RuleId: issue.RuleID,
|
RuleID: issue.RuleID,
|
||||||
PrimaryLocation: location{
|
PrimaryLocation: location{
|
||||||
Message: issue.What,
|
Message: issue.What,
|
||||||
FilePath: strings.Replace(issue.File, rootPath+"/", "", 1),
|
FilePath: strings.Replace(issue.File, rootPath+"/", "", 1),
|
||||||
|
|
|
@ -13,8 +13,8 @@ type location struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type sonarIssue struct {
|
type sonarIssue struct {
|
||||||
EngineId string `json:"engineId"`
|
EngineID string `json:"engineId"`
|
||||||
RuleId string `json:"ruleId"`
|
RuleID string `json:"ruleId"`
|
||||||
PrimaryLocation location `json:"primaryLocation"`
|
PrimaryLocation location `json:"primaryLocation"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
Severity string `json:"severity"`
|
Severity string `json:"severity"`
|
||||||
|
|
Loading…
Reference in a new issue