Preparing report...

Report for github.com/geaaru/time-master

(v0.5.0)

C    Needs some work    Found 57 issues across 63 files

Tweet

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!


gofmt9%

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


gocyclo79%

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.

    • pkg/scheduler/scheduler.go
    • Line 472: warning: cyclomatic complexity 91 of function (*DefaultScheduler).elaborateFatherTasksAndMilestone() is high (> 15) (gocyclo)
    • Line 116: warning: cyclomatic complexity 32 of function (*DefaultScheduler).FilterPostElaboration() is high (> 15) (gocyclo)
    • cmd/task/list.go
    • Line 38: warning: cyclomatic complexity 59 of function NewListCommand() is high (> 15) (gocyclo)
    • cmd/timesheet/show.go
    • Line 191: warning: cyclomatic complexity 27 of function prepareNormalTable() is high (> 15) (gocyclo)
    • Line 313: warning: cyclomatic complexity 23 of function NewShowCommand() is high (> 15) (gocyclo)
    • Line 38: warning: cyclomatic complexity 22 of function prepareTableByUser() is high (> 15) (gocyclo)
    • pkg/loader/tasks.go
    • Line 29: warning: cyclomatic complexity 43 of function (*TimeMasterInstance).GetTasks() is high (> 15) (gocyclo)
    • pkg/scheduler/task.go
    • Line 101: warning: cyclomatic complexity 38 of function (*DefaultRecursiveTaskSeer).DoPrevision() is high (> 15) (gocyclo)
    • pkg/loader/timesheet.go
    • Line 84: warning: cyclomatic complexity 23 of function (*TimeMasterInstance).GetAggregatedTimesheetsMap() is high (> 15) (gocyclo)

ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell93%

Misspell Finds commonly misspelled English words