Skip to content

Commit 66e7c8d

Browse files
kmcrawfordgcmurphy
authored andcommitted
Extract to a constant
1 parent 1b28d32 commit 66e7c8d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

output/formatter.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ const (
4343

4444
// ReportJUnitXML set the output format to junit xml
4545
ReportJUnitXML // JUnit XML format
46+
47+
//Sonarqube effort to fix
48+
SonarqubeEffortMinutes = 5
4649
)
4750

4851
var text = `Results:
@@ -121,7 +124,7 @@ func reportSonarqube(rootPath string, w io.Writer, data *reportInfo) error {
121124
},
122125
Type: "VULNERABILITY",
123126
Severity: getSonarSeverity(issue.Severity.String()),
124-
EffortMinutes: 5,
127+
EffortMinutes: SonarqubeEffortMinutes,
125128
}
126129
si.SonarIssues = append(si.SonarIssues, s)
127130
}

0 commit comments

Comments
 (0)