Preparing report...

Report for github.com/tektoncd/cli

(v0.30.1)

A+    Excellent!    Found 44 issues across 312 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!


gocyclo85%

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.

    • third_party/VENDOR-LICENSE/github.com/hashicorp/hcl/hcl/scanner/scanner.go
    • Line 130: warning: cyclomatic complexity 23 of function (*Scanner).Scan() is high (> 15) (gocyclo)
    • Line 272: warning: cyclomatic complexity 23 of function (*Scanner).scanNumber() is high (> 15) (gocyclo)
    • Line 393: warning: cyclomatic complexity 18 of function (*Scanner).scanHeredoc() is high (> 15) (gocyclo)
    • Line 231: warning: cyclomatic complexity 17 of function (*Scanner).scanComment() is high (> 15) (gocyclo)
    • Line 477: warning: cyclomatic complexity 16 of function (*Scanner).scanString() is high (> 15) (gocyclo)
    • pkg/cmd/taskrun/delete.go
    • Line 156: warning: cyclomatic complexity 46 of function deleteTaskRuns() is high (> 15) (gocyclo)
    • Line 65: warning: cyclomatic complexity 19 of function deleteCommand() is high (> 15) (gocyclo)
    • pkg/cmd/task/logs_test.go
    • Line 323: warning: cyclomatic complexity 36 of function TestTaskLogInteractive_v1beta1() is high (> 15) (gocyclo)
    • Line 795: warning: cyclomatic complexity 36 of function TestTaskLogInteractive() is high (> 15) (gocyclo)
    • test/wait/wait.go
    • Line 87: warning: cyclomatic complexity 31 of function ForPipelineRunToComplete() is high (> 15) (gocyclo)
    • test/e2e/resource/create_test.go
    • Line 293: warning: cyclomatic complexity 22 of function TestCreateStorageResourceInteractively() is high (> 15) (gocyclo)
    • Line 196: warning: cyclomatic complexity 19 of function TestCreatePullRequestResourceInteractively() is high (> 15) (gocyclo)
    • Line 111: warning: cyclomatic complexity 16 of function TestCreateImageResourceInteractively() is high (> 15) (gocyclo)
    • test/e2e/pipeline/start_test.go
    • Line 156: warning: cyclomatic complexity 17 of function TestPipelineInteractiveStartWithOptionalWorkspaceE2E() is high (> 15) (gocyclo)
    • Line 32: warning: cyclomatic complexity 16 of function TestPipelineInteractiveStartE2E() is high (> 15) (gocyclo)
    • pkg/cmd/pipeline/start.go
    • Line 235: warning: cyclomatic complexity 43 of function (*startOptions).startPipeline() is high (> 15) (gocyclo)
    • Line 871: warning: cyclomatic complexity 21 of function (*startOptions).getInputWorkspaces() is high (> 15) (gocyclo)
    • Line 434: warning: cyclomatic complexity 18 of function (*startOptions).getInput() is high (> 15) (gocyclo)
    • Line 607: warning: cyclomatic complexity 16 of function getPipelineResourcesByFormat() is high (> 15) (gocyclo)
    • pkg/cmd/task/start.go
    • Line 276: warning: cyclomatic complexity 35 of function startTask() is high (> 15) (gocyclo)
    • Line 521: warning: cyclomatic complexity 18 of function (*startOptions).getInputs() is high (> 15) (gocyclo)
    • Line 109: warning: cyclomatic complexity 16 of function startCommand() is high (> 15) (gocyclo)
    • pkg/cmd/clustertask/start.go
    • Line 214: warning: cyclomatic complexity 32 of function startClusterTask() is high (> 15) (gocyclo)
    • Line 442: warning: cyclomatic complexity 16 of function (*startOptions).getInputs() is high (> 15) (gocyclo)
    • pkg/cmd/pipelinerun/delete.go
    • Line 136: warning: cyclomatic complexity 38 of function deletePipelineRuns() is high (> 15) (gocyclo)
    • Line 59: warning: cyclomatic complexity 16 of function deleteCommand() is high (> 15) (gocyclo)
    • pkg/cmd/pipelineresource/create_test.go
    • Line 671: warning: cyclomatic complexity 33 of function TestPipelineResource_create_buildGCSstorageResource() is high (> 15) (gocyclo)
    • Line 545: warning: cyclomatic complexity 26 of function TestPipelineResource_create_gcsStorageResource() is high (> 15) (gocyclo)
    • Line 432: warning: cyclomatic complexity 23 of function TestPipelineResource_create_pullRequestResource() is high (> 15) (gocyclo)
    • Line 173: warning: cyclomatic complexity 18 of function TestPipelineResource_allResourceType() is high (> 15) (gocyclo)
    • Line 346: warning: cyclomatic complexity 16 of function TestPipelineResource_create_imageResource() is high (> 15) (gocyclo)
    • pkg/options/start.go
    • Line 318: warning: cyclomatic complexity 21 of function (*InteractiveOpts).TaskWorkspaces() is high (> 15) (gocyclo)
    • Line 563: warning: cyclomatic complexity 21 of function (*InteractiveOpts).ClusterTaskWorkspaces() is high (> 15) (gocyclo)
    • Line 112: warning: cyclomatic complexity 17 of function (*InteractiveOpts).pipelineResourcesByFormat() is high (> 15) (gocyclo)
    • pkg/cmd/pipeline/logs_test.go
    • Line 934: warning: cyclomatic complexity 37 of function TestPipelineLog_Interactive() is high (> 15) (gocyclo)
    • Line 532: warning: cyclomatic complexity 37 of function TestPipelineLog_Interactive_v1beta1() is high (> 15) (gocyclo)
    • third_party/VENDOR-LICENSE/github.com/hashicorp/hcl/hcl/printer/nodes.go
    • Line 288: warning: cyclomatic complexity 25 of function (*printer).objectType() is high (> 15) (gocyclo)
    • Line 109: warning: cyclomatic complexity 24 of function (*printer).output() is high (> 15) (gocyclo)
    • Line 519: warning: cyclomatic complexity 19 of function (*printer).list() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 18 of function (*printer).collectComments() is high (> 15) (gocyclo)
    • Line 454: warning: cyclomatic complexity 16 of function (*printer).alignedItems() 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!