Preparing report...

Report for github.com/tele-cms/launchpad

(v0.0.0-20220310020323-2c539bb4edef)

A+    Excellent!    Found 73 issues across 681 files

Tweet

gofmt99%

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


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!


golint97%

Golint is a linter for Go source code.

    • e2e/cli.go
    • Line 83: warning: exported function LongTimeExecWithEnv should have comment or be unexported (golint)
    • Line 134: warning: exported function BeforeSuit should have comment or be unexported (golint)
    • pkg/builtin/http/http.go
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • pkg/builtin/kind/client.go
    • Line 35: warning: exported function LoadDockerImage should have comment or be unexported (golint)
    • Line 39: warning: exported function LoadDockerImages should have comment or be unexported (golint)
    • Line 43: warning: exported function LoadDockerImagesWithFlags should have comment or be unexported (golint)

gocyclo91%

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/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)
    • references/cli/def.go
    • Line 159: warning: cyclomatic complexity 27 of function NewDefinitionInitCommand() is high (> 15) (gocyclo)
    • Line 643: warning: cyclomatic complexity 21 of function NewDefinitionRenderCommand() is high (> 15) (gocyclo)
    • Line 544: warning: cyclomatic complexity 16 of function NewDefinitionEditCommand() is high (> 15) (gocyclo)
    • pkg/apiserver/rest/usecase/application.go
    • Line 735: warning: cyclomatic complexity 24 of function (*applicationUsecaseImpl).renderOAMApplication() is high (> 15) (gocyclo)
    • Line 147: warning: cyclomatic complexity 20 of function listApp() is high (> 15) (gocyclo)
    • Line 914: warning: cyclomatic complexity 20 of function (*applicationUsecaseImpl).DeleteApplication() is high (> 15) (gocyclo)
    • Line 632: warning: cyclomatic complexity 18 of function (*applicationUsecaseImpl).Deploy() is high (> 15) (gocyclo)
    • pkg/resourcekeeper/gc.go
    • Line 321: warning: cyclomatic complexity 24 of function (*gcHandler).GarbageCollectLegacyResourceTrackers() is high (> 15) (gocyclo)
    • Line 278: warning: cyclomatic complexity 16 of function (*gcHandler).GarbageCollectComponentRevisionResourceTracker() is high (> 15) (gocyclo)
    • references/plugins/references.go
    • Line 630: warning: cyclomatic complexity 26 of function (*MarkdownReference).CreateMarkdown() is high (> 15) (gocyclo)
    • Line 841: warning: cyclomatic complexity 20 of function (*ParseReference).parseParameters() 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/velaql/providers/query/handler.go
    • Line 173: warning: cyclomatic complexity 28 of function (*provider).GeneratorServiceEndpoints() is high (> 15) (gocyclo)
    • Line 302: warning: cyclomatic complexity 17 of function (*provider).CollectLogsInPod() is high (> 15) (gocyclo)
    • pkg/cue/definition/template.go
    • Line 289: warning: cyclomatic complexity 30 of function (*traitDef).Complete() is high (> 15) (gocyclo)
    • Line 87: warning: cyclomatic complexity 19 of function (*workloadDef).Complete() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!