mirror of
https://github.com/securego/gosec.git
synced 2025-03-01 04:33:29 +00:00
Extract to a constant
This commit is contained in:
parent
1b28d323d8
commit
66e7c8d8f8
1 changed files with 4 additions and 1 deletions
|
@ -43,6 +43,9 @@ const (
|
||||||
|
|
||||||
// ReportJUnitXML set the output format to junit xml
|
// ReportJUnitXML set the output format to junit xml
|
||||||
ReportJUnitXML // JUnit XML format
|
ReportJUnitXML // JUnit XML format
|
||||||
|
|
||||||
|
//Sonarqube effort to fix
|
||||||
|
SonarqubeEffortMinutes = 5
|
||||||
)
|
)
|
||||||
|
|
||||||
var text = `Results:
|
var text = `Results:
|
||||||
|
@ -121,7 +124,7 @@ func reportSonarqube(rootPath string, w io.Writer, data *reportInfo) error {
|
||||||
},
|
},
|
||||||
Type: "VULNERABILITY",
|
Type: "VULNERABILITY",
|
||||||
Severity: getSonarSeverity(issue.Severity.String()),
|
Severity: getSonarSeverity(issue.Severity.String()),
|
||||||
EffortMinutes: 5,
|
EffortMinutes: SonarqubeEffortMinutes,
|
||||||
}
|
}
|
||||||
si.SonarIssues = append(si.SonarIssues, s)
|
si.SonarIssues = append(si.SonarIssues, s)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue