1
0
mirror of https://github.com/securego/gosec.git synced 2025-11-29 22:37:59 +02:00

Extract to a constant

This commit is contained in:
kencrawford
2019-03-12 09:22:58 -04:00
committed by Grant Murphy
parent 1b28d323d8
commit 66e7c8d8f8

View File

@@ -43,6 +43,9 @@ const (
// ReportJUnitXML set the output format to junit xml
ReportJUnitXML // JUnit XML format
//Sonarqube effort to fix
SonarqubeEffortMinutes = 5
)
var text = `Results:
@@ -121,7 +124,7 @@ func reportSonarqube(rootPath string, w io.Writer, data *reportInfo) error {
},
Type: "VULNERABILITY",
Severity: getSonarSeverity(issue.Severity.String()),
EffortMinutes: 5,
EffortMinutes: SonarqubeEffortMinutes,
}
si.SonarIssues = append(si.SonarIssues, s)
}