Preparing report...

Report for github.com/refundable-tgm/huginn

(v0.0.0-20220319133403-58fcb86014ea)

A+    Excellent!    Found 3 issues across 10 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo70%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • files/files.go
    • Line 2324: warning: cyclomatic complexity 109 of function GenerateTravelInvoiceExcel() is high (> 15) (gocyclo)
    • Line 2754: warning: cyclomatic complexity 78 of function GenerateBusinessTripApplicationExcel() is high (> 15) (gocyclo)
    • Line 1824: warning: cyclomatic complexity 34 of function GenerateBusinessTripApplication() is high (> 15) (gocyclo)
    • Line 900: warning: cyclomatic complexity 34 of function GenerateAbsenceFormForTeacher() is high (> 15) (gocyclo)
    • Line 244: warning: cyclomatic complexity 27 of function GenerateAbsenceFormForClass() is high (> 15) (gocyclo)
    • Line 1374: warning: cyclomatic complexity 24 of function GenerateTravelInvoice() is high (> 15) (gocyclo)
    • Line 3140: warning: cyclomatic complexity 18 of function groupLessons() is high (> 15) (gocyclo)
    • rest/endpoints.go
    • Line 1324: warning: cyclomatic complexity 34 of function GetTravelInvoiceForm() is high (> 15) (gocyclo)
    • Line 1013: warning: cyclomatic complexity 31 of function GetAbsenceFormForClasses() is high (> 15) (gocyclo)
    • Line 1474: warning: cyclomatic complexity 26 of function GetBusinessTripApplicationForm() is high (> 15) (gocyclo)
    • Line 1582: warning: cyclomatic complexity 25 of function GetTravelInvoiceExcel() is high (> 15) (gocyclo)
    • Line 563: warning: cyclomatic complexity 25 of function GetAllApplications() is high (> 15) (gocyclo)
    • Line 455: warning: cyclomatic complexity 25 of function GetActiveApplications() is high (> 15) (gocyclo)
    • Line 1141: warning: cyclomatic complexity 25 of function GetAbsenceFormForTeacher() is high (> 15) (gocyclo)
    • Line 1685: warning: cyclomatic complexity 25 of function GetBusinessTripApplicationExcel() is high (> 15) (gocyclo)
    • Line 1788: warning: cyclomatic complexity 24 of function SaveBillingReceipt() is high (> 15) (gocyclo)
    • Line 1236: warning: cyclomatic complexity 21 of function GetCompensationForEducationalSupportForm() is high (> 15) (gocyclo)
    • Line 873: warning: cyclomatic complexity 19 of function UpdateApplication() is high (> 15) (gocyclo)
    • Line 945: warning: cyclomatic complexity 18 of function DeleteApplication() is high (> 15) (gocyclo)
    • Line 730: warning: cyclomatic complexity 17 of function GetApplication() is high (> 15) (gocyclo)
    • untis/untis.go
    • Line 369: warning: cyclomatic complexity 18 of function (Client).GetTimetableOfSpecificTeacher() is high (> 15) (gocyclo)
    • Line 751: warning: cyclomatic complexity 18 of function GetLessonNrByStart() is high (> 15) (gocyclo)
    • Line 792: warning: cyclomatic complexity 17 of function GetLessonNrByEnd() is high (> 15) (gocyclo)
    • Line 252: warning: cyclomatic complexity 17 of function (Client).GetTimetableOfClass() is high (> 15) (gocyclo)
    • Line 136: warning: cyclomatic complexity 17 of function (Client).GetTimetableOfTeacher() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!