mcubik/goverreport

View on GitHub

Showing 2 of 2 total issues

Function sortResults has 8 return statements (exceeds 4 allowed).
Open

func sortResults(reports []Summary, mode string, order string) error {
    var reverse bool
    var cmp func(i, j int) bool
    switch order {
    case "asc":
Severity: Major
Found in report/report.go - About 50 mins to fix

    Function GenerateReport has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func GenerateReport(coverprofile string, root string, exclusions []string, sortBy, order string, packages bool) (Report, error) {
    Severity: Minor
    Found in report/report.go - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language