Preparing report...

Report for github.com/kubesphere/ks-devops

A+    Excellent!    Found 123 issues across 239 files

Tweet

gofmt97%

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!


gocyclo93%

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.


golint51%

Golint is a linter for Go source code.

    • ks-devops/pkg/apiserver/runtime/runtime.go
    • Line 26: warning: exported const ApiRootPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: comment on exported var Container should be of the form "Container ..." (golint)
    • Line 32: warning: exported type ContainerBuilder should have comment or be unexported (golint)
    • Line 34: warning: exported const MimeMergePatchJson should have comment or be unexported (golint)
    • Line 35: warning: exported const MimeJsonPatchJson should have comment or be unexported (golint)
    • Line 36: warning: exported const MimeMultipartFormData should have comment or be unexported (golint)
    • Line 43: warning: exported function NewWebService should have comment or be unexported (golint)
    • Line 51: warning: exported function NewWebServiceWithoutGroup should have comment or be unexported (golint)
    • Line 57: warning: exported method ContainerBuilder.AddToContainer should have comment or be unexported (golint)
    • Line 66: warning: exported method ContainerBuilder.Register should have comment or be unexported (golint)
    • Line 72: warning: comment on exported function NewContainerBuilder should be of the form "NewContainerBuilder ..." (golint)
    • ks-devops/pkg/client/devops/jenkins/pipeline.go
    • Line 35: warning: exported type Pipeline should have comment or be unexported (golint)
    • Line 42: warning: exported const GetPipelineUrl should have comment (or a comment on this block) or be unexported (golint)
    • Line 91: warning: exported method Pipeline.GetPipeline should have comment or be unexported (golint)
    • Line 107: warning: exported method Pipeline.ListPipelines should have comment or be unexported (golint)
    • Line 160: warning: exported method Pipeline.GetPipelineRun should have comment or be unexported (golint)
    • Line 176: warning: exported method Pipeline.ListPipelineRuns should have comment or be unexported (golint)
    • Line 282: warning: exported method Pipeline.StopPipeline should have comment or be unexported (golint)
    • Line 299: warning: exported method Pipeline.ReplayPipeline should have comment or be unexported (golint)
    • Line 316: warning: exported method Pipeline.RunPipeline should have comment or be unexported (golint)
    • Line 333: warning: exported method Pipeline.GetArtifacts should have comment or be unexported (golint)
    • Line 350: warning: exported method Pipeline.GetRunLog should have comment or be unexported (golint)
    • Line 359: warning: exported method Pipeline.GetStepLog should have comment or be unexported (golint)
    • Line 368: warning: exported method Pipeline.GetNodeSteps should have comment or be unexported (golint)
    • Line 384: warning: exported method Pipeline.GetPipelineRunNodes should have comment or be unexported (golint)
    • Line 401: warning: exported method Pipeline.SubmitInputStep should have comment or be unexported (golint)
    • Line 410: warning: exported method Pipeline.GetBranchPipeline should have comment or be unexported (golint)
    • Line 426: warning: exported method Pipeline.GetBranchPipelineRun should have comment or be unexported (golint)
    • Line 442: warning: exported method Pipeline.StopBranchPipeline should have comment or be unexported (golint)
    • Line 458: warning: exported method Pipeline.ReplayBranchPipeline should have comment or be unexported (golint)
    • Line 474: warning: exported method Pipeline.RunBranchPipeline should have comment or be unexported (golint)
    • Line 490: warning: exported method Pipeline.GetBranchArtifacts should have comment or be unexported (golint)
    • Line 507: warning: exported method Pipeline.GetBranchRunLog should have comment or be unexported (golint)
    • Line 516: warning: exported method Pipeline.GetBranchStepLog should have comment or be unexported (golint)
    • Line 525: warning: exported method Pipeline.GetBranchNodeSteps should have comment or be unexported (golint)
    • Line 541: warning: exported method Pipeline.GetBranchPipelineRunNodes should have comment or be unexported (golint)
    • Line 557: warning: exported method Pipeline.SubmitBranchInputStep should have comment or be unexported (golint)
    • Line 566: warning: exported method Pipeline.GetPipelineBranch should have comment or be unexported (golint)
    • Line 582: warning: exported method Pipeline.ScanBranch should have comment or be unexported (golint)
    • Line 591: warning: exported method Pipeline.GetConsoleLog should have comment or be unexported (golint)
    • Line 600: warning: exported method Pipeline.GetCrumb should have comment or be unexported (golint)
    • Line 616: warning: exported method Pipeline.GetSCMServers should have comment or be unexported (golint)
    • Line 632: warning: exported method Pipeline.GetSCMOrg should have comment or be unexported (golint)
    • Line 648: warning: exported method Pipeline.GetOrgRepo should have comment or be unexported (golint)
    • Line 664: warning: exported method Pipeline.CreateSCMServers should have comment or be unexported (golint)
    • Line 680: warning: exported method Pipeline.GetNotifyCommit should have comment or be unexported (golint)
    • Line 689: warning: exported method Pipeline.GithubWebhook should have comment or be unexported (golint)
    • Line 698: warning: exported method Pipeline.GenericWebhook should have comment or be unexported (golint)
    • Line 707: warning: exported method Pipeline.Validate should have comment or be unexported (golint)
    • Line 724: warning: exported method Pipeline.CheckScriptCompile should have comment or be unexported (golint)
    • Line 749: warning: exported method Pipeline.CheckCron should have comment or be unexported (golint)
    • Line 759: 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)
    • Line 855: warning: exported method Pipeline.ToJenkinsfile should have comment or be unexported (golint)
    • Line 872: warning: exported method Pipeline.ToJson should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/jenkins/job.go
    • Line 30: warning: exported type Job should have comment or be unexported (golint)
    • Line 36: warning: exported type JobBuild should have comment or be unexported (golint)
    • Line 41: warning: exported type JobBuildStatus should have comment or be unexported (golint)
    • Line 47: warning: exported type InnerJob should have comment or be unexported (golint)
    • Line 53: warning: exported type ParameterDefinition should have comment or be unexported (golint)
    • Line 63: warning: exported type JobResponse should have comment or be unexported (golint)
    • Line 107: warning: exported type History should have comment or be unexported (golint)
    • Line 113: warning: exported method Job.GetName should have comment or be unexported (golint)
    • Line 117: warning: exported method Job.GetDescription should have comment or be unexported (golint)
    • Line 121: warning: exported method Job.GetDetails should have comment or be unexported (golint)
    • Line 125: warning: exported method Job.GetBuild should have comment or be unexported (golint)
    • Line 168: warning: exported method Job.GetLastSuccessfulBuild should have comment or be unexported (golint)
    • Line 172: warning: exported method Job.GetFirstBuild should have comment or be unexported (golint)
    • Line 176: warning: exported method Job.GetLastBuild should have comment or be unexported (golint)
    • Line 180: warning: exported method Job.GetLastStableBuild should have comment or be unexported (golint)
    • Line 184: warning: exported method Job.GetLastFailedBuild should have comment or be unexported (golint)
    • Line 188: warning: exported method Job.GetLastCompletedBuild should have comment or be unexported (golint)
    • Line 192: warning: comment on exported method Job.GetAllBuildIds should be of the form "GetAllBuildIds ..." (golint)
    • Line 204: warning: exported method Job.GetAllBuildStatus should have comment or be unexported (golint)
    • Line 215: warning: exported method Job.GetUpstreamJobsMetadata should have comment or be unexported (golint)
    • Line 219: warning: exported method Job.GetDownstreamJobsMetadata should have comment or be unexported (golint)
    • Line 223: warning: exported method Job.GetInnerJobsMetadata should have comment or be unexported (golint)
    • Line 227: warning: exported method Job.GetUpstreamJobs should have comment or be unexported (golint)
    • Line 239: warning: exported method Job.GetDownstreamJobs should have comment or be unexported (golint)
    • Line 251: warning: exported method Job.GetInnerJob should have comment or be unexported (golint)
    • Line 263: warning: exported method Job.GetInnerJobs should have comment or be unexported (golint)
    • Line 275: warning: exported method Job.Enable should have comment or be unexported (golint)
    • Line 286: warning: exported method Job.Disable should have comment or be unexported (golint)
    • Line 297: warning: exported method Job.Delete should have comment or be unexported (golint)
    • Line 308: warning: exported method Job.Rename should have comment or be unexported (golint)
    • Line 320: warning: exported method Job.Create should have comment or be unexported (golint)
    • Line 336: warning: exported method Job.Copy should have comment or be unexported (golint)
    • Line 353: warning: exported method Job.UpdateConfig should have comment or be unexported (golint)
    • Line 369: warning: exported method Job.GetConfig should have comment or be unexported (golint)
    • Line 378: warning: exported method Job.GetParameters should have comment or be unexported (golint)
    • Line 390: warning: exported method Job.IsQueued should have comment or be unexported (golint)
    • Line 397: warning: exported method Job.IsRunning should have comment or be unexported (golint)
    • Line 408: warning: exported method Job.IsEnabled should have comment or be unexported (golint)
    • Line 415: warning: exported method Job.HasQueuedBuild should have comment or be unexported (golint)
    • Line 419: warning: exported method Job.InvokeSimple should have comment or be unexported (golint)
    • Line 459: warning: exported method Job.Invoke should have comment or be unexported (golint)
    • Line 499: warning: exported method Job.Poll should have comment or be unexported (golint)
    • ks-devops/controllers/s2ibinary/s2ibinary_controller.go
    • Line 47: warning: comment on exported type Controller should be of the form "Controller ..." (with optional leading article) (golint)
    • Line 68: warning: exported function NewController should have comment or be unexported (golint)
    • Line 162: warning: exported method Controller.Start should have comment or be unexported (golint)
    • Line 166: warning: exported method Controller.Run should have comment or be unexported (golint)
    • ks-devops/pkg/apiserver/apiserver.go
    • Line 63: warning: comment on exported const MimeJsonPatchJson should be of the form "MimeJsonPatchJson ..." (golint)
    • Line 67: warning: exported type APIServer should have comment or be unexported (golint)
    • Line 99: warning: exported method APIServer.PrepareRun should have comment or be unexported (golint)
    • Line 140: warning: exported method APIServer.Run should have comment or be unexported (golint)
    • ks-devops/pkg/server/params/params.go
    • Line 29: warning: exported const PagingParam should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported const DefaultLimit should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported function AtoiOrDefault should have comment or be unexported (golint)
    • Line 114: warning: exported function ParseConditions should have comment or be unexported (golint)
    • Line 118: warning: exported type Conditions should have comment or be unexported (golint)
    • Line 123: warning: exported function GetBoolValueWithDefault should have comment or be unexported (golint)
    • Line 131: warning: exported function GetStringValueWithDefault should have comment or be unexported (golint)
    • ks-devops/controllers/devopscredential/devopscredential_controller.go
    • Line 57: warning: exported type Controller should have comment or be unexported (golint)
    • Line 77: warning: exported function NewController should have comment or be unexported (golint)
    • Line 184: warning: exported method Controller.Start should have comment or be unexported (golint)
    • Line 188: warning: exported method Controller.Run should have comment or be unexported (golint)
    • Line 256: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • ks-devops/pkg/client/devops/jenkins/folder.go
    • Line 23: warning: exported type Folder should have comment or be unexported (golint)
    • Line 29: warning: exported type FolderResponse should have comment or be unexported (golint)
    • Line 42: warning: exported method Folder.GetName should have comment or be unexported (golint)
    • Line 46: warning: exported method Folder.Create should have comment or be unexported (golint)
    • Line 69: warning: exported method Folder.Poll should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/jenkins/jenkins.go
    • Line 15: warning: package comment should be of the form "Package jenkins ..." (golint)
    • Line 37: warning: comment on exported type BasicAuth should be of the form "BasicAuth ..." (with optional leading article) (golint)
    • Line 43: warning: exported type Jenkins should have comment or be unexported (golint)
    • Line 89: warning: comment on exported method Jenkins.CreateFolder should be of the form "CreateFolder ..." (golint)
    • Line 101: warning: comment on exported method Jenkins.CreateJobInFolder should be of the form "CreateJobInFolder ..." (golint)
    • Line 115: warning: comment on exported method Jenkins.CreateJob should be of the form "CreateJob ..." (golint)
    • Line 134: warning: comment on exported method Jenkins.RenameJob should be of the form "RenameJob ..." (golint)
    • Line 142: warning: comment on exported method Jenkins.CopyJob should be of the form "CopyJob ..." (golint)
    • Line 153: warning: comment on exported method Jenkins.DeleteJob should be of the form "DeleteJob ..." (golint)
    • Line 159: warning: comment on exported method Jenkins.BuildJob should be of the form "BuildJob ..." (golint)
    • Line 170: warning: exported method Jenkins.GetBuild should have comment or be unexported (golint)
    • Line 183: warning: exported method Jenkins.GetJob should have comment or be unexported (golint)
    • Line 195: warning: exported method Jenkins.GetFolder should have comment or be unexported (golint)
    • Line 212: warning: exported method Jenkins.Poll should have comment or be unexported (golint)
    • Line 220: warning: comment on exported method Jenkins.GetGlobalRole should be of the form "GetGlobalRole ..." (golint)
    • Line 249: warning: exported method Jenkins.GetGlobalRoleHandler should have comment or be unexported (golint)
    • Line 266: warning: comment on exported method Jenkins.AssignGlobalRole should be of the form "AssignGlobalRole ..." (golint)
    • Line 288: warning: comment on exported method Jenkins.UnAssignGlobalRole should be of the form "UnAssignGlobalRole ..." (golint)
    • Line 310: warning: exported method Jenkins.GetProjectRole should have comment or be unexported (golint)
    • Line 340: warning: comment on exported method Jenkins.AssignProjectRole should be of the form "AssignProjectRole ..." (golint)
    • Line 362: warning: comment on exported method Jenkins.UnAssignProjectRole should be of the form "UnAssignProjectRole ..." (golint)
    • Line 384: warning: comment on exported method Jenkins.AddGlobalRole should be of the form "AddGlobalRole ..." (golint)
    • Line 411: warning: comment on exported method Jenkins.DeleteProjectRoles should be of the form "DeleteProjectRoles ..." (golint)
    • Line 429: warning: comment on exported method Jenkins.AddProjectRole should be of the form "AddProjectRole ..." (golint)
    • Line 457: warning: exported method Jenkins.DeleteUserInProject should have comment or be unexported (golint)
    • Line 473: warning: exported method Jenkins.GetPipeline should have comment or be unexported (golint)
    • Line 483: warning: exported method Jenkins.ListPipelines should have comment or be unexported (golint)
    • Line 493: warning: exported method Jenkins.GetPipelineRun should have comment or be unexported (golint)
    • Line 503: warning: exported method Jenkins.ListPipelineRuns should have comment or be unexported (golint)
    • Line 513: warning: exported method Jenkins.StopPipeline should have comment or be unexported (golint)
    • Line 523: warning: exported method Jenkins.ReplayPipeline should have comment or be unexported (golint)
    • Line 533: warning: exported method Jenkins.RunPipeline should have comment or be unexported (golint)
    • Line 543: warning: exported method Jenkins.GetArtifacts should have comment or be unexported (golint)
    • Line 553: warning: exported method Jenkins.GetRunLog should have comment or be unexported (golint)
    • Line 563: warning: exported method Jenkins.GetStepLog should have comment or be unexported (golint)
    • Line 573: warning: exported method Jenkins.GetNodeSteps should have comment or be unexported (golint)
    • Line 583: warning: exported method Jenkins.GetPipelineRunNodes should have comment or be unexported (golint)
    • Line 593: warning: exported method Jenkins.SubmitInputStep should have comment or be unexported (golint)
    • Line 603: warning: exported method Jenkins.GetBranchPipeline should have comment or be unexported (golint)
    • Line 613: warning: exported method Jenkins.GetBranchPipelineRun should have comment or be unexported (golint)
    • Line 623: warning: exported method Jenkins.StopBranchPipeline should have comment or be unexported (golint)
    • Line 633: warning: exported method Jenkins.ReplayBranchPipeline should have comment or be unexported (golint)
    • Line 643: warning: exported method Jenkins.RunBranchPipeline should have comment or be unexported (golint)
    • Line 653: warning: exported method Jenkins.GetBranchArtifacts should have comment or be unexported (golint)
    • Line 663: warning: exported method Jenkins.GetBranchRunLog should have comment or be unexported (golint)
    • Line 673: warning: exported method Jenkins.GetBranchStepLog should have comment or be unexported (golint)
    • Line 683: warning: exported method Jenkins.GetBranchNodeSteps should have comment or be unexported (golint)
    • Line 693: warning: exported method Jenkins.GetBranchPipelineRunNodes should have comment or be unexported (golint)
    • Line 703: warning: exported method Jenkins.SubmitBranchInputStep should have comment or be unexported (golint)
    • Line 713: warning: exported method Jenkins.GetPipelineBranch should have comment or be unexported (golint)
    • Line 724: warning: exported method Jenkins.ScanBranch should have comment or be unexported (golint)
    • Line 734: warning: exported method Jenkins.GetConsoleLog should have comment or be unexported (golint)
    • Line 744: warning: exported method Jenkins.GetCrumb should have comment or be unexported (golint)
    • Line 754: warning: exported method Jenkins.GetSCMServers should have comment or be unexported (golint)
    • Line 764: warning: exported method Jenkins.GetSCMOrg should have comment or be unexported (golint)
    • Line 774: warning: exported method Jenkins.GetOrgRepo should have comment or be unexported (golint)
    • Line 784: warning: exported method Jenkins.CreateSCMServers should have comment or be unexported (golint)
    • Line 794: warning: exported method Jenkins.GetNotifyCommit should have comment or be unexported (golint)
    • Line 804: warning: exported method Jenkins.GithubWebhook should have comment or be unexported (golint)
    • Line 814: warning: exported method Jenkins.GenericWebhook should have comment or be unexported (golint)
    • Line 824: warning: exported method Jenkins.Validate should have comment or be unexported (golint)
    • Line 834: warning: exported method Jenkins.CheckScriptCompile should have comment or be unexported (golint)
    • Line 844: warning: exported method Jenkins.CheckCron should have comment or be unexported (golint)
    • Line 877: warning: exported method Jenkins.ToJenkinsfile should have comment or be unexported (golint)
    • Line 887: warning: exported method Jenkins.ToJson should have comment or be unexported (golint)
    • Line 897: warning: comment on exported function CreateJenkins should be of the form "CreateJenkins ..." (golint)
    • ks-devops/pkg/client/devops/jenkins/pure_request.go
    • Line 31: warning: comment on exported method Jenkins.SendPureRequest should be of the form "SendPureRequest ..." (golint)
    • Line 38: warning: comment on exported method Jenkins.SendPureRequestWithHeaderResp should be of the form "SendPureRequestWithHeaderResp ..." (golint)
    • ks-devops/pkg/apiserver/authentication/oauth/oauth_options.go
    • Line 29: warning: exported type GrantHandlerType should have comment or be unexported (golint)
    • Line 30: warning: exported type MappingMethod should have comment or be unexported (golint)
    • Line 31: warning: exported type IdentityProviderType should have comment or be unexported (golint)
    • Line 52: warning: exported var ErrorClientNotFound should have comment or be unexported (golint)
    • Line 57: warning: exported type Options should have comment or be unexported (golint)
    • Line 81: warning: comment on exported type DynamicOptions should be of the form "DynamicOptions ..." (with optional leading article) (golint)
    • Line 84: warning: exported method DynamicOptions.MarshalJSON should have comment or be unexported (golint)
    • Line 132: warning: exported type IdentityProviderOptions should have comment or be unexported (golint)
    • Line 152: warning: exported type Token should have comment or be unexported (golint)
    • Line 170: warning: exported type Client should have comment or be unexported (golint)
    • Line 206: warning: comment on exported var AllowAllRedirectURI should be of the form "AllowAllRedirectURI ..." (golint)
    • Line 208: warning: exported var DefaultTokenMaxAge should have comment or be unexported (golint)
    • Line 222: warning: exported method Options.OAuthClient should have comment or be unexported (golint)
    • Line 236: warning: exported method Options.IdentityProviderOptions should have comment or be unexported (golint)
    • Line 256: warning: exported method Client.ResolveRedirectURL should have comment or be unexported (golint)
    • Line 268: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 279: warning: exported function NewOptions should have comment or be unexported (golint)
    • ks-devops/pkg/apiserver/query/field.go
    • Line 19: warning: exported type Field should have comment or be unexported (golint)
    • Line 20: warning: exported type Value should have comment or be unexported (golint)
    • Line 23: warning: exported const FieldName should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported var SortableFields should have comment or be unexported (golint)
    • Line 48: warning: comment on exported var ComparableFields should be of the form "ComparableFields ..." (golint)
    • ks-devops/pkg/utils/idutils/id_utils.go
    • Line 44: warning: exported function GetIntId should have comment or be unexported (golint)
    • Line 52: warning: comment on exported function GetUuid should be of the form "GetUuid ..." (golint)
    • Line 68: warning: exported const Alphabet36 should have comment or be unexported (golint)
    • Line 70: warning: comment on exported function GetUuid36 should be of the form "GetUuid36 ..." (golint)
    • Line 105: warning: exported function IPv4 should have comment or be unexported (golint)
    • ks-devops/controllers/s2irun/s2irun_controller.go
    • Line 46: warning: comment on exported type Controller should be of the form "Controller ..." (with optional leading article) (golint)
    • Line 69: warning: exported function NewS2iRunController should have comment or be unexported (golint)
    • Line 164: warning: exported method Controller.Start should have comment or be unexported (golint)
    • Line 168: warning: exported method Controller.Run should have comment or be unexported (golint)
    • Line 240: warning: comment on exported method Controller.DeleteS2iBinary should be of the form "DeleteS2iBinary ..." (golint)
    • ks-devops/pkg/config/config.go
    • Line 92: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 115: 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)
    • Line 129: warning: comment on exported method Config.ToMap should be of the form "ToMap ..." (golint)
    • ks-devops/pkg/kapis/devops/v1alpha2/register.go
    • Line 48: warning: exported var GroupVersion should have comment or be unexported (golint)
    • Line 50: warning: exported function AddToContainer should have comment or be unexported (golint)
    • Line 95: warning: exported function AddPipelineToWebService should have comment or be unexported (golint)
    • Line 656: warning: exported function AddS2IToWebService should have comment or be unexported (golint)
    • ks-devops/pkg/api/devops/v1alpha1/s2ibuildertemplate_types.go
    • Line 24: warning: exported const ResourceKindS2iBuilderTemplate should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 39: warning: exported type CodeFramework should have comment or be unexported (golint)
    • Line 42: warning: exported const Ruby should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported method Parameter.ToEnvonment should have comment or be unexported (golint)
    • Line 83: warning: exported type ContainerInfo should have comment or be unexported (golint)
    • ks-devops/pkg/server/errors/errors.go
    • Line 26: warning: exported type Error should have comment or be unexported (golint)
    • Line 30: warning: exported var None should have comment or be unexported (golint)
    • Line 36: warning: exported function Wrap should have comment or be unexported (golint)
    • Line 40: warning: exported function New should have comment or be unexported (golint)
    • Line 44: warning: exported function GetServiceErrorCode should have comment or be unexported (golint)
    • Line 47: 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)
    • ks-devops/pkg/client/sonarqube/options.go
    • Line 23: warning: exported type Options should have comment or be unexported (golint)
    • Line 28: warning: exported function NewSonarQubeOptions should have comment or be unexported (golint)
    • Line 35: warning: exported method Options.Validate should have comment or be unexported (golint)
    • Line 41: warning: exported method Options.ApplyTo should have comment or be unexported (golint)
    • Line 48: warning: exported method Options.AddFlags should have comment or be unexported (golint)
    • ks-devops/pkg/utils/net/net.go
    • Line 25: warning: comment on exported function IsValidPort should be of the form "IsValidPort ..." (golint)
    • Line 30: warning: exported function GetRequestIP should have comment or be unexported (golint)
    • ks-devops/pkg/api/devops/v1alpha1/s2irun_types.go
    • Line 27: warning: exported const ResourceKindS2iRun should have comment (or a comment on this block) or be unexported (golint)
    • Line 71: warning: exported type S2iBuildResult should have comment or be unexported (golint)
    • Line 86: warning: exported type S2iBuildSource should have comment or be unexported (golint)
    • ks-devops/pkg/utils/stringutils/string.go
    • Line 31: warning: comment on exported function Diff should be of the form "Diff ..." (golint)
    • Line 45: warning: exported function Unique should have comment or be unexported (golint)
    • Line 56: warning: exported function CamelCaseToUnderscore should have comment or be unexported (golint)
    • Line 60: warning: exported function UnderscoreToCamelCase should have comment or be unexported (golint)
    • Line 64: warning: exported function FindString should have comment or be unexported (golint)
    • Line 73: warning: exported function StringIn should have comment or be unexported (golint)
    • Line 77: warning: exported function Reverse should have comment or be unexported (golint)
    • Line 88: warning: exported function Split should have comment or be unexported (golint)
    • Line 95: warning: exported function StripAnsi should have comment or be unexported (golint)
    • Line 99: warning: exported function ShortenString should have comment or be unexported (golint)
    • ks-devops/pkg/api/devops/v1alpha1/s2ibinary_types.go
    • Line 24: warning: exported const ResourceKindS2iBinary should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported const StatusUploading should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported const S2iBinaryFinalizerName should have comment (or a comment on this block) or be unexported (golint)
    • ks-devops/pkg/api/types.go
    • Line 24: warning: exported type ListResult should have comment or be unexported (golint)
    • Line 29: warning: exported type ResourceQuota should have comment or be unexported (golint)
    • Line 34: warning: exported type NamespacedResourceQuota should have comment or be unexported (golint)
    • Line 46: warning: exported type Router should have comment or be unexported (golint)
    • Line 51: warning: exported type GitCredential should have comment or be unexported (golint)
    • Line 56: warning: exported type RegistryCredential should have comment or be unexported (golint)
    • Line 62: warning: exported type Workloads should have comment or be unexported (golint)
    • Line 68: warning: exported type ClientType should have comment or be unexported (golint)
    • Line 71: warning: exported const ClientKubernetes should have comment (or a comment on this block) or be unexported (golint)
    • Line 82: warning: exported var SupportedGroupVersionResources should have comment or be unexported (golint)
    • ks-devops/pkg/client/sonarqube/sonarqube.go
    • Line 27: warning: exported type Client should have comment or be unexported (golint)
    • Line 31: warning: exported function NewSonarQubeClient should have comment or be unexported (golint)
    • Line 49: warning: exported function NewSonarQubeClientOrDie should have comment or be unexported (golint)
    • Line 67: warning: comment on exported method Client.SonarQube should be of the form "SonarQube ..." (golint)
    • ks-devops/controllers/pipeline/pipeline_controller.go
    • Line 58: warning: exported type Controller should have comment or be unexported (golint)
    • Line 77: warning: exported function NewController should have comment or be unexported (golint)
    • Line 174: warning: exported method Controller.Start should have comment or be unexported (golint)
    • Line 178: warning: exported method Controller.Run should have comment or be unexported (golint)
    • Line 248: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • ks-devops/pkg/apiserver/request/requestinfo.go
    • Line 41: warning: exported type RequestInfoResolver should have comment or be unexported (golint)
    • Line 86: warning: exported type RequestInfoFactory should have comment or be unexported (golint)
    • Line 319: warning: exported function WithRequestInfo should have comment or be unexported (golint)
    • Line 323: warning: exported function RequestInfoFrom should have comment or be unexported (golint)
    • Line 338: warning: exported const GlobalScope should have comment (or a comment on this block) or be unexported (golint)
    • ks-devops/pkg/models/devops/devops.go
    • Line 52: warning: exported type DevopsOperator should have comment or be unexported (golint)
    • Line 128: warning: exported function NewDevopsOperator should have comment or be unexported (golint)
    • Line 279: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 344: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • ks-devops/pkg/client/devops/jenkins/project.go
    • Line 26: warning: exported type DevOpsProjectRoleResponse should have comment or be unexported (golint)
    • Line 31: warning: exported method Jenkins.CreateDevOpsProject should have comment or be unexported (golint)
    • Line 40: warning: exported method Jenkins.DeleteDevOpsProject should have comment or be unexported (golint)
    • Line 48: warning: exported method Jenkins.GetDevOpsProject should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/jenkins/utils.go
    • Line 39: warning: exported function Reverse should have comment or be unexported (golint)
    • Line 50: warning: exported type JkError should have comment or be unexported (golint)
    • Line 103: warning: exported type JenkinsBlueTime should have comment or be unexported (golint)
    • Line 105: warning: exported method JenkinsBlueTime.UnmarshalJSON should have comment or be unexported (golint)
    • Line 119: warning: exported method JenkinsBlueTime.MarshalJSON should have comment or be unexported (golint)
    • ks-devops/pkg/api/devops/v1alpha1/s2ibuilder_types.go
    • Line 29: warning: exported type RunState should have comment or be unexported (golint)
    • Line 32: warning: exported const ResourceKindS2iBuilder should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported const NotRunning should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported const AutoScaleAnnotations should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported const KindDeployment should have comment (or a comment on this block) or be unexported (golint)
    • Line 127: warning: exported type PullPolicy should have comment or be unexported (golint)
    • Line 164: warning: exported type TriggerSource should have comment or be unexported (golint)
    • Line 167: warning: exported const Default should have comment (or a comment on this block) or be unexported (golint)
    • Line 212: warning: exported type S2iConfig should have comment or be unexported (golint)
    • Line 433: warning: exported type UserDefineTemplate should have comment or be unexported (golint)
    • Line 491: warning: exported type S2iAutoScale should have comment or be unexported (golint)
    • Line 498: warning: exported type DockerConfigJson should have comment or be unexported (golint)
    • Line 502: warning: comment on exported type DockerConfigMap should be of the form "DockerConfigMap ..." (with optional leading article) (golint)
    • Line 507: warning: exported type DockerConfigEntry should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/jenkins/internal/pull_request.go
    • Line 3: warning: exported type PRDiscoverTrust should have comment or be unexported (golint)
    • Line 6: warning: exported const PRDiscoverTrustMember should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported method PRDiscoverTrust.Value should have comment or be unexported (golint)
    • Line 31: warning: exported method PRDiscoverTrust.ParseFromString should have comment or be unexported (golint)
    • Line 46: warning: comment on exported type GitHubPRDiscoverTrust should be of the form "GitHubPRDiscoverTrust ..." (with optional leading article) (golint)
    • Line 50: warning: exported const GitHubPRDiscoverTrustContributors should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported method GitHubPRDiscoverTrust.Value should have comment or be unexported (golint)
    • Line 57: warning: exported method PRDiscoverTrust.IsValid should have comment or be unexported (golint)
    • Line 70: warning: exported method GitHubPRDiscoverTrust.ParseFromString should have comment or be unexported (golint)
    • Line 79: warning: exported method GitHubPRDiscoverTrust.IsValid should have comment or be unexported (golint)
    • Line 83: warning: comment on exported type BitbucketPRDiscoverTrust should be of the form "BitbucketPRDiscoverTrust ..." (with optional leading article) (golint)
    • Line 87: warning: exported const BitbucketPRDiscoverTrustEveryone should have comment (or a comment on this block) or be unexported (golint)
    • Line 92: warning: exported method BitbucketPRDiscoverTrust.Value should have comment or be unexported (golint)
    • Line 96: warning: exported method BitbucketPRDiscoverTrust.IsValid should have comment or be unexported (golint)
    • Line 113: warning: exported method BitbucketPRDiscoverTrust.ParseFromString should have comment or be unexported (golint)
    • ks-devops/pkg/models/resources/v1alpha3/interface.go
    • Line 30: warning: exported type Interface should have comment or be unexported (golint)
    • Line 41: warning: exported type FilterFunc should have comment or be unexported (golint)
    • Line 43: warning: exported type TransformFunc should have comment or be unexported (golint)
    • Line 45: warning: exported function DefaultList should have comment or be unexported (golint)
    • ks-devops/pkg/api/devops/v1alpha3/pipeline_types.go
    • Line 26: warning: exported const PipelineFinalizerName should have comment or be unexported (golint)
    • Line 29: warning: exported const ResourceKindPipeline should have comment (or a comment on this block) or be unexported (golint)
    • Line 81: warning: exported const NoScmPipelineType should have comment (or a comment on this block) or be unexported (golint)
    • Line 86: warning: exported const SourceTypeSVN should have comment (or a comment on this block) or be unexported (golint)
    • Line 94: warning: exported type NoScmPipeline should have comment or be unexported (golint)
    • Line 106: warning: exported type MultiBranchPipeline should have comment or be unexported (golint)
    • Line 122: warning: exported type GitSource should have comment or be unexported (golint)
    • Line 147: warning: exported type GitlabSource should have comment or be unexported (golint)
    • Line 162: warning: exported type BitbucketServerSource should have comment or be unexported (golint)
    • Line 176: warning: exported type MultiBranchJobTrigger should have comment or be unexported (golint)
    • Line 181: warning: exported type GitCloneOption should have comment or be unexported (golint)
    • Line 187: warning: exported type SvnSource should have comment or be unexported (golint)
    • Line 194: warning: exported type SingleSvnSource should have comment or be unexported (golint)
    • Line 200: warning: exported type DiscoverPRFromForks should have comment or be unexported (golint)
    • Line 205: warning: exported type DiscarderProperty should have comment or be unexported (golint)
    • Line 210: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 217: warning: exported type TimerTrigger should have comment or be unexported (golint)
    • Line 225: warning: exported type RemoteTrigger should have comment or be unexported (golint)
    • Line 229: warning: exported type GenericWebhook should have comment or be unexported (golint)
    • Line 241: warning: exported type GenericVariable should have comment or be unexported (golint)
    • ks-devops/pkg/apiserver/authentication/options/authenticate_options.go
    • Line 28: warning: exported type AuthenticationOptions should have comment or be unexported (golint)
    • Line 54: warning: exported function NewAuthenticateOptions should have comment or be unexported (golint)
    • Line 68: warning: exported method AuthenticationOptions.Validate should have comment or be unexported (golint)
    • Line 79: warning: exported method AuthenticationOptions.AddFlags should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/fake/fakedevops.go
    • Line 34: warning: exported type Devops should have comment or be unexported (golint)
    • Line 44: warning: exported function New should have comment or be unexported (golint)
    • Line 56: warning: exported function NewWithPipelines should have comment or be unexported (golint)
    • Line 72: warning: exported function NewWithCredentials should have comment or be unexported (golint)
    • Line 87: warning: exported method Devops.CreateDevOpsProject should have comment or be unexported (golint)
    • Line 97: warning: exported method Devops.DeleteDevOpsProject should have comment or be unexported (golint)
    • Line 103: 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)
    • Line 123: warning: exported method Devops.GetDevOpsProject should have comment or be unexported (golint)
    • Line 126: 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)
    • Line 160: warning: exported function NewFakeDevops should have comment or be unexported (golint)
    • Line 166: warning: comment on exported method Devops.GetPipeline should be of the form "GetPipeline ..." (golint)
    • Line 171: warning: exported method Devops.ListPipelines should have comment or be unexported (golint)
    • Line 174: warning: exported method Devops.GetPipelineRun should have comment or be unexported (golint)
    • Line 177: warning: exported method Devops.ListPipelineRuns should have comment or be unexported (golint)
    • Line 180: warning: exported method Devops.StopPipeline should have comment or be unexported (golint)
    • Line 183: warning: exported method Devops.ReplayPipeline should have comment or be unexported (golint)
    • Line 186: warning: exported method Devops.RunPipeline should have comment or be unexported (golint)
    • Line 189: warning: exported method Devops.GetArtifacts should have comment or be unexported (golint)
    • Line 192: warning: exported method Devops.GetRunLog should have comment or be unexported (golint)
    • Line 195: warning: exported method Devops.GetStepLog should have comment or be unexported (golint)
    • Line 198: warning: exported method Devops.GetNodeSteps should have comment or be unexported (golint)
    • Line 204: warning: exported method Devops.GetPipelineRunNodes should have comment or be unexported (golint)
    • Line 210: warning: exported method Devops.SubmitInputStep should have comment or be unexported (golint)
    • Line 214: warning: comment on exported method Devops.GetBranchPipeline should be of the form "GetBranchPipeline ..." (golint)
    • Line 218: warning: exported method Devops.GetBranchPipelineRun should have comment or be unexported (golint)
    • Line 221: warning: exported method Devops.StopBranchPipeline should have comment or be unexported (golint)
    • Line 224: warning: exported method Devops.ReplayBranchPipeline should have comment or be unexported (golint)
    • Line 227: warning: exported method Devops.RunBranchPipeline should have comment or be unexported (golint)
    • Line 230: warning: exported method Devops.GetBranchArtifacts should have comment or be unexported (golint)
    • Line 233: warning: exported method Devops.GetBranchRunLog should have comment or be unexported (golint)
    • Line 236: warning: exported method Devops.GetBranchStepLog should have comment or be unexported (golint)
    • Line 239: warning: exported method Devops.GetBranchNodeSteps should have comment or be unexported (golint)
    • Line 245: warning: exported method Devops.GetBranchPipelineRunNodes should have comment or be unexported (golint)
    • Line 251: warning: exported method Devops.SubmitBranchInputStep should have comment or be unexported (golint)
    • Line 254: warning: exported method Devops.GetPipelineBranch should have comment or be unexported (golint)
    • Line 257: warning: exported method Devops.ScanBranch should have comment or be unexported (golint)
    • Line 261: warning: comment on exported method Devops.GetConsoleLog should be of the form "GetConsoleLog ..." (golint)
    • Line 265: warning: exported method Devops.GetCrumb should have comment or be unexported (golint)
    • Line 269: warning: comment on exported method Devops.GetSCMServers should be of the form "GetSCMServers ..." (golint)
    • Line 273: warning: exported method Devops.GetSCMOrg should have comment or be unexported (golint)
    • Line 276: warning: exported method Devops.GetOrgRepo should have comment or be unexported (golint)
    • Line 279: warning: exported method Devops.CreateSCMServers should have comment or be unexported (golint)
    • Line 282: warning: exported method Devops.Validate should have comment or be unexported (golint)
    • Line 286: warning: comment on exported method Devops.GetNotifyCommit should be of the form "GetNotifyCommit ..." (golint)
    • Line 290: warning: exported method Devops.GithubWebhook should have comment or be unexported (golint)
    • Line 293: warning: exported method Devops.GenericWebhook should have comment or be unexported (golint)
    • Line 297: warning: exported method Devops.CheckScriptCompile should have comment or be unexported (golint)
    • Line 300: warning: exported method Devops.CheckCron should have comment or be unexported (golint)
    • Line 303: warning: exported method Devops.ToJenkinsfile should have comment or be unexported (golint)
    • Line 306: warning: exported method Devops.ToJson should have comment or be unexported (golint)
    • Line 310: warning: comment on exported method Devops.CreateCredentialInProject should be of the form "CreateCredentialInProject ..." (golint)
    • Line 319: warning: exported method Devops.UpdateCredentialInProject should have comment or be unexported (golint)
    • Line 357: warning: exported method Devops.GetCredentialInProject should have comment or be unexported (golint)
    • Line 393: warning: exported method Devops.GetCredentialsInProject should have comment or be unexported (golint)
    • Line 396: warning: exported method Devops.DeleteCredentialInProject should have comment or be unexported (golint)
    • Line 434: warning: comment on exported method Devops.GetProjectPipelineBuildByType should be of the form "GetProjectPipelineBuildByType ..." (golint)
    • Line 438: warning: exported method Devops.GetMultiBranchPipelineBuildByType should have comment or be unexported (golint)
    • Line 442: warning: comment on exported method Devops.CreateProjectPipeline should be of the form "CreateProjectPipeline ..." (golint)
    • Line 452: warning: exported method Devops.DeleteProjectPipeline should have comment or be unexported (golint)
    • Line 490: warning: exported method Devops.UpdateProjectPipeline should have comment or be unexported (golint)
    • Line 528: warning: exported method Devops.GetProjectPipelineConfig should have comment or be unexported (golint)
    • Line 566: warning: exported method Devops.AddGlobalRole should have comment or be unexported (golint)
    • Line 570: warning: exported method Devops.AddProjectRole should have comment or be unexported (golint)
    • Line 574: warning: exported method Devops.DeleteProjectRoles should have comment or be unexported (golint)
    • Line 578: warning: exported method Devops.AssignProjectRole should have comment or be unexported (golint)
    • Line 582: warning: exported method Devops.UnAssignProjectRole should have comment or be unexported (golint)
    • Line 586: warning: exported method Devops.AssignGlobalRole should have comment or be unexported (golint)
    • Line 590: warning: exported method Devops.UnAssignGlobalRole should have comment or be unexported (golint)
    • Line 594: warning: exported method Devops.DeleteUserInProject should have comment or be unexported (golint)
    • Line 598: warning: exported method Devops.GetGlobalRole should have comment or be unexported (golint)
    • Line 602: warning: exported method Devops.ReloadConfiguration should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/jenkins/role.go
    • Line 29: warning: exported type GlobalRoleResponse should have comment or be unexported (golint)
    • Line 34: warning: exported type GlobalRole should have comment or be unexported (golint)
    • Line 39: warning: exported type ProjectRole should have comment or be unexported (golint)
    • Line 44: warning: exported type ProjectRoleResponse should have comment or be unexported (golint)
    • Line 50: warning: exported method GlobalRole.Update should have comment or be unexported (golint)
    • Line 76: warning: comment on exported method GlobalRole.AssignRole should be of the form "AssignRole ..." (golint)
    • Line 94: warning: exported method GlobalRole.UnAssignRole should have comment or be unexported (golint)
    • Line 111: warning: comment on exported method ProjectRole.Update should be of the form "Update ..." (golint)
    • Line 140: warning: exported method ProjectRole.AssignRole should have comment or be unexported (golint)
    • Line 157: warning: exported method ProjectRole.UnAssignRole should have comment or be unexported (golint)
    • ks-devops/pkg/client/sonarqube/interface.go
    • Line 26: warning: exported type SonarInterface should have comment or be unexported (golint)
    • Line 34: warning: exported function NewSonar should have comment or be unexported (golint)
    • Line 39: warning: exported const SonarAnalysisActionClass should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type SonarStatus should have comment or be unexported (golint)
    • ks-devops/cmd/controller/app/options/options.go
    • Line 35: warning: exported type DevOpsControllerManagerOptions should have comment or be unexported (golint)
    • Line 53: warning: exported function NewDevOpsControllerManagerOptions should have comment or be unexported (golint)
    • Line 69: warning: exported method DevOpsControllerManagerOptions.Flags should have comment or be unexported (golint)
    • Line 103: warning: exported method DevOpsControllerManagerOptions.Validate should have comment or be unexported (golint)
    • ks-devops/pkg/kapis/devops/v1alpha2/handler.go
    • Line 29: warning: exported type ProjectPipelineHandler should have comment or be unexported (golint)
    • Line 35: warning: exported type PipelineSonarHandler should have comment or be unexported (golint)
    • Line 40: warning: exported function NewProjectPipelineHandler should have comment or be unexported (golint)
    • Line 48: warning: exported function NewPipelineSonarHandler should have comment or be unexported (golint)
    • Line 56: warning: exported function NewS2iBinaryHandler should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/jenkins/credential.go
    • Line 31: warning: exported const SSHCrenditalStaplerClass should have comment or be unexported (golint)
    • Line 32: warning: exported const DirectSSHCrenditalStaplerClass should have comment or be unexported (golint)
    • Line 33: warning: exported const UsernamePassswordCredentialStaplerClass should have comment or be unexported (golint)
    • Line 34: warning: exported const SecretTextCredentialStaplerClass should have comment or be unexported (golint)
    • Line 35: warning: exported const KubeconfigCredentialStaplerClass should have comment or be unexported (golint)
    • Line 36: warning: exported const DirectKubeconfigCredentialStaperClass should have comment or be unexported (golint)
    • Line 37: warning: exported const GLOBALScope should have comment or be unexported (golint)
    • Line 39: warning: exported type UsernamePasswordCredential should have comment or be unexported (golint)
    • Line 48: warning: exported type SshCredential should have comment or be unexported (golint)
    • Line 58: warning: exported type SecretTextCredential should have comment or be unexported (golint)
    • Line 66: warning: exported type KubeconfigCredential should have comment or be unexported (golint)
    • Line 74: warning: exported type PrivateKeySource should have comment or be unexported (golint)
    • Line 79: warning: exported type KubeconfigSource should have comment or be unexported (golint)
    • Line 84: warning: exported type CredentialResponse should have comment or be unexported (golint)
    • Line 105: warning: exported function NewSshCredential should have comment or be unexported (golint)
    • Line 126: warning: exported function NewUsernamePasswordCredential should have comment or be unexported (golint)
    • Line 139: warning: exported function NewSecretTextCredential should have comment or be unexported (golint)
    • Line 150: warning: exported function NewKubeconfigCredential should have comment or be unexported (golint)
    • Line 167: warning: exported method Jenkins.GetCredentialInProject should have comment or be unexported (golint)
    • Line 187: warning: exported method Jenkins.GetCredentialsInProject should have comment or be unexported (golint)
    • Line 210: warning: exported method Jenkins.CreateCredentialInProject should have comment or be unexported (golint)
    • Line 250: warning: exported method Jenkins.UpdateCredentialInProject should have comment or be unexported (golint)
    • Line 290: warning: exported method Jenkins.DeleteCredentialInProject should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/jenkins/project_pipeline.go
    • Line 31: warning: exported method Jenkins.CreateProjectPipeline should have comment or be unexported (golint)
    • Line 85: warning: exported method Jenkins.DeleteProjectPipeline should have comment or be unexported (golint)
    • Line 93: warning: exported method Jenkins.UpdateProjectPipeline should have comment or be unexported (golint)
    • Line 143: warning: exported method Jenkins.GetProjectPipelineConfig should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/jenkins/request.go
    • Line 40: warning: exported type APIRequest should have comment or be unexported (golint)
    • Line 48: warning: comment on exported function SetBasicBearTokenHeader should be of the form "SetBasicBearTokenHeader ..." (golint)
    • Line 71: warning: exported method APIRequest.SetHeader should have comment or be unexported (golint)
    • Line 76: warning: exported function NewAPIRequest should have comment or be unexported (golint)
    • Line 83: warning: exported type Requester should have comment or be unexported (golint)
    • Line 92: warning: exported method Requester.SetCrumb should have comment or be unexported (golint)
    • Line 117: warning: exported method Requester.PostJSON should have comment or be unexported (golint)
    • Line 127: warning: exported method Requester.Post should have comment or be unexported (golint)
    • Line 136: warning: exported method Requester.PostForm should have comment or be unexported (golint)
    • Line 146: warning: exported method Requester.PostFiles should have comment or be unexported (golint)
    • Line 154: warning: exported method Requester.PostXML should have comment or be unexported (golint)
    • Line 165: warning: exported method Requester.GetJSON should have comment or be unexported (golint)
    • Line 172: warning: exported method Requester.GetXML should have comment or be unexported (golint)
    • Line 179: warning: exported method Requester.Get should have comment or be unexported (golint)
    • Line 185: warning: exported method Requester.GetHtml should have comment or be unexported (golint)
    • Line 191: warning: exported method Requester.SetClient should have comment or be unexported (golint)
    • Line 204: warning: exported method Requester.DoGet should have comment or be unexported (golint)
    • Line 283: 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)
    • Line 304: warning: exported method Requester.Do should have comment or be unexported (golint)
    • Line 387: 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)
    • Line 408: warning: exported method Requester.DoPostForm should have comment or be unexported (golint)
    • Line 435: 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)
    • Line 455: warning: exported method Requester.ReadRawResponse should have comment or be unexported (golint)
    • Line 471: warning: exported method Requester.ReadJSONResponse should have comment or be unexported (golint)
    • Line 480: warning: exported function CheckResponse should have comment or be unexported (golint)
    • ks-devops/pkg/server/options/options.go
    • Line 28: warning: exported type ServerRunOptions should have comment or be unexported (golint)
    • Line 45: warning: exported function NewServerRunOptions should have comment or be unexported (golint)
    • Line 58: warning: exported method ServerRunOptions.Validate should have comment or be unexported (golint)
    • Line 86: warning: exported method ServerRunOptions.AddFlags should have comment or be unexported (golint)
    • ks-devops/pkg/client/k8s/options.go
    • Line 28: warning: exported type KubernetesOptions should have comment or be unexported (golint)
    • Line 61: warning: exported method KubernetesOptions.Validate should have comment or be unexported (golint)
    • Line 72: warning: exported method KubernetesOptions.ApplyTo should have comment or be unexported (golint)
    • Line 76: warning: exported method KubernetesOptions.AddFlags should have comment or be unexported (golint)
    • ks-devops/pkg/apiserver/authentication/token/jwt.go
    • Line 30: warning: exported const DefaultIssuerName should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type Claims should have comment or be unexported (golint)
    • Line 134: 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)
    • Line 139: warning: exported function NewTokenIssuer should have comment or be unexported (golint)
    • ks-devops/pkg/models/devops/common.go
    • Line 29: warning: exported function GetColumnsFromStruct should have comment or be unexported (golint)
    • Line 37: warning: exported function GetColumnsFromStructWithPrefix should have comment or be unexported (golint)
    • Line 45: warning: exported function WithPrefix should have comment or be unexported (golint)
    • Line 50: warning: exported const StatusActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: exported const StatusColumn should have comment (or a comment on this block) or be unexported (golint)
    • Line 65: warning: exported const VisibilityPrivate should have comment (or a comment on this block) or be unexported (golint)
    • Line 70: warning: exported const KS_ADMIN should have comment (or a comment on this block) or be unexported (golint)
    • Line 82: warning: exported const JenkinsAllUserRoleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 86: warning: exported type Role should have comment or be unexported (golint)
    • Line 91: warning: exported var DefaultRoles should have comment or be unexported (golint)
    • Line 110: warning: exported var AllRoleSlice should have comment or be unexported (golint)
    • Line 112: warning: comment on exported var JenkinsOwnerProjectPermissionIds should be of the form "JenkinsOwnerProjectPermissionIds ..." (golint)
    • Line 134: warning: comment on exported var JenkinsProjectPermissionMap should be of the form "JenkinsProjectPermissionMap ..." (golint)
    • Line 218: warning: comment on exported var JenkinsPipelinePermissionMap should be of the form "JenkinsPipelinePermissionMap ..." (golint)
    • Line 302: warning: comment on exported function GetProjectRoleName should be of the form "GetProjectRoleName ..." (golint)
    • Line 307: warning: comment on exported function GetPipelineRoleName should be of the form "GetPipelineRoleName ..." (golint)
    • Line 312: warning: comment on exported function GetProjectRolePattern should be of the form "GetProjectRolePattern ..." (golint)
    • Line 317: warning: comment on exported function GetPipelineRolePattern should be of the form "GetPipelineRolePattern ..." (golint)
    • Line 322: warning: comment on exported function GetSyncNowTime should be of the form "GetSyncNowTime ..." (golint)
    • ks-devops/pkg/client/devops/pipeline.go
    • Line 28: warning: exported type PipelineList should have comment or be unexported (golint)
    • Line 33: warning: comment on exported type Pipeline should be of the form "Pipeline ..." (with optional leading article) (golint)
    • Line 105: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 112: warning: comment on exported type PipelineRunList should be of the form "PipelineRunList ..." (with optional leading article) (golint)
    • Line 118: warning: comment on exported type BranchPipelineRunNodes should be of the form "BranchPipelineRunNodes ..." (with optional leading article) (golint)
    • Line 187: warning: comment on exported type Validates should be of the form "Validates ..." (with optional leading article) (golint)
    • Line 192: warning: comment on exported type SCMOrg should be of the form "SCMOrg ..." (with optional leading article) (golint)
    • Line 211: warning: exported type SCMServer should have comment or be unexported (golint)
    • Line 224: warning: comment on exported type OrgRepo should be of the form "OrgRepo ..." (with optional leading article) (golint)
    • Line 266: warning: comment on exported type StopPipeline should be of the form "StopPipeline ..." (with optional leading article) (golint)
    • Line 340: warning: comment on exported type ReplayPipeline should be of the form "ReplayPipeline ..." (with optional leading article) (golint)
    • Line 401: warning: comment on exported type Artifacts should be of the form "Artifacts ..." (with optional leading article) (golint)
    • Line 418: warning: comment on exported type PipelineBranch should be of the form "PipelineBranch ..." (with optional leading article) (golint)
    • Line 421: warning: exported type PipelineBranchItem should have comment or be unexported (golint)
    • Line 549: warning: comment on exported type RunPayload should be of the form "RunPayload ..." (with optional leading article) (golint)
    • Line 557: warning: exported type RunPipeline should have comment or be unexported (golint)
    • Line 617: warning: comment on exported type NodeStatus should be of the form "NodeStatus ..." (with optional leading article) (golint)
    • Line 686: warning: comment on exported type CheckPlayload should be of the form "CheckPlayload ..." (with optional leading article) (golint)
    • Line 693: warning: exported type CreateScmServerReq should have comment or be unexported (golint)
    • Line 698: warning: exported type CheckPlayloadParameters should have comment or be unexported (golint)
    • Line 703: warning: comment on exported type Crumb should be of the form "Crumb ..." (with optional leading article) (golint)
    • Line 710: warning: comment on exported type CheckScript should be of the form "CheckScript ..." (with optional leading article) (golint)
    • Line 718: warning: comment on exported type CronData should be of the form "CronData ..." (with optional leading article) (golint)
    • Line 724: warning: exported type CheckCronRes should have comment or be unexported (golint)
    • Line 731: warning: comment on exported type PipelineRun should be of the form "PipelineRun ..." (with optional leading article) (golint)
    • Line 807: warning: comment on exported type BranchPipeline should be of the form "BranchPipeline ..." (with optional leading article) (golint)
    • Line 933: warning: comment on exported type PipelineRunNodes should be of the form "PipelineRunNodes ..." (with optional leading article) (golint)
    • Line 966: warning: comment on exported type NodeSteps should be of the form "NodeSteps ..." (with optional leading article) (golint)
    • Line 1002: warning: comment on exported type ReqScript should be of the form "ReqScript ..." (with optional leading article) (golint)
    • Line 1007: warning: comment on exported type ReqJson should be of the form "ReqJson ..." (with optional leading article) (golint)
    • Line 1012: warning: comment on exported type ResJenkinsfile should be of the form "ResJenkinsfile ..." (with optional leading article) (golint)
    • Line 1025: warning: exported type ReqJenkinsfile should have comment or be unexported (golint)
    • Line 1029: warning: exported type NodesDetail should have comment or be unexported (golint)
    • Line 1067: warning: exported type NodesStepsIndex should have comment or be unexported (golint)
    • Line 1072: warning: exported type Input should have comment or be unexported (golint)
    • Line 1114: warning: exported type HttpParameters should have comment or be unexported (golint)
    • Line 1123: warning: exported type PipelineOperator should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/role.go
    • Line 19: warning: comment on exported type GlobalPermissionIds should be of the form "GlobalPermissionIds ..." (with optional leading article) (golint)
    • Line 52: warning: comment on exported type ProjectPermissionIds should be of the form "ProjectPermissionIds ..." (with optional leading article) (golint)
    • Line 74: warning: comment on exported type RoleOperator should be of the form "RoleOperator ..." (with optional leading article) (golint)
    • ks-devops/pkg/client/devops/jenkins/internal/svn.go
    • Line 10: warning: exported function AppendSvnSourceToEtree should have comment or be unexported (golint)
    • Line 33: warning: exported function AppendSingleSvnSourceToEtree should have comment or be unexported (golint)
    • Line 72: warning: exported function GetSingleSvnSourceFromEtree should have comment or be unexported (golint)
    • Line 89: warning: exported function GetSvnSourcefromEtree should have comment or be unexported (golint)
    • ks-devops/pkg/models/devops/project.go
    • Line 26: warning: exported var DevOpsProjectColumns should have comment or be unexported (golint)
    • Line 29: warning: exported const DevOpsProjectTableName should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported function NewDevOpsProject should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/jenkins/build.go
    • Line 31: warning: exported const Git should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported type Build should have comment or be unexported (golint)
    • Line 44: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 49: warning: exported type Branch should have comment or be unexported (golint)
    • Line 54: warning: exported type BuildRevision should have comment or be unexported (golint)
    • Line 59: warning: exported type Builds should have comment or be unexported (golint)
    • Line 66: warning: exported type Culprit should have comment or be unexported (golint)
    • Line 71: warning: exported type GeneralObj should have comment or be unexported (golint)
    • Line 89: warning: exported type TestResult should have comment or be unexported (golint)
    • Line 119: warning: exported type BuildResponse should have comment or be unexported (golint)
    • Line 173: warning: comment on exported method Build.Info should be of the form "Info ..." (golint)
    • Line 178: warning: exported method Build.GetUrl should have comment or be unexported (golint)
    • Line 182: warning: exported method Build.GetBuildNumber should have comment or be unexported (golint)
    • Line 185: warning: exported method Build.GetResult should have comment or be unexported (golint)
    • Line 189: warning: exported method Build.Stop should have comment or be unexported (golint)
    • Line 202: warning: exported method Build.GetConsoleOutput should have comment or be unexported (golint)
    • Line 209: warning: exported method Build.GetCauses should have comment or be unexported (golint)
    • Line 222: warning: exported method Build.GetInjectedEnvVars should have comment or be unexported (golint)
    • Line 234: warning: exported method Build.GetDownstreamBuilds should have comment or be unexported (golint)
    • Line 261: warning: exported method Build.GetUpstreamJob should have comment or be unexported (golint)
    • Line 274: warning: exported method Build.GetUpstreamBuildNumber should have comment or be unexported (golint)
    • Line 292: warning: exported method Build.GetUpstreamBuild should have comment or be unexported (golint)
    • Line 306: warning: exported method Build.GetResultSet should have comment or be unexported (golint)
    • Line 320: warning: exported method Build.GetTimestamp should have comment or be unexported (golint)
    • Line 325: warning: exported method Build.GetDuration should have comment or be unexported (golint)
    • Line 329: warning: exported method Build.GetRevisionBranch should have comment or be unexported (golint)
    • Line 343: warning: exported method Build.IsGood should have comment or be unexported (golint)
    • Line 347: warning: exported method Build.IsRunning should have comment or be unexported (golint)
    • Line 355: warning: exported method Build.SetDescription should have comment or be unexported (golint)
    • Line 361: warning: exported method Build.PauseToggle should have comment or be unexported (golint)
    • Line 401: warning: exported method Jenkins.GetProjectPipelineBuildByType should have comment or be unexported (golint)
    • Line 411: warning: exported method Jenkins.GetMultiBranchPipelineBuildByType should have comment or be unexported (golint)
    • ks-devops/pkg/kapis/devops/v1alpha2/devops.go
    • Line 46: warning: exported method ProjectPipelineHandler.GetPipeline should have comment or be unexported (golint)
    • Line 120: warning: exported method ProjectPipelineHandler.ListPipelines should have comment or be unexported (golint)
    • Line 133: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 156: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 170: warning: exported method ProjectPipelineHandler.GetPipelineRun should have comment or be unexported (golint)
    • Line 185: warning: exported method ProjectPipelineHandler.ListPipelineRuns should have comment or be unexported (golint)
    • Line 199: warning: exported method ProjectPipelineHandler.StopPipeline should have comment or be unexported (golint)
    • Line 214: warning: exported method ProjectPipelineHandler.ReplayPipeline should have comment or be unexported (golint)
    • Line 229: warning: exported method ProjectPipelineHandler.RunPipeline should have comment or be unexported (golint)
    • Line 243: warning: exported method ProjectPipelineHandler.GetArtifacts should have comment or be unexported (golint)
    • Line 257: warning: exported method ProjectPipelineHandler.GetRunLog should have comment or be unexported (golint)
    • Line 271: warning: exported method ProjectPipelineHandler.GetStepLog should have comment or be unexported (golint)
    • Line 291: warning: exported method ProjectPipelineHandler.GetNodeSteps should have comment or be unexported (golint)
    • Line 306: warning: exported method ProjectPipelineHandler.GetPipelineRunNodes should have comment or be unexported (golint)
    • Line 443: warning: exported method ProjectPipelineHandler.SubmitInputStep should have comment or be unexported (golint)
    • Line 471: warning: exported method ProjectPipelineHandler.GetNodesDetail should have comment or be unexported (golint)
    • Line 486: warning: exported method ProjectPipelineHandler.GetBranchPipeline should have comment or be unexported (golint)
    • Line 501: warning: exported method ProjectPipelineHandler.GetBranchPipelineRun should have comment or be unexported (golint)
    • Line 517: warning: exported method ProjectPipelineHandler.StopBranchPipeline should have comment or be unexported (golint)
    • Line 533: warning: exported method ProjectPipelineHandler.ReplayBranchPipeline should have comment or be unexported (golint)
    • Line 549: warning: exported method ProjectPipelineHandler.RunBranchPipeline should have comment or be unexported (golint)
    • Line 564: warning: exported method ProjectPipelineHandler.GetBranchArtifacts should have comment or be unexported (golint)
    • Line 579: warning: exported method ProjectPipelineHandler.GetBranchRunLog should have comment or be unexported (golint)
    • Line 594: warning: exported method ProjectPipelineHandler.GetBranchStepLog should have comment or be unexported (golint)
    • Line 616: warning: exported method ProjectPipelineHandler.GetBranchNodeSteps should have comment or be unexported (golint)
    • Line 632: warning: exported method ProjectPipelineHandler.GetBranchPipelineRunNodes should have comment or be unexported (golint)
    • Line 648: warning: exported method ProjectPipelineHandler.SubmitBranchInputStep should have comment or be unexported (golint)
    • Line 678: warning: exported method ProjectPipelineHandler.GetBranchNodesDetail should have comment or be unexported (golint)
    • Line 702: warning: exported method ProjectPipelineHandler.GetPipelineBranch should have comment or be unexported (golint)
    • Line 715: warning: exported method ProjectPipelineHandler.ScanBranch should have comment or be unexported (golint)
    • Line 728: warning: exported method ProjectPipelineHandler.GetConsoleLog should have comment or be unexported (golint)
    • Line 741: warning: exported method ProjectPipelineHandler.GetCrumb should have comment or be unexported (golint)
    • Line 752: warning: exported method ProjectPipelineHandler.GetSCMServers should have comment or be unexported (golint)
    • Line 765: warning: exported method ProjectPipelineHandler.GetSCMOrg should have comment or be unexported (golint)
    • Line 778: warning: exported method ProjectPipelineHandler.GetOrgRepo should have comment or be unexported (golint)
    • Line 792: warning: exported method ProjectPipelineHandler.CreateSCMServers should have comment or be unexported (golint)
    • Line 805: warning: exported method ProjectPipelineHandler.Validate should have comment or be unexported (golint)
    • Line 827: warning: exported method ProjectPipelineHandler.GetNotifyCommit should have comment or be unexported (golint)
    • Line 836: warning: exported method ProjectPipelineHandler.PostNotifyCommit should have comment or be unexported (golint)
    • Line 845: warning: exported method ProjectPipelineHandler.GithubWebhook should have comment or be unexported (golint)
    • Line 858: 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)
    • Line 863: warning: exported method ProjectPipelineHandler.CheckScriptCompile should have comment or be unexported (golint)
    • Line 876: warning: exported method ProjectPipelineHandler.CheckCron should have comment or be unexported (golint)
    • Line 889: warning: exported method ProjectPipelineHandler.ToJenkinsfile should have comment or be unexported (golint)
    • Line 899: warning: exported method ProjectPipelineHandler.ToJson should have comment or be unexported (golint)
    • Line 909: warning: exported method ProjectPipelineHandler.GetProjectCredentialUsage should have comment or be unexported (golint)
    • ks-devops/pkg/models/devops/s2ibinary_handler.go
    • Line 43: warning: exported const GetS2iBinaryURL should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type S2iBinaryUploader should have comment or be unexported (golint)
    • Line 59: warning: exported function NewS2iBinaryUploader should have comment or be unexported (golint)
    • ks-devops/pkg/api/utils.go
    • Line 32: warning: exported function HandleInternalError should have comment or be unexported (golint)
    • Line 41: warning: exported function HandleNotFound should have comment or be unexported (golint)
    • Line 45: warning: exported function HandleForbidden should have comment or be unexported (golint)
    • Line 49: warning: exported function HandleUnauthorized should have comment or be unexported (golint)
    • Line 53: warning: exported function HandleTooManyRequests should have comment or be unexported (golint)
    • Line 57: warning: exported function HandleConflict should have comment or be unexported (golint)
    • Line 61: warning: exported function HandleError should have comment or be unexported (golint)
    • ks-devops/pkg/client/clientset/versioned/typed/devops/v1alpha1/devops_client.go
    • Line 27: warning: exported type DevopsV1alpha1Interface should have comment or be unexported (golint)
    • Line 40: warning: exported method DevopsV1alpha1Client.S2iBinaries should have comment or be unexported (golint)
    • Line 44: warning: exported method DevopsV1alpha1Client.S2iBuilders should have comment or be unexported (golint)
    • Line 48: warning: exported method DevopsV1alpha1Client.S2iBuilderTemplates should have comment or be unexported (golint)
    • Line 52: warning: exported method DevopsV1alpha1Client.S2iRuns should have comment or be unexported (golint)
    • ks-devops/pkg/apiserver/query/types.go
    • Line 29: warning: exported const ParameterName should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported type Pagination should have comment or be unexported (golint)
    • Line 62: warning: exported var NoPagination should have comment or be unexported (golint)
    • Line 72: warning: exported method Query.Selector should have comment or be unexported (golint)
    • Line 75: 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)
    • Line 80: warning: exported method Pagination.GetValidPagination should have comment or be unexported (golint)
    • Line 105: warning: exported function New should have comment or be unexported (golint)
    • Line 114: warning: exported type Filter should have comment or be unexported (golint)
    • Line 119: warning: exported function ParseQueryParameter should have comment or be unexported (golint)
    • ks-devops/pkg/constants/constants.go
    • Line 20: warning: exported const APIVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 136: warning: exported const StatusActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 146: warning: exported var SystemNamespaces should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/interface.go
    • Line 27: warning: exported type Interface should have comment or be unexported (golint)
    • Line 43: warning: exported function GetDevOpsStatusCode should have comment or be unexported (golint)
    • Line 56: warning: exported type ErrorResponse should have comment or be unexported (golint)
    • ks-devops/cmd/apiserver/app/options/options.go
    • Line 46: warning: exported type ServerRunOptions should have comment or be unexported (golint)
    • Line 54: warning: exported function NewServerRunOptions should have comment or be unexported (golint)
    • Line 63: warning: exported method ServerRunOptions.Flags should have comment or be unexported (golint)
    • ks-devops/pkg/client/s3/s3.go
    • Line 33: warning: exported type Client should have comment or be unexported (golint)
    • Line 39: warning: exported method Client.Upload should have comment or be unexported (golint)
    • Line 71: warning: exported method Client.GetDownloadURL should have comment or be unexported (golint)
    • Line 80: warning: exported method Client.Delete should have comment or be unexported (golint)
    • Line 91: warning: exported function NewS3Client should have comment or be unexported (golint)
    • Line 117: warning: exported method Client.Client should have comment or be unexported (golint)
    • Line 120: warning: exported method Client.Session should have comment or be unexported (golint)
    • Line 124: warning: exported method Client.Bucket should have comment or be unexported (golint)
    • ks-devops/pkg/client/cache/redis.go
    • Line 27: warning: exported type Client should have comment or be unexported (golint)
    • Line 31: warning: exported function NewRedisClient should have comment or be unexported (golint)
    • Line 64: warning: exported method Client.Get should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.Keys should have comment or be unexported (golint)
    • Line 72: warning: exported method Client.Set should have comment or be unexported (golint)
    • Line 76: warning: exported method Client.Del should have comment or be unexported (golint)
    • Line 80: warning: exported method Client.Exists should have comment or be unexported (golint)
    • Line 89: warning: exported method Client.Expire should have comment or be unexported (golint)
    • ks-devops/pkg/client/k8s/fake_client.go
    • Line 27: warning: exported type FakeClient should have comment or be unexported (golint)
    • Line 39: warning: exported method FakeClient.KubeSphere should have comment or be unexported (golint)
    • Line 43: warning: exported function NewFakeClientSets should have comment or be unexported (golint)
    • Line 55: warning: exported method FakeClient.Kubernetes should have comment or be unexported (golint)
    • Line 59: warning: exported method FakeClient.ApiExtensions should have comment or be unexported (golint)
    • Line 63: warning: exported method FakeClient.Discovery should have comment or be unexported (golint)
    • Line 67: warning: exported method FakeClient.Master should have comment or be unexported (golint)
    • Line 71: warning: exported method FakeClient.Config should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/build.go
    • Line 20: warning: exported const LastBuild should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type GeneralParameter should have comment or be unexported (golint)
    • Line 35: warning: exported type Branch should have comment or be unexported (golint)
    • Line 40: warning: exported type BuildRevision should have comment or be unexported (golint)
    • Line 45: warning: exported type Builds should have comment or be unexported (golint)
    • Line 52: warning: exported type Culprit should have comment or be unexported (golint)
    • Line 57: warning: exported type GeneralAction should have comment or be unexported (golint)
    • Line 73: warning: exported type Build should have comment or be unexported (golint)
    • Line 125: warning: exported type BuildGetter should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/credential.go
    • Line 23: warning: exported type Credential should have comment or be unexported (golint)
    • Line 44: warning: exported type UsernamePasswordCredential should have comment or be unexported (golint)
    • Line 49: warning: exported type SshCredential should have comment or be unexported (golint)
    • Line 55: warning: exported type SecretTextCredential should have comment or be unexported (golint)
    • Line 59: warning: exported type KubeconfigCredential should have comment or be unexported (golint)
    • Line 63: warning: exported type CredentialOperator should have comment or be unexported (golint)
    • ks-devops/pkg/client/s3/fake/fakes3.go
    • Line 28: warning: exported type FakeS3 should have comment or be unexported (golint)
    • Line 32: warning: exported function NewFakeS3 should have comment or be unexported (golint)
    • Line 40: warning: exported type Object should have comment or be unexported (golint)
    • Line 46: warning: exported method FakeS3.Upload should have comment or be unexported (golint)
    • Line 55: warning: exported method FakeS3.GetDownloadURL should have comment or be unexported (golint)
    • Line 62: warning: exported method FakeS3.Delete should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/jenkins/constants.go
    • Line 20: warning: exported const STATUS_FAIL should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported const GLOBAL_ROLE should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported var ParameterTypeMap should have comment or be unexported (golint)
    • ks-devops/pkg/kapis/oauth/handler.go
    • Line 29: warning: exported const KindTokenReview should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type Spec should have comment or be unexported (golint)
    • Line 36: warning: exported type Status should have comment or be unexported (golint)
    • Line 41: warning: exported type TokenReview should have comment or be unexported (golint)
    • Line 48: warning: exported type LoginRequest should have comment or be unexported (golint)
    • Line 53: warning: exported method TokenReview.Validate should have comment or be unexported (golint)
    • ks-devops/pkg/kapis/devops/v1alpha2/s2ibinary.go
    • Line 32: warning: exported type S2iBinaryHandler should have comment or be unexported (golint)
    • Line 36: warning: exported method S2iBinaryHandler.UploadS2iBinaryHandler should have comment or be unexported (golint)
    • Line 97: warning: exported method S2iBinaryHandler.DownloadS2iBinaryHandler should have comment or be unexported (golint)
    • ks-devops/pkg/client/devops/jenkins/pipeline_model_converter.go
    • Line 22: warning: exported type ValidateJenkinsfileResponse should have comment or be unexported (golint)
    • Line 29: warning: exported type ValidatePipelineJsonResponse should have comment or be unexported (golint)
    • Line 37: warning: exported type PipelineJsonToJenkinsfileResponse should have comment or be unexported (golint)
    • Line 46: warning: exported type JenkinsfileToPipelineJsonResponse should have comment or be unexported (golint)
    • Line 54: warning: exported type StepJsonToJenkinsfileResponse should have comment or be unexported (golint)
    • Line 63: warning: exported type StepsJenkinsfileToJsonResponse should have comment or be unexported (golint)
    • Line 72: warning: exported method Jenkins.ValidateJenkinsfile should have comment or be unexported (golint)
    • Line 88: warning: exported method Jenkins.ValidatePipelineJson should have comment or be unexported (golint)
    • Line 104: warning: exported method Jenkins.PipelineJsonToJenkinsfile should have comment or be unexported (golint)
    • Line 119: warning: exported method Jenkins.JenkinsfileToPipelineJson should have comment or be unexported (golint)
    • Line 134: warning: exported method Jenkins.StepsJsonToJenkinsfile should have comment or be unexported (golint)
    • Line 149: warning: exported method Jenkins.StepsJenkinsfileToJson should have comment or be unexported (golint)

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!


misspell97%

Misspell Finds commonly misspelled English words

    • ks-devops/pkg/client/devops/jenkins/triggers/genericwebhook.go
    • Line 59: warning: "eles" is a misspelling of "eels" (misspell)
    • Line 59: warning: "eles" is a misspelling of "eels" (misspell)
    • Line 62: warning: "eles" is a misspelling of "eels" (misspell)
    • Line 64: warning: "eles" is a misspelling of "eels" (misspell)
    • Line 65: warning: "eles" is a misspelling of "eels" (misspell)
    • Line 72: warning: "eles" is a misspelling of "eels" (misspell)
    • Line 72: warning: "eles" is a misspelling of "eels" (misspell)
    • Line 75: warning: "eles" is a misspelling of "eels" (misspell)
    • Line 77: warning: "eles" is a misspelling of "eels" (misspell)
    • Line 78: warning: "eles" is a misspelling of "eels" (misspell)