Preparing report...

Report for github.com/openshift-pipelines/pipelines-as-code

A    Great!    Found 24 issues across 85 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo97%

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.


golint72%

Golint is a linter for Go source code.

    • pipelines-as-code/pkg/test/kubernetestint/kubernetesint.go
    • Line 12: warning: exported type KinterfaceTest should have comment or be unexported (golint)
    • Line 17: warning: exported method KinterfaceTest.GetConsoleUI should have comment or be unexported (golint)
    • Line 21: warning: exported method KinterfaceTest.GetNamespace should have comment or be unexported (golint)
    • Line 28: warning: exported method KinterfaceTest.WaitForPipelineRunSucceed should have comment or be unexported (golint)
    • pipelines-as-code/pkg/cli/params.go
    • Line 16: warning: exported type PacParams should have comment or be unexported (golint)
    • Line 27: warning: exported method PacParams.SetKubeConfigPath should have comment or be unexported (golint)
    • Line 31: warning: exported method PacParams.SetGitHubToken should have comment or be unexported (golint)
    • Line 35: warning: exported method PacParams.SetGitHubAPIURL should have comment or be unexported (golint)
    • Line 118: warning: exported method PacParams.Clients should have comment or be unexported (golint)
    • pipelines-as-code/pkg/test/params/params.go
    • Line 8: warning: exported type FakeParams should have comment or be unexported (golint)
    • Line 25: warning: exported method FakeParams.Clients should have comment or be unexported (golint)
    • Line 29: warning: exported method FakeParams.KubeClient should have comment or be unexported (golint)
    • pipelines-as-code/pkg/cli/interface.go
    • Line 18: warning: exported type Clients should have comment or be unexported (golint)
    • Line 28: warning: exported type Params should have comment or be unexported (golint)
    • Line 43: warning: exported type KubeInteractionIntf should have comment or be unexported (golint)
    • pipelines-as-code/pkg/webvcs/github.go
    • Line 21: warning: exported type GithubVCS should have comment or be unexported (golint)
    • Line 371: warning: exported method GithubVCS.CreateCheckRun should have comment or be unexported (golint)
    • Line 385: warning: exported method GithubVCS.CreateStatus should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (exit status 2)


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!