Preparing report...

Report for github.com/kubevela/kubevela

(v1.3.2)

A+    Excellent!    Found 72 issues across 760 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!


gofmt99%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo90%

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/resourcekeeper/gc.go
    • Line 323: warning: cyclomatic complexity 26 of function (*gcHandler).GarbageCollectLegacyResourceTrackers() is high (> 15) (gocyclo)
    • Line 280: warning: cyclomatic complexity 16 of function (*gcHandler).GarbageCollectComponentRevisionResourceTracker() is high (> 15) (gocyclo)
    • references/cli/def.go
    • Line 159: warning: cyclomatic complexity 27 of function NewDefinitionInitCommand() is high (> 15) (gocyclo)
    • Line 651: warning: cyclomatic complexity 21 of function NewDefinitionRenderCommand() is high (> 15) (gocyclo)
    • Line 552: warning: cyclomatic complexity 16 of function NewDefinitionEditCommand() is high (> 15) (gocyclo)
    • pkg/definition/definition.go
    • Line 192: warning: cyclomatic complexity 27 of function (*Definition).FromCUE() is high (> 15) (gocyclo)
    • Line 293: warning: cyclomatic complexity 21 of function (*Definition).FromCUEString() is high (> 15) (gocyclo)
    • pkg/apiserver/rest/usecase/application.go
    • Line 838: warning: cyclomatic complexity 24 of function (*applicationUsecaseImpl).renderOAMApplication() is high (> 15) (gocyclo)
    • Line 1019: warning: cyclomatic complexity 20 of function (*applicationUsecaseImpl).DeleteApplication() is high (> 15) (gocyclo)
    • Line 148: warning: cyclomatic complexity 20 of function listApp() is high (> 15) (gocyclo)
    • Line 692: warning: cyclomatic complexity 19 of function (*applicationUsecaseImpl).Deploy() is high (> 15) (gocyclo)
    • pkg/cue/definition/template.go
    • Line 289: warning: cyclomatic complexity 28 of function (*traitDef).Complete() is high (> 15) (gocyclo)
    • Line 87: warning: cyclomatic complexity 19 of function (*workloadDef).Complete() is high (> 15) (gocyclo)
    • pkg/velaql/providers/query/handler.go
    • Line 196: warning: cyclomatic complexity 28 of function (*provider).GeneratorServiceEndpoints() is high (> 15) (gocyclo)
    • Line 328: warning: cyclomatic complexity 17 of function (*provider).CollectLogsInPod() is high (> 15) (gocyclo)
    • references/plugins/references.go
    • Line 650: warning: cyclomatic complexity 26 of function (*MarkdownReference).CreateMarkdown() is high (> 15) (gocyclo)
    • Line 861: warning: cyclomatic complexity 20 of function (*ParseReference).parseParameters() is high (> 15) (gocyclo)
    • pkg/resourcetracker/tree.go
    • Line 344: warning: cyclomatic complexity 21 of function RetrieveKubeCtlGetMessageGenerator() is high (> 15) (gocyclo)
    • Line 125: warning: cyclomatic complexity 18 of function (*ResourceTreePrintOptions).fillResourceRows() is high (> 15) (gocyclo)
    • pkg/appfile/template.go
    • Line 153: warning: cyclomatic complexity 20 of function LoadTemplateFromRevision() is high (> 15) (gocyclo)
    • Line 72: warning: cyclomatic complexity 18 of function LoadTemplate() is high (> 15) (gocyclo)
    • pkg/workflow/tasks/custom/task.go
    • Line 106: warning: cyclomatic complexity 26 of function (*TaskLoader).makeTaskGenerator() is high (> 15) (gocyclo)
    • Line 332: warning: cyclomatic complexity 17 of function (*executor).doSteps() is high (> 15) (gocyclo)
    • pkg/addon/utils.go
    • Line 142: warning: cyclomatic complexity 17 of function findLegacyAddonDefs() is high (> 15) (gocyclo)
    • Line 72: warning: cyclomatic complexity 16 of function checkAddonHasBeenUsed() 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!