Preparing report...

Report for github.com/go-vela/types

(v0.18.1)

A+    Excellent!    Found 20 issues across 145 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!


gocyclo86%

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.

    • library/step.go
    • Line 577: warning: cyclomatic complexity 20 of function StepFromContainerEnvironment() is high (> 15) (gocyclo)
    • yaml/secret.go
    • Line 67: warning: cyclomatic complexity 17 of function (*SecretSlice).UnmarshalYAML() is high (> 15) (gocyclo)
    • library/secret_test.go
    • Line 289: warning: cyclomatic complexity 16 of function TestLibrary_Secret_Setters() is high (> 15) (gocyclo)
    • Line 213: warning: cyclomatic complexity 16 of function TestLibrary_Secret_Getters() is high (> 15) (gocyclo)
    • library/build_test.go
    • Line 578: warning: cyclomatic complexity 33 of function TestLibrary_Build_Setters() is high (> 15) (gocyclo)
    • Line 434: warning: cyclomatic complexity 33 of function TestLibrary_Build_Getters() is high (> 15) (gocyclo)
    • pipeline/container.go
    • Line 106: warning: cyclomatic complexity 22 of function (*Container).Empty() is high (> 15) (gocyclo)
    • Line 142: warning: cyclomatic complexity 17 of function (*Container).Execute() is high (> 15) (gocyclo)
    • library/step_test.go
    • Line 74: warning: cyclomatic complexity 18 of function TestLibrary_Step_Getters() is high (> 15) (gocyclo)
    • Line 158: warning: cyclomatic complexity 18 of function TestLibrary_Step_Setters() is high (> 15) (gocyclo)
    • database/step.go
    • Line 62: warning: cyclomatic complexity 18 of function (*Step).Nullify() is high (> 15) (gocyclo)
    • library/pipeline_test.go
    • Line 13: warning: cyclomatic complexity 17 of function TestLibrary_Pipeline_Getters() is high (> 15) (gocyclo)
    • Line 93: warning: cyclomatic complexity 17 of function TestLibrary_Pipeline_Setters() is high (> 15) (gocyclo)
    • database/hook.go
    • Line 56: warning: cyclomatic complexity 16 of function (*Hook).Nullify() is high (> 15) (gocyclo)
    • library/repo_test.go
    • Line 168: warning: cyclomatic complexity 24 of function TestLibrary_Repo_Setters() is high (> 15) (gocyclo)
    • Line 60: warning: cyclomatic complexity 24 of function TestLibrary_Repo_Getters() is high (> 15) (gocyclo)
    • library/service.go
    • Line 540: warning: cyclomatic complexity 19 of function ServiceFromContainerEnvironment() is high (> 15) (gocyclo)
    • library/service_test.go
    • Line 73: warning: cyclomatic complexity 17 of function TestLibrary_Service_Getters() is high (> 15) (gocyclo)
    • Line 153: warning: cyclomatic complexity 17 of function TestLibrary_Service_Setters() is high (> 15) (gocyclo)
    • library/hook_test.go
    • Line 14: warning: cyclomatic complexity 16 of function TestLibrary_Hook_Getters() is high (> 15) (gocyclo)
    • Line 90: warning: cyclomatic complexity 16 of function TestLibrary_Hook_Setters() 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!