Preparing report...

Report for kolaente.dev/vikunja/vikunja

(v0.24.6)

A+    Excellent!    Found 30 issues across 403 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!


gofmt100%

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

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo92%

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/models/project.go
    • Line 611: warning: cyclomatic complexity 26 of function addProjectDetails() is high (> 15) (gocyclo)
    • Line 1086: warning: cyclomatic complexity 24 of function (*Project).Delete() is high (> 15) (gocyclo)
    • Line 240: warning: cyclomatic complexity 19 of function (*Project).ReadOne() is high (> 15) (gocyclo)
    • Line 874: warning: cyclomatic complexity 19 of function UpdateProject() is high (> 15) (gocyclo)
    • pkg/models/tasks.go
    • Line 886: warning: cyclomatic complexity 63 of function (*Task).Update() is high (> 15) (gocyclo)
    • Line 737: warning: cyclomatic complexity 29 of function createTask() is high (> 15) (gocyclo)
    • Line 556: warning: cyclomatic complexity 17 of function addMoreInfoToTasks() is high (> 15) (gocyclo)
    • Line 1477: warning: cyclomatic complexity 16 of function (*Task).Delete() is high (> 15) (gocyclo)
    • pkg/models/label_task.go
    • Line 168: warning: cyclomatic complexity 27 of function GetLabelsByTaskIDs() is high (> 15) (gocyclo)
    • Line 311: warning: cyclomatic complexity 18 of function (*Task).UpdateTaskLabels() is high (> 15) (gocyclo)
    • pkg/models/api_routes.go
    • Line 104: warning: cyclomatic complexity 25 of function CollectRoutesForAPITokenUsage() is high (> 15) (gocyclo)
    • Line 221: warning: cyclomatic complexity 16 of function CanDoAPIRoute() is high (> 15) (gocyclo)
    • pkg/models/listeners.go
    • Line 855: warning: cyclomatic complexity 28 of function (*WebhookListener).Handle() is high (> 15) (gocyclo)
    • Line 641: warning: cyclomatic complexity 17 of function (*UpdateTaskInSavedFilterViews).Handle() is high (> 15) (gocyclo)
    • pkg/models/task_search.go
    • Line 416: warning: cyclomatic complexity 26 of function convertParsedFilterToTypesense() is high (> 15) (gocyclo)
    • Line 209: warning: cyclomatic complexity 23 of function (*dbTaskSearcher).Search() is high (> 15) (gocyclo)
    • Line 505: warning: cyclomatic complexity 22 of function (*typesenseTaskSearcher).Search() is high (> 15) (gocyclo)
    • Line 88: warning: cyclomatic complexity 22 of function convertFiltersToDBFilterCond() is high (> 15) (gocyclo)
    • pkg/models/saved_filters.go
    • Line 355: warning: cyclomatic complexity 24 of function RegisterAddTaskToFilterViewCron() is high (> 15) (gocyclo)
    • Line 184: warning: cyclomatic complexity 16 of function (*SavedFilter).Update() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!