Preparing report...

Report for github.com/jenkins-x-labs/trigger-pipeline

A+    Excellent!    Found 6 issues across 21 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!


gocyclo95%

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.


golint76%

Golint is a linter for Go source code.

    • trigger-pipeline/pkg/jenkinsutil/helpers.go
    • Line 19: warning: exported type JenkinsOptions should have comment or be unexported (golint)
    • Line 201: warning: exported method JenkinsOptions.GetBranchName should have comment or be unexported (golint)
    • Line 246: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • trigger-pipeline/pkg/jenkinsutil/fake/fake_client.go
    • Line 55: warning: exported method FakeClient.GetJobs should have comment or be unexported (golint)
    • Line 59: warning: exported method FakeClient.GetJob should have comment or be unexported (golint)
    • Line 72: warning: exported method FakeClient.GetJobURLPath should have comment or be unexported (golint)
    • Line 76: warning: exported method FakeClient.IsErrNotFound should have comment or be unexported (golint)
    • Line 80: warning: exported method FakeClient.BaseURL should have comment or be unexported (golint)
    • Line 84: warning: exported method FakeClient.SetHTTPClient should have comment or be unexported (golint)
    • Line 88: warning: exported method FakeClient.Post should have comment or be unexported (golint)
    • Line 92: warning: exported method FakeClient.GetJobConfig should have comment or be unexported (golint)
    • Line 96: warning: exported method FakeClient.GetBuild should have comment or be unexported (golint)
    • Line 100: warning: exported method FakeClient.GetLastBuild should have comment or be unexported (golint)
    • Line 104: warning: exported method FakeClient.StopBuild should have comment or be unexported (golint)
    • Line 108: warning: exported method FakeClient.GetMultiBranchJob should have comment or be unexported (golint)
    • Line 112: warning: exported method FakeClient.GetJobByPath should have comment or be unexported (golint)
    • Line 154: warning: exported method FakeClient.GetOrganizationScanResult should have comment or be unexported (golint)
    • Line 158: warning: exported method FakeClient.CreateJob should have comment or be unexported (golint)
    • Line 162: warning: exported method FakeClient.Reload should have comment or be unexported (golint)
    • Line 166: warning: exported method FakeClient.Restart should have comment or be unexported (golint)
    • Line 170: warning: exported method FakeClient.SafeRestart should have comment or be unexported (golint)
    • Line 174: warning: exported method FakeClient.QuietDown should have comment or be unexported (golint)
    • Line 178: warning: exported method FakeClient.CreateJobWithXML should have comment or be unexported (golint)
    • Line 183: warning: exported method FakeClient.CreateFolderJobWithXML should have comment or be unexported (golint)
    • Line 188: warning: exported method FakeClient.GetCredential should have comment or be unexported (golint)
    • Line 192: warning: exported method FakeClient.CreateCredential should have comment or be unexported (golint)
    • Line 196: warning: exported method FakeClient.DeleteJob should have comment or be unexported (golint)
    • Line 200: warning: exported method FakeClient.UpdateJob should have comment or be unexported (golint)
    • Line 204: warning: exported method FakeClient.RemoveJob should have comment or be unexported (golint)
    • Line 208: warning: exported method FakeClient.AddJobToView should have comment or be unexported (golint)
    • Line 212: warning: exported method FakeClient.CreateView should have comment or be unexported (golint)
    • Line 216: warning: exported method FakeClient.Build should have comment or be unexported (golint)
    • Line 221: warning: exported method FakeClient.GetBuildConsoleOutput should have comment or be unexported (golint)
    • Line 225: warning: exported method FakeClient.GetQueue should have comment or be unexported (golint)
    • Line 229: warning: exported method FakeClient.GetArtifact should have comment or be unexported (golint)
    • Line 233: warning: exported method FakeClient.SetBuildDescription should have comment or be unexported (golint)
    • Line 237: warning: exported method FakeClient.GetComputerObject should have comment or be unexported (golint)
    • Line 241: warning: exported method FakeClient.GetComputers should have comment or be unexported (golint)
    • Line 245: warning: exported method FakeClient.GetComputer should have comment or be unexported (golint)
    • Line 249: warning: exported method FakeClient.GetBuildURL should have comment or be unexported (golint)
    • Line 253: warning: exported method FakeClient.GetLogFromURL should have comment or be unexported (golint)
    • Line 257: warning: exported method FakeClient.TailLog should have comment or be unexported (golint)
    • Line 261: warning: exported method FakeClient.TailLogFunc should have comment or be unexported (golint)
    • Line 265: warning: exported method FakeClient.NewLogPoller should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!