Showing 2 of 2 total issues
Function sortResults
has 8 return statements (exceeds 4 allowed). Open
Open
func sortResults(reports []Summary, mode string, order string) error {
var reverse bool
var cmp func(i, j int) bool
switch order {
case "asc":
Function GenerateReport
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func GenerateReport(coverprofile string, root string, exclusions []string, sortBy, order string, packages bool) (Report, error) {