Preparing report...

Report for kolaente.dev/vikunja/api

A+    Excellent!    Found 28 issues across 294 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!


gocyclo93%

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.

    • /kolaente.dev/vikunja/api/pkg/models/tasks.go
    • Line 241: warning: cyclomatic complexity 45 of function getRawTasksForLists() is high (> 15) (gocyclo)
    • Line 904: warning: cyclomatic complexity 27 of function (*Task).Update() is high (> 15) (gocyclo)
    • Line 746: warning: cyclomatic complexity 19 of function setTaskBucket() is high (> 15) (gocyclo)

golint96%

Golint is a linter for Go source code.

    • /kolaente.dev/vikunja/api/pkg/log/watermill_logger.go
    • Line 33: warning: exported type WatermillLogger should have comment or be unexported (golint)
    • Line 37: warning: exported function NewWatermillLogger should have comment or be unexported (golint)
    • Line 77: warning: exported method WatermillLogger.Info should have comment or be unexported (golint)
    • Line 81: warning: exported method WatermillLogger.Debug should have comment or be unexported (golint)
    • Line 85: warning: exported method WatermillLogger.Trace should have comment or be unexported (golint)
    • Line 89: warning: exported method WatermillLogger.With should have comment or be unexported (golint)
    • /kolaente.dev/vikunja/api/pkg/models/listeners.go
    • Line 61: warning: comment on exported method IncreaseTaskCounter.Handle should be of the form "Handle ..." (golint)
    • Line 75: warning: comment on exported method DecreaseTaskCounter.Handle should be of the form "Handle ..." (golint)
    • Line 217: warning: exported type SubscribeAssigneeToTask should have comment or be unexported (golint)
    • Line 253: warning: exported type IncreaseListCounter should have comment or be unexported (golint)
    • Line 256: warning: exported method IncreaseListCounter.Name should have comment or be unexported (golint)
    • Line 260: warning: exported method IncreaseListCounter.Handle should have comment or be unexported (golint)
    • Line 264: warning: exported type DecreaseListCounter should have comment or be unexported (golint)
    • Line 267: warning: exported method DecreaseListCounter.Name should have comment or be unexported (golint)
    • Line 271: warning: exported method DecreaseListCounter.Handle should have comment or be unexported (golint)
    • Line 332: warning: comment on exported method IncreaseNamespaceCounter.Handle should be of the form "Handle ..." (golint)
    • Line 346: warning: comment on exported method DecreaseNamespaceCounter.Handle should be of the form "Handle ..." (golint)
    • Line 363: warning: comment on exported method IncreaseTeamCounter.Handle should be of the form "Handle ..." (golint)
    • Line 377: warning: comment on exported method DecreaseTeamCounter.Handle should be of the form "Handle ..." (golint)
    • /kolaente.dev/vikunja/api/pkg/models/tasks.go
    • Line 39: warning: exported type TaskRepeatMode should have comment or be unexported (golint)
    • Line 42: warning: exported const TaskRepeatModeDefault should have comment (or a comment on this block) or be unexported (golint)
    • Line 143: warning: exported method Task.GetFrontendURL should have comment or be unexported (golint)

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!


misspell99%

Misspell Finds commonly misspelled English words