Preparing report...

Report for github.com/ovh/cds

A+    Excellent!    Found 483 issues across 1346 files

Tweet

gofmt99%

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!


golint77%

Golint is a linter for Go source code.

    • cds/engine/cdn/storage/redis/redis.go
    • Line 23: warning: exported type Redis should have comment or be unexported (golint)
    • Line 36: warning: exported method Redis.GetDriverName should have comment or be unexported (golint)
    • Line 40: warning: exported method Redis.Init should have comment or be unexported (golint)
    • Line 55: warning: exported method Redis.BufferType should have comment or be unexported (golint)
    • Line 59: warning: exported method Redis.Keys should have comment or be unexported (golint)
    • Line 63: warning: exported method Redis.ItemExists should have comment or be unexported (golint)
    • Line 68: warning: exported method Redis.Size should have comment or be unexported (golint)
    • Line 73: warning: exported method Redis.Add should have comment or be unexported (golint)
    • Line 78: warning: exported method Redis.Card should have comment or be unexported (golint)
    • Line 111: warning: exported method Redis.Status should have comment or be unexported (golint)
    • Line 142: warning: exported method Redis.Remove should have comment or be unexported (golint)
    • cds/engine/ui/ui.go
    • Line 37: warning: exported method Service.Init should have comment or be unexported (golint)
    • Line 96: warning: comment on exported method Service.BeforeStart should be of the form "BeforeStart ..." (golint)
    • Line 143: warning: exported method Service.Serve should have comment or be unexported (golint)
    • cds/sdk/workflow_node.go
    • Line 11: warning: exported const NodeTypePipeline should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported method Node.GetHook should have comment or be unexported (golint)
    • Line 108: warning: exported method NodeContext.HasDefaultPayload should have comment or be unexported (golint)
    • Line 124: warning: exported method NodeContext.DefaultPayloadToMap should have comment or be unexported (golint)
    • Line 208: warning: exported method Node.Ancestors should have comment or be unexported (golint)
    • cds/engine/config_vault.go
    • Line 13: warning: exported type VaultSecret should have comment or be unexported (golint)
    • Line 18: warning: comment on exported function VaultNewSecret should be of the form "VaultNewSecret ..." (golint)
    • cds/engine/api/integration/dao_model.go
    • Line 42: warning: exported function LoadPublicModelsByTypeWithDecryption should have comment or be unexported (golint)
    • Line 88: warning: exported function LoadModelWithClearPassword should have comment or be unexported (golint)
    • Line 99: warning: exported function LoadModelByNameWithClearPassword should have comment or be unexported (golint)
    • cds/engine/gorpmapper/dao.go
    • Line 60: warning: exported method Mapper.UpdateColumns should have comment or be unexported (golint)
    • Line 159: warning: exported type GetOptionFunc should have comment or be unexported (golint)
    • Line 161: warning: exported var GetOptions should have comment or be unexported (golint)
    • cds/sdk/stage.go
    • Line 25: warning: exported method Stage.UnmarshalJSON should have comment or be unexported (golint)
    • Line 97: warning: comment on exported method Stage.PlainConditions should be of the form "PlainConditions ..." (golint)
    • cds/engine/api/project.go
    • Line 31: warning: don't use underscores in Go names; method getProjectsHandler_FilterByRepo should be getProjectsHandlerFilterByRepo (golint)
    • cds/engine/api/cdn/item.go
    • Line 17: warning: exported const ParamRunID should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported function ListItems should have comment or be unexported (golint)
    • cds/engine/cdn/storage/storageunit_run.go
    • Line 18: warning: exported var KeyBackendSync should have comment or be unexported (golint)
    • Line 21: warning: exported method RunningStorageUnits.FillSyncItemChannel should have comment or be unexported (golint)
    • Line 40: warning: exported method RunningStorageUnits.FillWithUnknownItems should have comment or be unexported (golint)
    • Line 205: warning: exported method RunningStorageUnits.NewItemUnit should have comment or be unexported (golint)
    • cds/sdk/key.go
    • Line 8: warning: exported type KeyType should have comment or be unexported (golint)
    • Line 20: warning: exported function GenerateProjectDefaultKeyName should have comment or be unexported (golint)
    • cds/engine/service/auth.go
    • Line 14: warning: exported const JWTCookieName should have comment or be unexported (golint)
    • Line 19: warning: exported const ContextJWT should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported function NoAuthMiddleware should have comment or be unexported (golint)
    • Line 29: warning: exported function JWTMiddleware should have comment or be unexported (golint)
    • Line 75: warning: exported function OverrideAuth should have comment or be unexported (golint)
    • cds/sdk/metric.go
    • Line 6: warning: exported const MetricKeyVulnerability should have comment (or a comment on this block) or be unexported (golint)
    • cds/engine/api/pipeline/gorp_model.go
    • Line 17: warning: exported type Pipelines should have comment or be unexported (golint)
    • Line 19: warning: exported method Pipelines.Cast should have comment or be unexported (golint)
    • Line 60: warning: exported method Pipeline.PostGet should have comment or be unexported (golint)
    • cds/engine/cdn/storage/s3/s3.go
    • Line 26: warning: exported type S3 should have comment or be unexported (golint)
    • Line 43: warning: exported method S3.GetDriverName should have comment or be unexported (golint)
    • Line 47: warning: exported method S3.Init should have comment or be unexported (golint)
    • Line 87: warning: exported method S3.ItemExists should have comment or be unexported (golint)
    • Line 126: warning: exported method S3.NewWriter should have comment or be unexported (golint)
    • Line 151: warning: exported method S3.NewReader should have comment or be unexported (golint)
    • Line 197: warning: exported method S3.Remove should have comment or be unexported (golint)
    • cds/sdk/exportentities/workflow_tar.go
    • Line 18: warning: exported type WorkflowComponents should have comment or be unexported (golint)
    • Line 26: warning: exported method WorkflowComponents.ToRaw should have comment or be unexported (golint)
    • Line 68: warning: exported type WorkflowComponentsRaw should have comment or be unexported (golint)
    • Line 172: warning: exported function UntarWorkflowComponents should have comment or be unexported (golint)
    • cds/sdk/telemetry/stats_exporter.go
    • Line 10: warning: exported method HTTPExporter.GetView should have comment or be unexported (golint)
    • Line 19: warning: exported method HTTPExporter.NewView should have comment or be unexported (golint)
    • Line 28: warning: exported method HTTPExporter.ExportView should have comment or be unexported (golint)
    • Line 42: warning: exported method HTTPExporterView.Record should have comment or be unexported (golint)
    • cds/engine/hooks/dao.go
    • Line 15: warning: exported const MaintenanceHookKey should have comment (or a comment on this block) or be unexported (golint)
    • cds/sdk/log/hook/throttle.go
    • Line 10: warning: exported type ThrottlePolicyConfig should have comment or be unexported (golint)
    • Line 16: warning: exported type ThrottlePolicy should have comment or be unexported (golint)
    • Line 23: warning: exported function NewDefaultThrottlePolicy should have comment or be unexported (golint)
    • Line 30: warning: exported type DefaultThrottlePolicy should have comment or be unexported (golint)
    • Line 35: warning: exported method DefaultThrottlePolicy.Init should have comment or be unexported (golint)
    • Line 52: warning: exported method DefaultThrottlePolicy.HandleTrailingMessage should have comment or be unexported (golint)
    • Line 63: warning: exported method DefaultThrottlePolicy.Flush should have comment or be unexported (golint)
    • Line 73: warning: exported method DefaultThrottlePolicy.PendingTrailingMessages should have comment or be unexported (golint)
    • cds/engine/websocket/broker.go
    • Line 13: warning: exported function NewBroker should have comment or be unexported (golint)
    • Line 17: warning: exported type Broker should have comment or be unexported (golint)
    • Line 22: warning: exported method Broker.OnMessage should have comment or be unexported (golint)
    • cds/sdk/goroutine.go
    • Line 27: warning: exported type GoRoutine should have comment or be unexported (golint)
    • Line 41: warning: exported method GoRoutines.GoRoutine should have comment or be unexported (golint)
    • Line 182: warning: exported function GoroutineID should have comment or be unexported (golint)
    • Line 201: warning: exported function ListGoroutines should have comment or be unexported (golint)
    • cds/engine/service/debug.go
    • Line 14: warning: exported function GetAllProfilesHandler should have comment or be unexported (golint)
    • Line 27: warning: exported function GetProfileHandler should have comment or be unexported (golint)
    • cds/sdk/gpg/gpg.go
    • Line 18: warning: exported type PrivateKey should have comment or be unexported (golint)
    • Line 22: warning: exported function NewPrivateKeyFromPem should have comment or be unexported (golint)
    • Line 35: warning: exported function NewPrivateKeyFromData should have comment or be unexported (golint)
    • Line 53: warning: exported method PrivateKey.GenerateSignature should have comment or be unexported (golint)
    • Line 70: warning: exported method PrivateKey.VerifySignature should have comment or be unexported (golint)
    • Line 74: warning: exported method PrivateKey.DecryptData should have comment or be unexported (golint)
    • Line 95: warning: exported method PrivateKey.EncryptData should have comment or be unexported (golint)
    • Line 99: warning: exported method PrivateKey.ReadSignedMessage should have comment or be unexported (golint)
    • Line 103: warning: exported type BufferNopCloser should have comment or be unexported (golint)
    • Line 107: warning: exported method BufferNopCloser.Close should have comment or be unexported (golint)
    • Line 111: warning: exported method PrivateKey.SignMessage should have comment or be unexported (golint)
    • Line 142: warning: exported method PrivateKey.KeyId should have comment or be unexported (golint)
    • Line 146: warning: exported method PrivateKey.GetKey should have comment or be unexported (golint)
    • Line 155: warning: exported method PrivateKey.GetPubKey should have comment or be unexported (golint)
    • Line 165: warning: exported method PrivateKey.Serialize should have comment or be unexported (golint)
    • Line 169: warning: exported type PublicKey should have comment or be unexported (golint)
    • Line 173: warning: exported function NewPublicKeyFromPem should have comment or be unexported (golint)
    • Line 186: warning: exported function NewPublicKeyFromData should have comment or be unexported (golint)
    • Line 195: warning: exported method PublicKey.EncryptData should have comment or be unexported (golint)
    • Line 224: warning: exported method PublicKey.VerifySignature should have comment or be unexported (golint)
    • Line 254: warning: exported method PublicKey.ReadSignedMessage should have comment or be unexported (golint)
    • Line 288: warning: exported method PublicKey.KeyId should have comment or be unexported (golint)
    • Line 292: warning: exported method PublicKey.Serialize should have comment or be unexported (golint)
    • Line 301: warning: exported method PublicKey.GetKey should have comment or be unexported (golint)
    • cds/engine/api/workflow/factory_dao.go
    • Line 36: warning: exported method LoadOptions.GetWorkflowDAO should have comment or be unexported (golint)
    • Line 65: warning: exported type LoadAllWorkflowsOptionsFilters should have comment or be unexported (golint)
    • Line 76: warning: exported type LoadAllWorkflowsOptionsLoaders should have comment or be unexported (golint)
    • Line 91: warning: exported type WorkflowDAO should have comment or be unexported (golint)
    • Line 100: warning: exported method WorkflowDAO.Query should have comment or be unexported (golint)
    • Line 211: warning: exported method WorkflowDAO.GetLoaders should have comment or be unexported (golint)
    • Line 682: warning: exported method WorkflowDAO.Load should have comment or be unexported (golint)
    • Line 694: warning: exported method WorkflowDAO.LoadAll should have comment or be unexported (golint)
    • cds/engine/api/test/gorp.go
    • Line 10: warning: exported type SqlExecutorMockQuery should have comment or be unexported (golint)
    • Line 15: warning: exported type SqlExecutorMock should have comment or be unexported (golint)
    • Line 20: warning: exported method SqlExecutorMock.LastQuery should have comment or be unexported (golint)
    • Line 27: warning: exported method SqlExecutorMock.WithContext should have comment or be unexported (golint)
    • Line 28: warning: exported method SqlExecutorMock.Get should have comment or be unexported (golint)
    • Line 31: warning: exported method SqlExecutorMock.Insert should have comment or be unexported (golint)
    • Line 32: warning: exported method SqlExecutorMock.Update should have comment or be unexported (golint)
    • Line 33: warning: exported method SqlExecutorMock.UpdateColumns should have comment or be unexported (golint)
    • Line 36: warning: exported method SqlExecutorMock.Delete should have comment or be unexported (golint)
    • Line 37: warning: exported method SqlExecutorMock.Exec should have comment or be unexported (golint)
    • Line 40: warning: exported method SqlExecutorMock.Select should have comment or be unexported (golint)
    • Line 50: warning: exported method SqlExecutorMock.SelectInt should have comment or be unexported (golint)
    • Line 51: warning: exported method SqlExecutorMock.SelectNullInt should have comment or be unexported (golint)
    • Line 54: warning: exported method SqlExecutorMock.SelectFloat should have comment or be unexported (golint)
    • Line 57: warning: exported method SqlExecutorMock.SelectNullFloat should have comment or be unexported (golint)
    • Line 60: warning: exported method SqlExecutorMock.SelectStr should have comment or be unexported (golint)
    • Line 63: warning: exported method SqlExecutorMock.SelectNullStr should have comment or be unexported (golint)
    • Line 66: warning: exported method SqlExecutorMock.SelectOne should have comment or be unexported (golint)
    • Line 73: warning: exported method SqlExecutorMock.Query should have comment or be unexported (golint)
    • Line 80: warning: exported method SqlExecutorMock.QueryRow should have comment or be unexported (golint)
    • cds/engine/cdn/test/test.go
    • Line 14: warning: exported function ClearSyncRedisSet should have comment or be unexported (golint)
    • Line 18: warning: context.Context should be the first parameter of a function (golint)
    • Line 18: warning: exported function ClearItem should have comment or be unexported (golint)
    • Line 27: warning: context.Context should be the first parameter of a function (golint)
    • Line 27: warning: exported function ClearUnits should have comment or be unexported (golint)
    • cds/engine/api/workflow/execute_node_job_run.go
    • Line 28: warning: exported method ProcessorReport.Jobs should have comment or be unexported (golint)
    • Line 32: warning: exported method ProcessorReport.Nodes should have comment or be unexported (golint)
    • Line 36: warning: exported method ProcessorReport.Workflows should have comment or be unexported (golint)
    • Line 396: warning: exported function AppendLog should have comment or be unexported (golint)
    • cds/engine/cdn/storage/storageunit.go
    • Line 23: warning: exported method RunningStorageUnits.Storage should have comment or be unexported (golint)
    • Line 32: warning: exported function Init should have comment or be unexported (golint)
    • Line 295: warning: exported method RunningStorageUnits.PushInSyncQueue should have comment or be unexported (golint)
    • Line 310: warning: exported method RunningStorageUnits.Start should have comment or be unexported (golint)
    • Line 455: warning: exported method RunningStorageUnits.RemoveFromRedisSyncQueue should have comment or be unexported (golint)
    • Line 466: warning: exported method RunningStorageUnits.SyncBuffer should have comment or be unexported (golint)
    • cds/sdk/token.go
    • Line 22: warning: exported type AuthDriverWithRedirect should have comment or be unexported (golint)
    • Line 27: warning: exported type AuthDriverWithSigninStateToken should have comment or be unexported (golint)
    • Line 32: warning: exported type AuthDriverSigningRedirect should have comment or be unexported (golint)
    • Line 74: warning: exported type AuthConsumerScopeEndpoints should have comment or be unexported (golint)
    • Line 76: warning: exported method AuthConsumerScopeEndpoints.FindEndpoint should have comment or be unexported (golint)
    • Line 85: warning: exported type AuthConsumerScopeEndpoint should have comment or be unexported (golint)
    • Line 142: warning: exported function NewAuthConsumerScopeDetails should have comment or be unexported (golint)
    • Line 190: warning: exported method AuthConsumerScopeDetails.ToEndpointsMap should have comment or be unexported (golint)
    • Line 457: warning: exported method AuthConsumer.Admin should have comment or be unexported (golint)
    • Line 461: warning: exported method AuthConsumer.Maintainer should have comment or be unexported (golint)
    • Line 465: warning: exported method AuthConsumer.GetUsername should have comment or be unexported (golint)
    • Line 472: warning: exported method AuthConsumer.GetEmail should have comment or be unexported (golint)
    • Line 479: warning: exported method AuthConsumer.GetFullname should have comment or be unexported (golint)
    • Line 546: warning: exported const AuthSigninConsumerTokenDuration should have comment or be unexported (golint)
    • cds/engine/api/worker/dao.go
    • Line 63: warning: exported function Insert should have comment or be unexported (golint)
    • Line 97: warning: exported function LoadByConsumerID should have comment or be unexported (golint)
    • Line 106: warning: exported function LoadByID should have comment or be unexported (golint)
    • Line 115: warning: exported function LoadAll should have comment or be unexported (golint)
    • Line 124: warning: exported function LoadAllByHatcheryID should have comment or be unexported (golint)
    • Line 134: warning: exported function LoadDeadWorkers should have comment or be unexported (golint)
    • Line 179: warning: comment on exported function LoadWorkerByNameWithDecryptKey should be of the form "LoadWorkerByNameWithDecryptKey ..." (golint)
    • Line 185: warning: comment on exported function LoadWorkerByName should be of the form "LoadWorkerByName ..." (golint)
    • cds/engine/cdn/item/dao.go
    • Line 64: warning: exported function LoadIDsToDelete should have comment or be unexported (golint)
    • Line 78: warning: exported function DeleteByID should have comment or be unexported (golint)
    • Line 86: warning: exported function LoadAll should have comment or be unexported (golint)
    • Line 145: warning: exported function MarkToDeleteByRunIDs should have comment or be unexported (golint)
    • Line 153: warning: exported function LoadFileByProjectAndCacheTag should have comment or be unexported (golint)
    • Line 191: warning: exported function ListNodeRunByProject should have comment or be unexported (golint)
    • Line 218: warning: exported type Stat should have comment or be unexported (golint)
    • Line 224: warning: exported function CountItems should have comment or be unexported (golint)
    • Line 232: warning: exported function CountItemsToDelete should have comment or be unexported (golint)
    • Line 240: warning: exported type StatItemPercentil should have comment or be unexported (golint)
    • Line 246: warning: exported function CountItemSizePercentil should have comment or be unexported (golint)
    • Line 310: warning: exported function LoadOldItemByStatusAndDuration should have comment or be unexported (golint)
    • Line 322: warning: exported function LoadByRunID should have comment or be unexported (golint)
    • cds/engine/database/handler_database_encryption.go
    • Line 15: warning: exported type DBFunc should have comment or be unexported (golint)
    • Line 17: warning: exported function AdminDatabaseSignatureResume should have comment or be unexported (golint)
    • Line 34: warning: exported function AdminDatabaseSignatureTuplesBySigner should have comment or be unexported (golint)
    • Line 49: warning: exported function AdminDatabaseSignatureRollEntityByPrimaryKey should have comment or be unexported (golint)
    • Line 73: warning: exported function AdminDatabaseEncryptedEntities should have comment or be unexported (golint)
    • Line 79: warning: exported function AdminDatabaseEncryptedTuplesByEntity should have comment or be unexported (golint)
    • Line 93: warning: exported function AdminDatabaseRollEncryptedEntityByPrimaryKey should have comment or be unexported (golint)
    • cds/engine/api/permission/dao.go
    • Line 17: warning: exported function LoadWorkflowMaxLevelPermissionByWorkflowIDs should have comment or be unexported (golint)
    • Line 44: warning: exported function LoadWorkflowMaxLevelPermission should have comment or be unexported (golint)
    • Line 72: warning: exported function LoadProjectMaxLevelPermission should have comment or be unexported (golint)
    • cds/engine/hatchery/vsphere/spawn.go
    • Line 406: warning: exported method HatcheryVSphere.ProvisionWorker should have comment or be unexported (golint)
    • Line 458: warning: exported method HatcheryVSphere.FindProvisionnedWorker should have comment or be unexported (golint)
    • cds/engine/worker/internal/action/test_helper.go
    • Line 23: warning: exported type TestWorker should have comment or be unexported (golint)
    • Line 33: warning: exported method TestWorker.GetJobIdentifiers should have comment or be unexported (golint)
    • Line 37: warning: exported method TestWorker.WorkerCacheSignature should have comment or be unexported (golint)
    • Line 41: warning: exported method TestWorker.RunResultSignature should have comment or be unexported (golint)
    • Line 45: warning: exported method TestWorker.FeatureEnabled should have comment or be unexported (golint)
    • Line 49: warning: exported method TestWorker.CDNHttpURL should have comment or be unexported (golint)
    • Line 53: warning: exported method TestWorker.WorkingDirectory should have comment or be unexported (golint)
    • Line 57: warning: exported method TestWorker.KeyDirectory should have comment or be unexported (golint)
    • Line 61: warning: exported method TestWorker.Blur should have comment or be unexported (golint)
    • Line 66: warning: exported method TestWorker.GetPlugin should have comment or be unexported (golint)
    • Line 70: warning: exported method TestWorker.Parameters should have comment or be unexported (golint)
    • Line 74: warning: exported method TestWorker.Client should have comment or be unexported (golint)
    • Line 78: warning: exported method TestWorker.Environ should have comment or be unexported (golint)
    • Line 78: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 82: warning: exported method TestWorker.HTTPPort should have comment or be unexported (golint)
    • Line 82: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 86: warning: exported method TestWorker.Name should have comment or be unexported (golint)
    • Line 86: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 90: warning: exported method TestWorker.BaseDir should have comment or be unexported (golint)
    • Line 90: warning: receiver name wk should be consistent with previous receiver name w for TestWorker (golint)
    • Line 94: warning: exported method TestWorker.Register should have comment or be unexported (golint)
    • Line 94: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 97: warning: exported method TestWorker.Take should have comment or be unexported (golint)
    • Line 97: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 100: warning: exported method TestWorker.ProcessJob should have comment or be unexported (golint)
    • Line 100: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 103: warning: exported method TestWorker.SendLog should have comment or be unexported (golint)
    • Line 109: warning: exported method TestWorker.Unregister should have comment or be unexported (golint)
    • Line 109: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 113: warning: exported method TestWorker.InstallKey should have comment or be unexported (golint)
    • Line 132: warning: exported method TestWorker.InstallKeyTo should have comment or be unexported (golint)
    • Line 151: warning: exported function SetupTest should have comment or be unexported (golint)
    • cds/sdk/websocket.go
    • Line 5: warning: exported type WebsocketFilterType should have comment or be unexported (golint)
    • Line 8: warning: exported const WebsocketFilterTypeGlobal should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported method WebsocketFilterType.IsValid should have comment or be unexported (golint)
    • Line 43: warning: exported type WebsocketFilters should have comment or be unexported (golint)
    • Line 45: warning: exported type WebsocketFilter should have comment or be unexported (golint)
    • Line 127: warning: exported type WebsocketEvent should have comment or be unexported (golint)
    • cds/sdk/exportentities/v1/workflow.go
    • Line 57: warning: exported type ConditionEntry should have comment or be unexported (golint)
    • Line 62: warning: comment on exported type PlainConditionEntry should be of the form "PlainConditionEntry ..." (with optional leading article) (golint)
    • Line 98: warning: exported method Workflow.CheckValidity should have comment or be unexported (golint)
    • Line 150: warning: exported method Workflow.CheckDependencies should have comment or be unexported (golint)
    • Line 522: warning: exported method Workflow.GetName should have comment or be unexported (golint)
    • Line 526: warning: exported method Workflow.GetVersion should have comment or be unexported (golint)
    • cds/engine/test/database.go
    • Line 22: warning: exported type Bootstrapf should have comment or be unexported (golint)
    • Line 61: warning: exported type FakeTransaction should have comment or be unexported (golint)
    • Line 65: warning: exported method FakeTransaction.Rollback should have comment or be unexported (golint)
    • Line 66: warning: exported method FakeTransaction.Commit should have comment or be unexported (golint)
    • Line 68: warning: exported function SetupPGWithMapper should have comment or be unexported (golint)
    • cds/engine/service/service.go
    • Line 55: warning: exported method Common.Type should have comment or be unexported (golint)
    • Line 59: warning: exported method Common.Name should have comment or be unexported (golint)
    • Line 63: warning: exported method Common.Start should have comment or be unexported (golint)
    • cds/sdk/log/log.go
    • Line 35: warning: exported const HeaderRequestID should have comment (or a comment on this block) or be unexported (golint)
    • Line 89: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 132: warning: exported type Message should have comment or be unexported (golint)
    • Line 138: warning: exported method Message.ServiceKey should have comment or be unexported (golint)
    • Line 142: warning: exported function New should have comment or be unexported (golint)
    • Line 153: warning: exported function ReplaceAllHooks should have comment or be unexported (golint)
    • Line 176: warning: comment on exported function Flush should be of the form "Flush ..." (golint)
    • cds/sdk/notif.go
    • Line 115: warning: exported const DefaultWorkflowNodeRunReport should have comment or be unexported (golint)
    • Line 141: warning: exported method WorkflowNodeRun.Report should have comment or be unexported (golint)
    • cds/sdk/util.go
    • Line 61: warning: comment on exported function DeleteFromInt64Array should be of the form "DeleteFromInt64Array ..." (golint)
    • Line 81: warning: exported function StringFirstN should have comment or be unexported (golint)
    • cds/sdk/workflow_run.go
    • Line 18: warning: exported var WorkflowRunHeader should have comment or be unexported (golint)
    • Line 23: warning: exported type WorkflowRunHeaders should have comment or be unexported (golint)
    • Line 25: warning: exported method WorkflowRunHeaders.Set should have comment or be unexported (golint)
    • Line 32: warning: exported method WorkflowRunHeaders.Get should have comment or be unexported (golint)
    • Line 40: warning: exported method WorkflowRunHeaders.Value should have comment or be unexported (golint)
    • Line 45: warning: exported method WorkflowRunHeaders.Scan should have comment or be unexported (golint)
    • Line 81: warning: exported type WorkflowRunSummary should have comment or be unexported (golint)
    • Line 94: warning: exported type WorkflowRunInfos should have comment or be unexported (golint)
    • Line 96: warning: exported method WorkflowRunInfos.Value should have comment or be unexported (golint)
    • Line 101: warning: exported method WorkflowRunInfos.Scan should have comment or be unexported (golint)
    • Line 112: warning: exported type WorkflowNodeTriggerRuns should have comment or be unexported (golint)
    • Line 114: warning: exported method WorkflowNodeTriggerRuns.Value should have comment or be unexported (golint)
    • Line 119: warning: exported method WorkflowNodeTriggerRuns.Scan should have comment or be unexported (golint)
    • Line 130: warning: exported type WorkflowNodeRunIdentifiers should have comment or be unexported (golint)
    • Line 138: warning: exported type WorkflowRunSecret should have comment or be unexported (golint)
    • Line 192: warning: exported method WorkflowRunVersion.IsValid should have comment or be unexported (golint)
    • Line 210: warning: exported method WorkflowRun.PendingOutgoingHook should have comment or be unexported (golint)
    • Line 268: warning: exported method WorkflowRun.RootRun should have comment or be unexported (golint)
    • Line 277: warning: exported method WorkflowRun.HasParentWorkflow should have comment or be unexported (golint)
    • Line 293: warning: exported method WorkflowRun.GetOutgoingHookRun should have comment or be unexported (golint)
    • Line 310: warning: exported const RunInfoTypInfo should have comment (or a comment on this block) or be unexported (golint)
    • Line 542: warning: exported type WorkflowNodeJobRunBooked should have comment or be unexported (golint)
    • Line 562: warning: exported method WorkflowNodeJobRun.GetPuginBinary should have comment or be unexported (golint)
    • Line 616: warning: exported type WorkflowQueue should have comment or be unexported (golint)
    • Line 618: warning: exported method WorkflowQueue.Sort should have comment or be unexported (golint)
    • cds/engine/api/workflow/dao_notification.go
    • Line 12: warning: exported function DeleteNotifications should have comment or be unexported (golint)
    • Line 20: warning: exported function LoadNotificationsByWorkflowIDs should have comment or be unexported (golint)
    • Line 65: warning: exported function InsertNotification should have comment or be unexported (golint)
    • cds/engine/websocket/server.go
    • Line 15: warning: exported var Upgrader should have comment or be unexported (golint)
    • Line 19: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 23: warning: exported type Server should have comment or be unexported (golint)
    • Line 28: warning: exported method Server.AddClient should have comment or be unexported (golint)
    • Line 35: warning: exported method Server.RemoveClient should have comment or be unexported (golint)
    • Line 47: warning: exported method Server.ClientIDs should have comment or be unexported (golint)
    • Line 57: warning: exported method Server.SendToClient should have comment or be unexported (golint)
    • Line 67: warning: exported method Server.Close should have comment or be unexported (golint)
    • cds/sdk/build.go
    • Line 24: warning: exported function SpawnMsgNew should have comment or be unexported (golint)
    • Line 35: warning: exported method SpawnMsg.DefaultUserMessage should have comment or be unexported (golint)
    • Line 138: warning: exported var StatusTerminated should have comment or be unexported (golint)
    • cds/engine/api/workflow/dao.go
    • Line 29: warning: exported type PushSecrets should have comment or be unexported (golint)
    • Line 92: warning: exported function LoadByRepo should have comment or be unexported (golint)
    • Line 202: warning: exported method Workflow.Get should have comment or be unexported (golint)
    • Line 290: warning: exported function UpdateMaxRunsByID should have comment or be unexported (golint)
    • Line 431: warning: exported function RenameNode should have comment or be unexported (golint)
    • Line 755: warning: exported function CompleteWorkflow should have comment or be unexported (golint)
    • cds/tools/smtpmock/signin.go
    • Line 3: warning: exported type SigninRequest should have comment or be unexported (golint)
    • Line 7: warning: exported type SigninResponse should have comment or be unexported (golint)
    • cds/sdk/featureflipping.go
    • Line 3: warning: exported type FeatureName should have comment or be unexported (golint)
    • Line 6: warning: exported const FeatureCDNArtifact should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type Feature should have comment or be unexported (golint)
    • Line 20: warning: exported type FeatureEnabledResponse should have comment or be unexported (golint)
    • cds/engine/cdn/storage/cds/cds.go
    • Line 18: warning: exported type CDS should have comment or be unexported (golint)
    • Line 30: warning: exported method CDS.GetDriverName should have comment or be unexported (golint)
    • Line 34: warning: exported method CDS.GetClient should have comment or be unexported (golint)
    • Line 38: warning: exported method CDS.Init should have comment or be unexported (golint)
    • Line 54: warning: exported method CDS.ItemExists should have comment or be unexported (golint)
    • Line 58: warning: exported method CDS.NewWriter should have comment or be unexported (golint)
    • Line 62: warning: exported method CDS.NewReader should have comment or be unexported (golint)
    • Line 90: warning: exported method CDS.ServiceLogs should have comment or be unexported (golint)
    • Line 94: warning: exported method CDS.ListProjects should have comment or be unexported (golint)
    • Line 98: warning: exported method CDS.ListNodeRunIdentifiers should have comment or be unexported (golint)
    • Line 102: warning: exported method CDS.FeatureEnabled should have comment or be unexported (golint)
    • Line 106: warning: exported method CDS.GetWorkflowNodeRun should have comment or be unexported (golint)
    • Line 110: warning: exported method CDS.Status should have comment or be unexported (golint)
    • Line 121: warning: exported method CDS.Remove should have comment or be unexported (golint)
    • cds/engine/worker/internal/keys.go
    • Line 19: warning: exported method CurrentWorker.InstallKey should have comment or be unexported (golint)
    • Line 100: warning: exported method CurrentWorker.InstallKeyTo should have comment or be unexported (golint)
    • cds/engine/api/workflow/dao_run.go
    • Line 282: warning: exported function LoadRunsIDsToDelete should have comment or be unexported (golint)
    • Line 562: warning: exported function LoadCratingWorkflowRunIDs should have comment or be unexported (golint)
    • Line 577: warning: exported function UpdateCraftedWorkflowRun should have comment or be unexported (golint)
    • Line 694: warning: exported function NextRunNumber should have comment or be unexported (golint)
    • Line 908: warning: exported function CountNotPendingWorkflowRunsByWorkflowID should have comment or be unexported (golint)
    • Line 913: warning: exported function CountWorkflowRunsMarkToDelete should have comment or be unexported (golint)
    • cds/engine/vcs/bitbucketcloud/types.go
    • Line 24: warning: exported type Webhook should have comment or be unexported (golint)
    • Line 52: warning: exported type Webhooks should have comment or be unexported (golint)
    • Line 171: warning: exported type PullRequests should have comment or be unexported (golint)
    • Line 180: warning: exported type AccessToken should have comment or be unexported (golint)
    • Line 188: warning: exported type Link should have comment or be unexported (golint)
    • Line 201: warning: exported type Teams should have comment or be unexported (golint)
    • Line 210: warning: exported type Repositories should have comment or be unexported (golint)
    • Line 219: warning: exported type Repository should have comment or be unexported (golint)
    • Line 259: warning: exported type Status should have comment or be unexported (golint)
    • Line 275: warning: exported type Statuses should have comment or be unexported (golint)
    • Line 284: warning: exported type Branches should have comment or be unexported (golint)
    • Line 293: warning: exported type Branch should have comment or be unexported (golint)
    • Line 348: warning: exported type Commits should have comment or be unexported (golint)
    • Line 357: warning: exported type Commit should have comment or be unexported (golint)
    • Line 408: warning: exported type Tags should have comment or be unexported (golint)
    • Line 417: warning: exported type Tag should have comment or be unexported (golint)
    • cds/sdk/uuid.go
    • Line 25: warning: exported function IsValidUUID should have comment or be unexported (golint)
    • cds/engine/api/test/assets/assets.go
    • Line 272: warning: exported function NewUploadFileRequest should have comment or be unexported (golint)
    • Line 289: warning: exported function NewRequest should have comment or be unexported (golint)
    • Line 355: warning: exported function NewJWTAuthentifiedMultipartRequest should have comment or be unexported (golint)
    • Line 408: warning: exported function InsertGroup should have comment or be unexported (golint)
    • Line 432: warning: exported function InsertWorkerModel should have comment or be unexported (golint)
    • Line 458: warning: exported function InsertHatchery should have comment or be unexported (golint)
    • Line 493: warning: exported function InsertService should have comment or be unexported (golint)
    • Line 524: warning: exported function InitCDNService should have comment or be unexported (golint)
    • Line 566: warning: exported function InsertTestWorkflow should have comment or be unexported (golint)
    • cds/sdk/ascode.go
    • Line 10: warning: exported type AsCodeEvent should have comment or be unexported (golint)
    • Line 22: warning: exported type AsCodeEventData should have comment or be unexported (golint)
    • Line 29: warning: exported type AsCodeEventDataValue should have comment or be unexported (golint)
    • cds/sdk/warning.go
    • Line 11: warning: exported const WarningMissingProjectVariableEnv should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: exported var MessageAmericanEnglish should have comment or be unexported (golint)
    • Line 83: warning: exported var MessageFrench should have comment or be unexported (golint)
    • Line 111: warning: exported method Warning.ComputeMessage should have comment or be unexported (golint)
    • cds/cli/types.go
    • Line 226: warning: exported function NewError should have comment or be unexported (golint)
    • Line 233: warning: exported function WrapError should have comment or be unexported (golint)
    • cds/engine/api/ascode/dao.go
    • Line 105: warning: exported function DeleteEventsPipelineOnlyFromRepoName should have comment or be unexported (golint)
    • Line 117: warning: exported function DeleteEventsApplicationOnlyFromRepoName should have comment or be unexported (golint)
    • Line 129: warning: exported function DeleteEventsEnvironmentOnlyFromRepoName should have comment or be unexported (golint)
    • cds/sdk/telemetry/types.go
    • Line 48: warning: exported const Host should have comment (or a comment on this block) or be unexported (golint)
    • Line 56: warning: exported type ExposedView should have comment or be unexported (golint)
    • Line 64: warning: exported type HTTPExporter should have comment or be unexported (golint)
    • Line 71: warning: exported type HTTPExporterView should have comment or be unexported (golint)
    • Line 85: warning: exported type Service should have comment or be unexported (golint)
    • cds/sdk/project.go
    • Line 13: warning: exported type Projects should have comment or be unexported (golint)
    • Line 15: warning: exported method Projects.Keys should have comment or be unexported (golint)
    • Line 54: warning: exported type Permissions should have comment or be unexported (golint)
    • Line 60: warning: exported method Permissions.Level should have comment or be unexported (golint)
    • Line 79: warning: exported type URL should have comment or be unexported (golint)
    • Line 199: warning: exported type ProjectVCSServerLink should have comment or be unexported (golint)
    • Line 208: warning: exported method ProjectVCSServerLink.Get should have comment or be unexported (golint)
    • Line 217: warning: exported method ProjectVCSServerLink.Set should have comment or be unexported (golint)
    • Line 232: warning: exported type ProjectVCSServerLinkData should have comment or be unexported (golint)
    • cds/sdk/worker_model.go
    • Line 70: warning: exported type Models should have comment or be unexported (golint)
    • Line 72: warning: exported type WorkerModelSecret should have comment or be unexported (golint)
    • Line 80: warning: exported type WorkerModelSecrets should have comment or be unexported (golint)
    • Line 82: warning: exported method WorkerModelSecrets.ToMap should have comment or be unexported (golint)
    • Line 148: warning: exported method Model.IsValidType should have comment or be unexported (golint)
    • cds/sdk/workflow_data.go
    • Line 3: warning: exported type WorkflowData should have comment or be unexported (golint)
    • Line 8: warning: exported method WorkflowData.AncestorsNames should have comment or be unexported (golint)
    • Line 52: warning: exported method WorkflowData.Array should have comment or be unexported (golint)
    • Line 64: warning: exported method WorkflowData.Maps should have comment or be unexported (golint)
    • Line 76: warning: exported method WorkflowData.NodeByRef should have comment or be unexported (golint)
    • Line 93: warning: exported method WorkflowData.NodeByID should have comment or be unexported (golint)
    • Line 109: warning: exported method WorkflowData.NodeByName should have comment or be unexported (golint)
    • cds/engine/database/types.go
    • Line 39: warning: exported type RollingKeyConfig should have comment or be unexported (golint)
    • Line 44: warning: exported type KeyConfig should have comment or be unexported (golint)
    • Line 49: warning: exported method RollingKeyConfig.GetKeys should have comment or be unexported (golint)
    • cds/sdk/log/hook/gelf.go
    • Line 14: warning: comment on exported type CompressType should be of the form "CompressType ..." (with optional leading article) (golint)
    • Line 19: warning: exported const CompressGzip should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported type Writer should have comment or be unexported (golint)
    • Line 47: warning: exported method Message.MarshalJSON should have comment or be unexported (golint)
    • Line 71: warning: exported method Message.UnmarshalJSON should have comment or be unexported (golint)
    • cds/sdk/common.go
    • Line 51: warning: exported type IDNames should have comment or be unexported (golint)
    • Line 53: warning: exported type EntitiesPermissions should have comment or be unexported (golint)
    • Line 55: warning: exported method EntitiesPermissions.Level should have comment or be unexported (golint)
    • Line 66: warning: exported method EntitiesPermissions.Permissions should have comment or be unexported (golint)
    • Line 77: warning: exported method IDNames.IDs should have comment or be unexported (golint)
    • Line 85: warning: exported method IDNames.Names should have comment or be unexported (golint)
    • Line 150: warning: exported function SHA512sum should have comment or be unexported (golint)
    • Line 217: warning: exported method StringSlice.Contains should have comment or be unexported (golint)
    • Line 270: warning: exported function StringIsAscii should have comment or be unexported (golint)
    • Line 279: warning: exported function RemoveNotPrintableChar should have comment or be unexported (golint)
    • Line 306: warning: exported function PathIsAbs should have comment or be unexported (golint)
    • cds/engine/gorpmapper/signature_utils.go
    • Line 13: warning: exported method Mapper.ListSignedEntities should have comment or be unexported (golint)
    • Line 23: warning: exported method Mapper.ListCanonicalFormsByEntity should have comment or be unexported (golint)
    • Line 50: warning: exported method Mapper.ListTuplesByEntity should have comment or be unexported (golint)
    • Line 64: warning: exported method Mapper.ListTupleByCanonicalForm should have comment or be unexported (golint)
    • Line 82: warning: exported method Mapper.RollSignedTupleByPrimaryKey should have comment or be unexported (golint)
    • cds/engine/gorpmapper/types.go
    • Line 12: warning: exported method SignedEntity.GetSignature should have comment or be unexported (golint)
    • Line 16: warning: exported type CanonicalForm should have comment or be unexported (golint)
    • Line 18: warning: exported method CanonicalForm.Bytes should have comment or be unexported (golint)
    • Line 26: warning: exported type CanonicalForms should have comment or be unexported (golint)
    • Line 28: warning: exported method CanonicalForms.Latest should have comment or be unexported (golint)
    • Line 38: warning: exported type TestEncryptedData should have comment or be unexported (golint)
    • Line 46: warning: exported method TestEncryptedData.Canonical should have comment or be unexported (golint)
    • Line 52: warning: exported type SqlExecutorWithTx should have comment or be unexported (golint)
    • cds/sdk/reflect.go
    • Line 12: warning: exported function ValueFromInterface should have comment or be unexported (golint)
    • Line 30: warning: exported function ValidAndNotEmpty should have comment or be unexported (golint)
    • cds/sdk/exportentities/workflow.go
    • Line 27: warning: exported type Options should have comment or be unexported (golint)
    • Line 38: warning: exported type Workflow should have comment or be unexported (golint)
    • Line 44: warning: exported const WorkflowVersion1 should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported type WorkflowVersion should have comment or be unexported (golint)
    • Line 52: warning: exported function UnmarshalWorkflow should have comment or be unexported (golint)
    • Line 74: warning: exported function ParseWorkflow should have comment or be unexported (golint)
    • Line 92: warning: exported function NewWorkflow should have comment or be unexported (golint)
    • Line 100: warning: exported function InitWorkflow should have comment or be unexported (golint)
    • cds/sdk/log/hook/reader.go
    • Line 18: warning: exported type Reader should have comment or be unexported (golint)
    • Line 24: warning: exported method Reader.Addr should have comment or be unexported (golint)
    • Line 28: warning: exported method Reader.Close should have comment or be unexported (golint)
    • Line 56: warning: exported method Reader.ReadMessage should have comment or be unexported (golint)
    • cds/sdk/variable.go
    • Line 9: warning: exported type Secret should have comment or be unexported (golint)
    • Line 24: warning: exported function FromProjectVariables should have comment or be unexported (golint)
    • Line 37: warning: exported function FromAplicationVariables should have comment or be unexported (golint)
    • Line 50: warning: exported function FromEnvironmentVariables should have comment or be unexported (golint)
    • Line 63: warning: exported method Variable.ToApplicationVariable should have comment or be unexported (golint)
    • Line 73: warning: exported type ProjectVariable should have comment or be unexported (golint)
    • Line 81: warning: exported type ApplicationVariable should have comment or be unexported (golint)
    • Line 89: warning: exported type EnvironmentVariable should have comment or be unexported (golint)
    • Line 97: warning: exported method Variable.ToParameter should have comment or be unexported (golint)
    • Line 146: warning: exported var BasicVariableNames should have comment or be unexported (golint)
    • Line 225: warning: exported function EnvVartoENV should have comment or be unexported (golint)
    • cds/engine/api/router.go
    • Line 36: warning: exported var Errors should have comment or be unexported (golint)
    • Line 244: warning: exported method Router.HandlePrefix should have comment or be unexported (golint)
    • cds/engine/authentication/signature.go
    • Line 18: warning: exported type Signer should have comment or be unexported (golint)
    • Line 26: warning: exported type Verifier should have comment or be unexported (golint)
    • Line 32: warning: exported function NewSigner should have comment or be unexported (golint)
    • Line 47: warning: exported function NewVerifier should have comment or be unexported (golint)
    • Line 130: warning: receiver name s should be consistent with previous receiver name v for verifier (golint)
    • cds/sdk/telemetry/telemetry.go
    • Line 22: warning: exported function StatsExporter should have comment or be unexported (golint)
    • Line 31: warning: exported function TraceExporter should have comment or be unexported (golint)
    • Line 40: warning: exported function ContextWithTelemetry should have comment or be unexported (golint)
    • Line 123: warning: exported function ContextWithTag should have comment or be unexported (golint)
    • Line 140: warning: exported function ContextGetTags should have comment or be unexported (golint)
    • Line 158: warning: exported function MustNewKey should have comment or be unexported (golint)
    • cds/sdk/cdn.go
    • Line 17: warning: exported const CDSSessionID should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type CDNItem should have comment or be unexported (golint)
    • Line 35: warning: exported type CDNItemLinks should have comment or be unexported (golint)
    • Line 40: warning: exported method CDNItem.MarshalJSON should have comment or be unexported (golint)
    • Line 53: warning: exported method CDNItem.UnmarshalJSON should have comment or be unexported (golint)
    • Line 84: warning: exported type CDNItemUnit should have comment or be unexported (golint)
    • Line 96: warning: exported type CDNUnit should have comment or be unexported (golint)
    • Line 103: warning: exported type CDNLogsLines should have comment or be unexported (golint)
    • Line 108: warning: exported type CDNLogLinks should have comment or be unexported (golint)
    • Line 114: warning: exported type CDNLogLinkData should have comment or be unexported (golint)
    • Line 119: warning: exported type CDNLogLink should have comment or be unexported (golint)
    • Line 125: warning: exported type CDNMarkDelete should have comment or be unexported (golint)
    • Line 129: warning: exported type CDNApiRef should have comment or be unexported (golint)
    • Line 134: warning: exported type CDNLogAPIRef should have comment or be unexported (golint)
    • Line 153: warning: exported type CDNRunResultAPIRef should have comment or be unexported (golint)
    • Line 166: warning: exported type CDNWorkerCacheAPIRef should have comment or be unexported (golint)
    • Line 172: warning: exported function NewCDNApiRef should have comment or be unexported (golint)
    • Line 184: warning: exported function NewCDNWorkerCacheApiRef should have comment or be unexported (golint)
    • Line 193: warning: exported function NewCDNRunResultApiRef should have comment or be unexported (golint)
    • Line 210: warning: exported function NewCDNLogApiRef should have comment or be unexported (golint)
    • Line 233: warning: exported type CDNItemResume should have comment or be unexported (golint)
    • Line 238: warning: exported method CDNLogAPIRef.ToFilename should have comment or be unexported (golint)
    • Line 258: warning: exported method CDNItem.GetCDNLogApiRef should have comment or be unexported (golint)
    • Line 263: warning: exported method CDNItem.GetCDNRunResultApiRef should have comment or be unexported (golint)
    • Line 268: warning: exported method CDNItem.GetCDNWorkerCacheApiRef should have comment or be unexported (golint)
    • Line 273: warning: exported method CDNWorkerCacheAPIRef.ToHash should have comment or be unexported (golint)
    • Line 286: warning: exported method CDNWorkerCacheAPIRef.ToFilename should have comment or be unexported (golint)
    • Line 290: warning: exported method CDNLogAPIRef.ToHash should have comment or be unexported (golint)
    • Line 298: warning: exported method CDNRunResultAPIRef.ToFilename should have comment or be unexported (golint)
    • Line 302: warning: exported method CDNRunResultAPIRef.ToHash should have comment or be unexported (golint)
    • Line 337: warning: exported type CDNItemType should have comment or be unexported (golint)
    • Line 339: warning: exported method CDNItemType.Validate should have comment or be unexported (golint)
    • Line 347: warning: exported method CDNItemType.IsLog should have comment or be unexported (golint)
    • Line 356: warning: exported const CDNTypeItemStepLog should have comment (or a comment on this block) or be unexported (golint)
    • Line 364: warning: exported type CDNReaderFormat should have comment or be unexported (golint)
    • Line 367: warning: exported const CDNReaderFormatJSON should have comment (or a comment on this block) or be unexported (golint)
    • Line 371: warning: exported type CDNWSEvent should have comment or be unexported (golint)
    • Line 376: warning: exported type CDNStreamFilter should have comment or be unexported (golint)
    • Line 382: warning: exported method CDNStreamFilter.Validate should have comment or be unexported (golint)
    • Line 392: warning: exported type CDNUnitHandlerRequest should have comment or be unexported (golint)
    • cds/engine/api/authentication/builtin/builtin.go
    • Line 24: warning: exported method AuthDriver.GetManifest should have comment or be unexported (golint)
    • Line 31: warning: exported method AuthDriver.GetSessionDuration should have comment or be unexported (golint)
    • Line 35: warning: exported method AuthDriver.GetUserInfo should have comment or be unexported (golint)
    • cds/engine/cdn/cdn.go
    • Line 18: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 43: warning: exported method Service.Init should have comment or be unexported (golint)
    • Line 112: warning: exported method Service.Start should have comment or be unexported (golint)
    • cds/sdk/workflow_run_result.go
    • Line 9: warning: exported const WorkflowRunResultTypeArtifact should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type WorkflowRunResultType should have comment or be unexported (golint)
    • Line 15: warning: exported type WorkflowRunResultDataKey should have comment or be unexported (golint)
    • Line 17: warning: exported type WorkflowRunResult should have comment or be unexported (golint)
    • Line 28: warning: exported method WorkflowRunResult.GetArtifact should have comment or be unexported (golint)
    • Line 36: warning: exported method WorkflowRunResult.GetCoverage should have comment or be unexported (golint)
    • Line 44: warning: exported method WorkflowRunResult.GetArtifactManager should have comment or be unexported (golint)
    • Line 52: warning: exported type WorkflowRunResultCheck should have comment or be unexported (golint)
    • Line 60: warning: exported type WorkflowRunResultArtifactManager should have comment or be unexported (golint)
    • Line 70: warning: exported method WorkflowRunResultArtifactManager.IsValid should have comment or be unexported (golint)
    • Line 86: warning: exported type WorkflowRunResultArtifact should have comment or be unexported (golint)
    • Line 94: warning: exported method WorkflowRunResultArtifact.IsValid should have comment or be unexported (golint)
    • Line 110: warning: exported type WorkflowRunResultCoverage should have comment or be unexported (golint)
    • Line 118: warning: exported method WorkflowRunResultCoverage.IsValid should have comment or be unexported (golint)
    • cds/engine/api/workflow/workflow_run_results.go
    • Line 20: warning: exported var KeyResult should have comment or be unexported (golint)
    • Line 23: warning: exported function GetRunResultKey should have comment or be unexported (golint)
    • Line 27: warning: exported function CanUploadRunResult should have comment or be unexported (golint)
    • Line 124: warning: exported function AddResult should have comment or be unexported (golint)
    • Line 287: warning: exported function LoadRunResultsByRunID should have comment or be unexported (golint)
    • Line 292: warning: exported function LoadRunResultsByNodeRunID should have comment or be unexported (golint)
    • Line 297: warning: exported function LoadRunResultsByRunIDAndType should have comment or be unexported (golint)
    • cds/engine/cdn/storage/nfs/nfs.go
    • Line 22: warning: exported type Buffer should have comment or be unexported (golint)
    • Line 41: warning: exported method Buffer.GetDriverName should have comment or be unexported (golint)
    • Line 45: warning: exported type Reader should have comment or be unexported (golint)
    • Line 52: warning: exported method Reader.Close should have comment or be unexported (golint)
    • Line 77: warning: exported type Writer should have comment or be unexported (golint)
    • Line 84: warning: exported method Writer.Close should have comment or be unexported (golint)
    • Line 109: warning: exported method Buffer.Connect should have comment or be unexported (golint)
    • Line 128: warning: exported method Buffer.Init should have comment or be unexported (golint)
    • Line 152: warning: exported method Buffer.ItemExists should have comment or be unexported (golint)
    • Line 180: warning: exported method Buffer.Status should have comment or be unexported (golint)
    • Line 194: warning: exported method Buffer.Remove should have comment or be unexported (golint)
    • Line 216: warning: exported method Buffer.NewReader should have comment or be unexported (golint)
    • Line 235: warning: exported method Buffer.NewWriter should have comment or be unexported (golint)
    • Line 265: warning: exported method Buffer.Size should have comment or be unexported (golint)
    • Line 269: warning: exported method Buffer.BufferType should have comment or be unexported (golint)
    • cds/engine/service/types.go
    • Line 27: warning: exported type HTTPRouterConfiguration should have comment or be unexported (golint)
    • Line 79: warning: exported method HatcheryCommonConfiguration.Check should have comment or be unexported (golint)
    • cds/engine/cdn/lru/redis.go
    • Line 24: warning: exported type Redis should have comment or be unexported (golint)
    • Line 85: warning: exported method Redis.Card should have comment or be unexported (golint)
    • Line 85: warning: receiver name s should be consistent with previous receiver name r for Redis (golint)
    • cds/engine/api/repositoriesmanager/dao.go
    • Line 45: warning: exported function InsertProjectVCSServerLink should have comment or be unexported (golint)
    • Line 65: warning: exported function UpdateProjectVCSServerLink should have comment or be unexported (golint)
    • Line 90: warning: exported function DeleteProjectVCSServerLink should have comment or be unexported (golint)
    • Line 120: warning: exported function LoadAllProjectVCSServerLinksByProjectID should have comment or be unexported (golint)
    • Line 130: warning: exported function LoadAllProjectVCSServerLinksByProjectKey should have comment or be unexported (golint)
    • Line 140: warning: exported function LoadProjectVCSServerLinkByProjectKeyAndVCSServerName should have comment or be unexported (golint)
    • Line 175: warning: exported function LoadProjectVCSServerLinksData should have comment or be unexported (golint)
    • cds/engine/api/authentication/authentication.go
    • Line 33: warning: exported function GetIssuerName should have comment or be unexported (golint)
    • Line 37: warning: exported function GetSigningKey should have comment or be unexported (golint)
    • Line 41: warning: exported function SignJWT should have comment or be unexported (golint)
    • Line 45: warning: exported function VerifyJWT should have comment or be unexported (golint)
    • Line 49: warning: exported function SignJWS should have comment or be unexported (golint)
    • Line 53: warning: exported function VerifyJWS should have comment or be unexported (golint)
    • cds/engine/featureflipping/dao.go
    • Line 12: warning: exported function LoadAll should have comment or be unexported (golint)
    • Line 21: warning: exported function LoadByName should have comment or be unexported (golint)
    • Line 34: warning: exported function Insert should have comment or be unexported (golint)
    • Line 38: warning: exported function Update should have comment or be unexported (golint)
    • Line 42: warning: exported function Delete should have comment or be unexported (golint)
    • cds/engine/cdn/storage/types.go
    • Line 22: warning: exported function RegisterDriver should have comment or be unexported (golint)
    • Line 28: warning: exported function GetDriver should have comment or be unexported (golint)
    • Line 43: warning: exported type Interface should have comment or be unexported (golint)
    • Line 54: warning: exported type AbstractUnit should have comment or be unexported (golint)
    • Line 62: warning: exported method AbstractUnit.ExistsInDatabase should have comment or be unexported (golint)
    • Line 67: warning: exported method AbstractUnit.CanSync should have comment or be unexported (golint)
    • Line 71: warning: exported method AbstractUnit.Name should have comment or be unexported (golint)
    • Line 75: warning: exported method AbstractUnit.ID should have comment or be unexported (golint)
    • Line 79: warning: exported method AbstractUnit.Set should have comment or be unexported (golint)
    • Line 81: warning: exported method AbstractUnit.New should have comment or be unexported (golint)
    • Line 91: warning: exported method AbstractUnit.SyncItemChannel should have comment or be unexported (golint)
    • Line 93: warning: exported method AbstractUnit.SyncBandwidth should have comment or be unexported (golint)
    • Line 97: warning: exported type Unit should have comment or be unexported (golint)
    • Line 103: warning: exported type BufferUnit should have comment or be unexported (golint)
    • Line 112: warning: exported type LogBufferUnit should have comment or be unexported (golint)
    • Line 120: warning: exported type FileBufferUnit should have comment or be unexported (golint)
    • Line 126: warning: exported type AbstractUnitConfig should have comment or be unexported (golint)
    • Line 132: warning: exported type StorageUnit should have comment or be unexported (golint)
    • Line 142: warning: exported type StorageUnitWithLocator should have comment or be unexported (golint)
    • Line 147: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 157: warning: exported type BufferConfiguration should have comment or be unexported (golint)
    • Line 164: warning: exported type CDNBufferType should have comment or be unexported (golint)
    • Line 167: warning: exported const CDNBufferTypeLog should have comment (or a comment on this block) or be unexported (golint)
    • Line 171: warning: exported type StorageConfiguration should have comment or be unexported (golint)
    • Line 182: warning: exported type LocalStorageConfiguration should have comment or be unexported (golint)
    • Line 187: warning: exported type CDSStorageConfiguration should have comment or be unexported (golint)
    • Line 193: warning: exported type SwiftStorageConfiguration should have comment or be unexported (golint)
    • Line 204: warning: exported type S3StorageConfiguration should have comment or be unexported (golint)
    • Line 220: warning: exported type WebdavStorageConfiguration should have comment or be unexported (golint)
    • Line 228: warning: exported type RedisBufferConfiguration should have comment or be unexported (golint)
    • Line 233: warning: exported type LocalBufferConfiguration should have comment or be unexported (golint)
    • Line 238: warning: exported type NFSBufferConfiguration should have comment or be unexported (golint)
    • Line 246: warning: exported type RunningStorageUnits should have comment or be unexported (golint)
    • Line 255: warning: exported method RunningStorageUnits.HashLocator should have comment or be unexported (golint)
    • Line 261: warning: exported method RunningStorageUnits.FileBuffer should have comment or be unexported (golint)
    • Line 270: warning: exported method RunningStorageUnits.LogsBuffer should have comment or be unexported (golint)
    • Line 279: warning: exported method RunningStorageUnits.GetBuffer should have comment or be unexported (golint)
    • Line 288: warning: exported method RunningStorageUnits.FilterItemUnitReaderByType should have comment or be unexported (golint)
    • Line 309: warning: exported type LogConfig should have comment or be unexported (golint)
    • cds/sdk/database.go
    • Line 16: warning: exported type CanonicalFormUsage should have comment or be unexported (golint)
    • Line 22: warning: exported type CanonicalFormUsageResume should have comment or be unexported (golint)
    • cds/tools/smtpmock/server/store.go
    • Line 17: warning: exported function StoreAddMessage should have comment or be unexported (golint)
    • Line 27: warning: exported function StoreGetMessages should have comment or be unexported (golint)
    • Line 35: warning: exported function StoreGetRecipientMessages should have comment or be unexported (golint)
    • Line 42: warning: exported function StoreCountMessages should have comment or be unexported (golint)
    • Line 46: warning: exported function StoreCountRecipients should have comment or be unexported (golint)
    • Line 50: warning: exported function StoreAddSession should have comment or be unexported (golint)
    • cds/engine/hooks/type_gitlab.go
    • Line 28: warning: exported type GitlabCommit should have comment or be unexported (golint)
    • Line 39: warning: exported type GitlabAuthor should have comment or be unexported (golint)
    • Line 44: warning: exported type GitlabRepository should have comment or be unexported (golint)
    • Line 54: warning: exported type GitlabProject should have comment or be unexported (golint)
    • Line 72: warning: exported method GitlabEvent.GetCommits should have comment or be unexported (golint)
    • cds/engine/api/group/gorp_model.go
    • Line 30: warning: exported method LinkGroupUser.Canonical should have comment or be unexported (golint)
    • Line 67: warning: exported method LinkGroupProject.Canonical should have comment or be unexported (golint)
    • cds/engine/gorpmapper/mapper.go
    • Line 11: warning: exported function New should have comment or be unexported (golint)
    • Line 18: warning: comment on exported type Mapper should be of the form "Mapper ..." (with optional leading article) (golint)
    • Line 41: warning: exported method Mapper.GetTableMapping should have comment or be unexported (golint)
    • Line 52: warning: exported type EncryptedField should have comment or be unexported (golint)
    • cds/sdk/jws/jws.go
    • Line 18: warning: exported function NewRandomSymmetricKey should have comment or be unexported (golint)
    • Line 36: warning: exported function ExportPrivateKey should have comment or be unexported (golint)
    • Line 48: warning: exported function ExportPublicKey should have comment or be unexported (golint)
    • Line 60: warning: exported function NewPublicKeyFromPEM should have comment or be unexported (golint)
    • Line 122: warning: exported function UnsafeParse should have comment or be unexported (golint)
    • cds/sdk/hatchery/types.go
    • Line 17: warning: exported const LabelServiceJobID should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported method SpawnArguments.ModelName should have comment or be unexported (golint)
    • Line 87: warning: exported type InterfaceWithModels should have comment or be unexported (golint)
    • Line 95: warning: exported type Metrics should have comment or be unexported (golint)
    • Line 107: warning: exported type JobIdentifiers should have comment or be unexported (golint)
    • cds/engine/api/workflow/workflow_secrets.go
    • Line 13: warning: exported function RetrieveSecrets should have comment or be unexported (golint)
    • Line 37: warning: exported function LoadApplicationSecrets should have comment or be unexported (golint)
    • Line 85: warning: exported function LoadEnvironmentSecrets should have comment or be unexported (golint)
    • cds/engine/hooks/webhook.go
    • Line 42: 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)
    • cds/engine/api/project/dao_key.go
    • Line 79: warning: exported function LoadKey should have comment or be unexported (golint)
    • Line 139: warning: exported function LoadAllKeysForProjectsWithDecryption should have comment or be unexported (golint)
    • cds/engine/api/migrate/migrate_run_secrets.go
    • Line 20: warning: exported function RunsSecrets should have comment or be unexported (golint)
    • Line 354: warning: comment on exported function LoadLastRunsByDate should be of the form "LoadLastRunsByDate ..." (golint)
    • Line 364: warning: exported function CountSecret should have comment or be unexported (golint)
    • cds/engine/cdn/storage/local/buffer.go
    • Line 17: warning: exported type Buffer should have comment or be unexported (golint)
    • Line 30: warning: exported method Buffer.GetDriverName should have comment or be unexported (golint)
    • Line 34: warning: exported method Buffer.Init should have comment or be unexported (golint)
    • Line 54: warning: exported method Buffer.Size should have comment or be unexported (golint)
    • Line 58: warning: exported method Buffer.BufferType should have comment or be unexported (golint)
    • cds/sdk/parameter.go
    • Line 164: warning: exported function ParametersFromProjectKeys should have comment or be unexported (golint)
    • Line 182: warning: comment on exported function ParametersFromApplicationKeys should be of the form "ParametersFromApplicationKeys ..." (golint)
    • Line 236: warning: exported function EnvironmentVariablesToParameters should have comment or be unexported (golint)
    • Line 250: warning: exported function ApplicationVariablesToParameters should have comment or be unexported (golint)
    • Line 264: warning: exported function ProjectVariablesToParameters should have comment or be unexported (golint)
    • Line 278: warning: exported function VariablesToParameters should have comment or be unexported (golint)
    • cds/engine/vcs/github/types.go
    • Line 55: warning: exported type Webhook should have comment or be unexported (golint)
    • Line 526: warning: exported type GithubOwner should have comment or be unexported (golint)
    • Line 692: warning: exported type Ref should have comment or be unexported (golint)
    • Line 703: warning: exported type UserPermissionResponse should have comment or be unexported (golint)
    • cds/sdk/log.go
    • Line 23: warning: exported type Log should have comment or be unexported (golint)
    • Line 34: warning: exported type ServiceLog should have comment or be unexported (golint)
    • cds/sdk/maintenance.go
    • Line 4: warning: exported const MaintenanceAPIKey should have comment (or a comment on this block) or be unexported (golint)
    • cds/engine/vcs/bitbucketserver/types.go
    • Line 27: warning: exported type Branch should have comment or be unexported (golint)
    • Line 34: warning: exported type BranchResponse should have comment or be unexported (golint)
    • Line 40: warning: exported type Tag should have comment or be unexported (golint)
    • Line 49: warning: exported type TagResponse should have comment or be unexported (golint)
    • Line 55: warning: exported type Author should have comment or be unexported (golint)
    • Line 62: warning: exported type CommitsResponse should have comment or be unexported (golint)
    • Line 69: warning: exported type Commit should have comment or be unexported (golint)
    • Line 76: warning: exported type Status should have comment or be unexported (golint)
    • Line 85: warning: exported type Lines should have comment or be unexported (golint)
    • Line 89: warning: exported type Content should have comment or be unexported (golint)
    • Line 93: warning: exported type HookDetail should have comment or be unexported (golint)
    • Line 102: warning: exported type Hook should have comment or be unexported (golint)
    • Line 107: warning: exported type Key should have comment or be unexported (golint)
    • Line 113: warning: exported type Keys should have comment or be unexported (golint)
    • Line 117: warning: exported type Response should have comment or be unexported (golint)
    • Line 124: warning: exported type ResponseStatus should have comment or be unexported (golint)
    • Line 131: warning: exported type Repo should have comment or be unexported (golint)
    • Line 141: warning: exported type Links should have comment or be unexported (golint)
    • Line 146: warning: exported type Clone should have comment or be unexported (golint)
    • Line 151: warning: exported type Link should have comment or be unexported (golint)
    • Line 156: warning: exported type UsersResponse should have comment or be unexported (golint)
    • Line 163: warning: exported type PullRequestResponse should have comment or be unexported (golint)
    • Line 170: warning: exported type UsersPermissionResponse should have comment or be unexported (golint)
    • Line 177: warning: exported type UserPermission should have comment or be unexported (golint)
    • cds/sdk/repositories_manager.go
    • Line 101: warning: exported type VCSPullRequestOptions should have comment or be unexported (golint)
    • Line 106: warning: exported const VCSPullRequestStateAll should have comment (or a comment on this block) or be unexported (golint)
    • Line 112: warning: exported type VCSPullRequestState should have comment or be unexported (golint)
    • Line 114: warning: exported method VCSPullRequestState.IsValid should have comment or be unexported (golint)
    • Line 122: warning: exported type VCSPullRequestCommentRequest should have comment or be unexported (golint)
    • cds/engine/cdn/storage/webdav/webdav.go
    • Line 20: warning: exported type Webdav should have comment or be unexported (golint)
    • Line 37: warning: exported method Webdav.GetDriverName should have comment or be unexported (golint)
    • Line 41: warning: exported method Webdav.Init should have comment or be unexported (golint)
    • Line 64: warning: exported method Webdav.ItemExists should have comment or be unexported (golint)
    • Line 80: warning: exported method Webdav.NewWriter should have comment or be unexported (golint)
    • Line 96: warning: exported method Webdav.NewReader should have comment or be unexported (golint)
    • Line 104: warning: exported method Webdav.Status should have comment or be unexported (golint)
    • Line 116: warning: exported method Webdav.Remove should have comment or be unexported (golint)
    • cds/engine/worker/internal/types.go
    • Line 29: warning: comment on exported const CDSApiUrl should be of the form "CDSApiUrl ..." (golint)
    • Line 38: warning: exported type CurrentWorker should have comment or be unexported (golint)
    • Line 79: warning: exported method CurrentWorker.Init should have comment or be unexported (golint)
    • Line 89: warning: exported method CurrentWorker.GetJobIdentifiers should have comment or be unexported (golint)
    • Line 93: warning: exported method CurrentWorker.GetContext should have comment or be unexported (golint)
    • Line 97: warning: exported method CurrentWorker.SetContext should have comment or be unexported (golint)
    • Line 101: warning: exported method CurrentWorker.SetGelfLogger should have comment or be unexported (golint)
    • Line 107: warning: exported method CurrentWorker.Parameters should have comment or be unexported (golint)
    • Line 111: warning: exported method CurrentWorker.FeatureEnabled should have comment or be unexported (golint)
    • Line 119: warning: exported method CurrentWorker.SendTerminatedStepLog should have comment or be unexported (golint)
    • Line 133: warning: exported method CurrentWorker.WorkerCacheSignature should have comment or be unexported (golint)
    • Line 146: warning: exported method CurrentWorker.GetPlugin should have comment or be unexported (golint)
    • Line 155: warning: exported method CurrentWorker.RunResultSignature should have comment or be unexported (golint)
    • Line 179: warning: exported method CurrentWorker.SendLog should have comment or be unexported (golint)
    • Line 193: warning: exported method CurrentWorker.CDNHttpURL should have comment or be unexported (golint)
    • Line 250: warning: exported method CurrentWorker.Name should have comment or be unexported (golint)
    • Line 254: warning: exported method CurrentWorker.Client should have comment or be unexported (golint)
    • Line 258: warning: exported method CurrentWorker.BaseDir should have comment or be unexported (golint)
    • Line 262: warning: exported method CurrentWorker.Environ should have comment or be unexported (golint)
    • Line 309: warning: exported method CurrentWorker.Blur should have comment or be unexported (golint)
    • Line 309: warning: receiver name w should be consistent with previous receiver name wk for CurrentWorker (golint)
    • Line 329: warning: exported method CurrentWorker.HTTPPort should have comment or be unexported (golint)
    • Line 329: warning: receiver name w should be consistent with previous receiver name wk for CurrentWorker (golint)
    • cds/sdk/integration.go
    • Line 197: warning: exported const IntegrationTypeEvent should have comment (or a comment on this block) or be unexported (golint)
    • Line 215: warning: exported method IntegrationConfig.Blur should have comment or be unexported (golint)
    • Line 294: warning: exported const IntegrationVariablePrefixDeployment should have comment (or a comment on this block) or be unexported (golint)
    • Line 305: warning: exported type IntegrationConfigMap should have comment or be unexported (golint)
    • Line 307: warning: exported method IntegrationConfigMap.Clone should have comment or be unexported (golint)
    • Line 315: warning: exported function GetIntegrationVariablePrefix should have comment or be unexported (golint)
    • Line 325: warning: exported function AllowIntegrationInVariable should have comment or be unexported (golint)
    • Line 329: warning: exported method IntegrationConfigMap.Blur should have comment or be unexported (golint)
    • Line 373: warning: exported method IntegrationModel.Blur should have comment or be unexported (golint)
    • Line 432: warning: exported type FileInfo should have comment or be unexported (golint)
    • cds/sdk/workflow_template.go
    • Line 194: warning: exported method WorkflowTemplate.Path should have comment or be unexported (golint)
    • Line 198: warning: exported method WorkflowTemplate.PathWithVersion should have comment or be unexported (golint)
    • cds/engine/cache/redis.go
    • Line 77: warning: comment on exported method RedisStore.DBSize should be of the form "DBSize ..." (golint)
    • Line 86: warning: exported method RedisStore.Ping should have comment or be unexported (golint)
    • Line 97: warning: exported method RedisStore.Keys should have comment or be unexported (golint)
    • Line 291: warning: comment on exported method RedisStore.DequeueJSONRawMessagesWithContext should be of the form "DequeueJSONRawMessagesWithContext ..." (golint)
    • Line 451: warning: exported method RedisStore.SetSearch should have comment or be unexported (golint)
    • Line 460: warning: exported method RedisStore.Lock should have comment or be unexported (golint)
    • Line 484: warning: exported method RedisStore.Size should have comment or be unexported (golint)
    • Line 489: warning: exported method RedisStore.ScoredSetGetScore should have comment or be unexported (golint)
    • Line 498: warning: exported method RedisStore.ScoredSetAppend should have comment or be unexported (golint)
    • Line 514: warning: exported method RedisStore.ScoredSetAdd should have comment or be unexported (golint)
    • Line 530: warning: exported const MIN should have comment (or a comment on this block) or be unexported (golint)
    • Line 534: warning: exported method RedisStore.ScoredSetRem should have comment or be unexported (golint)
    • Line 539: warning: exported method RedisStore.ScoredSetRange should have comment or be unexported (golint)
    • Line 567: warning: exported method RedisStore.ScoredSetRevRange should have comment or be unexported (golint)
    • Line 596: warning: exported method RedisStore.ScoredSetScan should have comment or be unexported (golint)
    • Line 637: warning: exported method RedisStore.ScoredSetScanWithScores should have comment or be unexported (golint)
    • Line 668: warning: exported type RedisPubSub should have comment or be unexported (golint)
    • Line 672: warning: exported method RedisPubSub.GetMessage should have comment or be unexported (golint)
    • Line 695: warning: exported method RedisStore.ScoredSetScanMaxScore should have comment or be unexported (golint)
    • Line 721: warning: exported method RedisStore.Eval should have comment or be unexported (golint)
    • cds/engine/cdn/storage/encryption/encryption.go
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 21: warning: exported function NewNoConvergentEncryption should have comment or be unexported (golint)
    • Line 28: warning: exported type ConvergentEncryption should have comment or be unexported (golint)
    • Line 34: warning: exported type NoConvergentEncryption should have comment or be unexported (golint)
    • cds/sdk/error.go
    • Line 440: warning: exported method Error.Translate should have comment or be unexported (golint)
    • Line 503: warning: exported function ContextWithStacktrace should have comment or be unexported (golint)
    • cds/engine/api/database/gorpmapping/dao.go
    • Line 16: warning: exported function UpdateColumns should have comment or be unexported (golint)
    • Line 45: warning: exported type GetOptionFunc should have comment or be unexported (golint)
    • Line 47: warning: exported var GetOptions should have comment or be unexported (golint)
    • cds/engine/api/event/publish.go
    • Line 13: warning: exported const DefaultPubSubKey should have comment or be unexported (golint)
    • Line 17: warning: exported function OverridePubSubKey should have comment or be unexported (golint)
    • Line 21: warning: exported type Store should have comment or be unexported (golint)
    • cds/sdk/exportentities/template.go
    • Line 179: warning: comment on exported function ReadTemplateFromTar should be of the form "ReadTemplateFromTar ..." (golint)
    • Line 243: warning: exported type TemplateInstance should have comment or be unexported (golint)
    • Line 249: warning: exported method TemplateInstance.ParseFrom should have comment or be unexported (golint)
    • cds/sdk/log/hook/hook.go
    • Line 19: warning: exported type Priority should have comment or be unexported (golint)
    • Line 24: warning: comment on exported const LOG_EMERG should be of the form "LOG_EMERG ..." (golint)
    • Line 27: warning: exported const LOG_ALERT should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: comment on exported var BufSize should be of the form "BufSize ..." (golint)
    • Line 170: warning: exported method Hook.Stop should have comment or be unexported (golint)
    • Line 191: warning: exported type FireMessageFunc should have comment or be unexported (golint)
    • Line 193: warning: exported method Hook.IsThrottled should have comment or be unexported (golint)
    • Line 197: warning: exported method Hook.FireMessage should have comment or be unexported (golint)
    • Line 207: warning: exported method Hook.Flush should have comment or be unexported (golint)
    • cds/engine/cdn/storage/swift/swift.go
    • Line 20: warning: exported type Swift should have comment or be unexported (golint)
    • Line 37: warning: exported method Swift.GetDriverName should have comment or be unexported (golint)
    • Line 41: warning: exported method Swift.Init should have comment or be unexported (golint)
    • Line 59: warning: exported method Swift.ItemExists should have comment or be unexported (golint)
    • Line 78: warning: exported method Swift.NewWriter should have comment or be unexported (golint)
    • Line 93: warning: exported method Swift.NewReader should have comment or be unexported (golint)
    • Line 132: warning: exported method Swift.Remove should have comment or be unexported (golint)
    • cds/engine/worker/pkg/workerruntime/types.go
    • Line 15: warning: exported type DownloadArtifact should have comment or be unexported (golint)
    • Line 23: warning: exported type UploadArtifact should have comment or be unexported (golint)
    • Line 29: warning: exported type FilePath should have comment or be unexported (golint)
    • Line 33: warning: exported type KeyResponse should have comment or be unexported (golint)
    • Line 39: warning: exported type TmplPath should have comment or be unexported (golint)
    • Line 44: warning: exported type CDSVersionSet should have comment or be unexported (golint)
    • Line 48: warning: exported type Level should have comment or be unexported (golint)
    • Line 51: warning: exported const LevelDebug should have comment (or a comment on this block) or be unexported (golint)
    • Line 70: warning: exported type Runtime should have comment or be unexported (golint)
    • Line 93: warning: exported function JobID should have comment or be unexported (golint)
    • Line 102: warning: exported function SetJobID should have comment or be unexported (golint)
    • Line 106: warning: exported function StepOrder should have comment or be unexported (golint)
    • Line 115: warning: exported function SetStepOrder should have comment or be unexported (golint)
    • Line 119: warning: exported function StepName should have comment or be unexported (golint)
    • Line 128: warning: exported function SetStepName should have comment or be unexported (golint)
    • Line 132: warning: exported function WorkingDirectory should have comment or be unexported (golint)
    • Line 142: warning: exported function SetWorkingDirectory should have comment or be unexported (golint)
    • Line 147: warning: exported function KeysDirectory should have comment or be unexported (golint)
    • Line 157: warning: exported function SetKeysDirectory should have comment or be unexported (golint)
    • Line 162: warning: exported function TmpDirectory should have comment or be unexported (golint)
    • Line 172: warning: exported function SetTmpDirectory should have comment or be unexported (golint)
    • cds/engine/websocket/client.go
    • Line 16: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 24: warning: exported type Client should have comment or be unexported (golint)
    • Line 32: warning: exported type CommonClient should have comment or be unexported (golint)
    • Line 40: warning: exported method CommonClient.UUID should have comment or be unexported (golint)
    • Line 42: warning: exported method CommonClient.OnMessage should have comment or be unexported (golint)
    • Line 44: warning: exported method CommonClient.Send should have comment or be unexported (golint)
    • Line 72: warning: exported method CommonClient.Close should have comment or be unexported (golint)
    • Line 74: warning: exported method CommonClient.Listen should have comment or be unexported (golint)
    • cds/sdk/cdsclient/interface.go
    • Line 21: warning: exported type Filter should have comment or be unexported (golint)
    • Line 306: warning: exported type CDNClient should have comment or be unexported (golint)
    • Line 420: warning: exported type WorkerInterface should have comment or be unexported (golint)
    • Line 463: warning: comment on exported type ProviderClient should be of the form "ProviderClient ..." (with optional leading article) (golint)
    • Line 555: warning: exported function Format should have comment or be unexported (golint)
    • Line 563: warning: exported function Force should have comment or be unexported (golint)
    • Line 571: warning: exported function ContentType should have comment or be unexported (golint)
    • Line 596: warning: exported type WebsocketClient should have comment or be unexported (golint)
    • cds/sdk/vcs.go
    • Line 19: warning: exported var BitbucketEvents should have comment or be unexported (golint)
    • Line 190: warning: exported type VCSServerCommon should have comment or be unexported (golint)
    • Line 201: warning: exported type VCSServerService should have comment or be unexported (golint)
    • Line 260: warning: exported type VCSAuthorizedClient should have comment or be unexported (golint)
    • Line 265: warning: exported type VCSAuthorizedClientService should have comment or be unexported (golint)
    • Line 270: warning: exported type VCSRequestModifier should have comment or be unexported (golint)
    • Line 272: warning: exported function VCSRequestModifierWithState should have comment or be unexported (golint)
    • cds/engine/service/metrics.go
    • Line 24: warning: exported type NamedService should have comment or be unexported (golint)
    • Line 42: warning: exported function GetMetricsHandler should have comment or be unexported (golint)
    • Line 52: warning: exported method Common.CommonMetricsHandler should have comment or be unexported (golint)
    • Line 100: warning: exported method Common.RegisterCommonMetricsView should have comment or be unexported (golint)
    • Line 220: warning: exported function GetMetricHandler should have comment or be unexported (golint)
    • cds/engine/api/purge/purge_run.go
    • Line 24: warning: exported type MarkAsDeleteOptions should have comment or be unexported (golint)
    • Line 29: warning: exported const RunStatus should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported function GetRetentionPolicyVariables should have comment or be unexported (golint)
    • Line 63: warning: exported function ApplyRetentionPolicyOnWorkflow should have comment or be unexported (golint)
    • cds/engine/api/services/cdn.go
    • Line 11: warning: exported function GetCDNPublicTCPAdress should have comment or be unexported (golint)
    • Line 17: warning: don't use underscores in Go names; var tcp_addr should be tcpAddr (golint)
    • Line 18: warning: don't use underscores in Go names; var tcp_tls should be tcpTLS (golint)
    • Line 36: warning: exported function GetCDNPublicHTTPAdress should have comment or be unexported (golint)
    • cds/engine/cdn/storage/dao.go
    • Line 16: warning: exported type ItemToSync should have comment or be unexported (golint)
    • Line 68: warning: exported type LoadUnitOptionFunc should have comment or be unexported (golint)
    • Line 112: warning: exported function InsertItemUnit should have comment or be unexported (golint)
    • Line 123: warning: exported function MarkItemUnitToDelete should have comment or be unexported (golint)
    • Line 132: warning: exported function DeleteItemUnit should have comment or be unexported (golint)
    • Line 140: warning: exported function LoadAllSynchronizedItemIDs should have comment or be unexported (golint)
    • Line 160: warning: exported function LoadItemUnitByUnit should have comment or be unexported (golint)
    • Line 165: warning: exported function LoadItemUnitsByUnit should have comment or be unexported (golint)
    • Line 170: warning: exported function HasItemUnitsByUnitAndHashLocator should have comment or be unexported (golint)
    • Line 177: warning: exported function LoadItemUnitByID should have comment or be unexported (golint)
    • Line 209: warning: exported function CountItemUnitsToDeleteByItemID should have comment or be unexported (golint)
    • Line 215: warning: exported function LoadAllItemUnitsToDeleteByUnit should have comment or be unexported (golint)
    • Line 220: warning: exported function LoadAllItemUnitsIDsByItemIDsAndUnitID should have comment or be unexported (golint)
    • Line 229: warning: exported function LoadAllItemUnitsIDsByItemID should have comment or be unexported (golint)
    • Line 238: warning: exported function LoadAllItemUnitsIDsByUnitID should have comment or be unexported (golint)
    • Line 247: warning: exported function LoadAllItemUnitsByItemIDs should have comment or be unexported (golint)
    • Line 303: warning: exported function LoadAllItemIDUnknownByUnit should have comment or be unexported (golint)
    • Line 328: warning: exported type Stat should have comment or be unexported (golint)
    • Line 334: warning: exported function CountItemsForUnit should have comment or be unexported (golint)
    • Line 341: warning: exported function CountItemsForUnitByType should have comment or be unexported (golint)
    • Line 349: warning: exported function CountItemUnitToDelete should have comment or be unexported (golint)
    • Line 358: warning: exported function DeleteUnit should have comment or be unexported (golint)
    • cds/engine/gorpmapper/encryption.go
    • Line 16: warning: exported const KeyEcnryptionIdentifier should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported method Mapper.Encrypt should have comment or be unexported (golint)
    • Line 41: warning: exported method Mapper.Decrypt should have comment or be unexported (golint)
    • cds/sdk/log/hook/stack.go
    • Line 44: warning: exported method Stack.Ready should have comment or be unexported (golint)
    • Line 51: warning: exported method Stack.Empty should have comment or be unexported (golint)
    • cds/tools/smtpmock/server/auth.go
    • Line 18: warning: exported type Claims should have comment or be unexported (golint)
    • Line 23: warning: exported function NewSigninToken should have comment or be unexported (golint)
    • Line 43: warning: exported function CheckSigninToken should have comment or be unexported (golint)
    • Line 56: warning: exported function NewSessionToken should have comment or be unexported (golint)
    • Line 78: warning: exported function CheckSessionToken should have comment or be unexported (golint)
    • cds/sdk/services.go
    • Line 23: warning: exported type CanonicalService should have comment or be unexported (golint)
    • Line 61: warning: exported type ServiceConfig should have comment or be unexported (golint)
    • Line 95: warning: exported type CDNConfig should have comment or be unexported (golint)
    • cds/sdk/workflow_hook.go
    • Line 32: warning: exported method NodeHook.IsRepositoryWebHook should have comment or be unexported (golint)
    • Line 36: warning: exported method NodeHook.GetConfigValue should have comment or be unexported (golint)
    • Line 44: warning: exported method NodeHook.Ref should have comment or be unexported (golint)
    • Line 61: warning: exported method NodeHook.ConfigValueContainsEventsDefault should have comment or be unexported (golint)
    • Line 178: warning: exported method WorkflowNodeHookConfig.Equals should have comment or be unexported (golint)
    • Line 191: warning: exported method WorkflowNodeHookConfig.MergeWith should have comment or be unexported (golint)
    • Line 197: warning: exported method WorkflowNodeHookConfig.Filter should have comment or be unexported (golint)
    • Line 228: warning: receiver name cfg should be consistent with previous receiver name w for WorkflowNodeHookConfig (golint)
    • Line 239: warning: receiver name cfg should be consistent with previous receiver name w for WorkflowNodeHookConfig (golint)
    • cds/sdk/purge.go
    • Line 3: warning: exported type PurgeDryRunRequest should have comment or be unexported (golint)
    • Line 7: warning: exported type PurgeDryRunResponse should have comment or be unexported (golint)
    • Line 11: warning: exported type WorkflowRunToKeep should have comment or be unexported (golint)
    • Line 17: warning: exported type UpdateMaxRunRequest should have comment or be unexported (golint)
    • cds/engine/api/services/http.go
    • Line 42: warning: exported type Client should have comment or be unexported (golint)
    • Line 54: warning: exported var NewClient should have comment or be unexported (golint)
    • Line 56: warning: exported function NewDefaultClient should have comment or be unexported (golint)
    • Line 197: warning: comment on exported function PostBinary should be of the form "PostBinary ..." (golint)
    • cds/engine/hooks/type_github.go
    • Line 28: warning: exported type GithubSender should have comment or be unexported (golint)
    • Line 48: warning: exported type GithubCommit should have comment or be unexported (golint)
    • Line 62: warning: exported type GithubAuthor should have comment or be unexported (golint)
    • Line 68: warning: exported type GithubOwner should have comment or be unexported (golint)
    • Line 73: warning: exported type GithubRepository should have comment or be unexported (golint)
    • Line 145: warning: exported method GithubWebHookEvent.GetCommits should have comment or be unexported (golint)
    • Line 164: warning: exported type GithubDate should have comment or be unexported (golint)
    • Line 166: warning: exported method GithubDate.UnmarshalJSON should have comment or be unexported (golint)
    • cds/sdk/cdsclient/client.go
    • Line 32: warning: exported function NewWebsocketDialer should have comment or be unexported (golint)
    • Line 198: warning: exported type Error should have comment or be unexported (golint)
    • Line 204: warning: exported method Error.Cause should have comment or be unexported (golint)
    • Line 237: warning: exported method Error.StackTrace should have comment or be unexported (golint)
    • cds/engine/api/api.go
    • Line 226: warning: exported method API.Init should have comment or be unexported (golint)
    • Line 368: warning: exported type StartupConfigConsumerType should have comment or be unexported (golint)
    • Line 371: warning: exported const StartupConfigConsumerTypeUI should have comment (or a comment on this block) or be unexported (golint)
    • Line 382: warning: exported type StartupConfig should have comment or be unexported (golint)
    • Line 387: warning: exported type StartupConfigConsumer should have comment or be unexported (golint)
    • cds/engine/service/http.go
    • Line 107: warning: exported type ErrorResponse should have comment or be unexported (golint)
    • Line 169: warning: exported function CheckRequestSignatureMiddleware should have comment or be unexported (golint)
    • cds/sdk/grpcplugin/grpcplugin.go
    • Line 98: warning: exported type Common should have comment or be unexported (golint)
    • Line 105: warning: exported method Common.Instance should have comment or be unexported (golint)
    • Line 109: warning: exported method Common.Start should have comment or be unexported (golint)
    • Line 168: warning: exported method Common.Stop should have comment or be unexported (golint)
    • cds/engine/cache/cache.go
    • Line 44: warning: exported type HealthStore should have comment or be unexported (golint)
    • Line 51: warning: exported type QueueStore should have comment or be unexported (golint)
    • Line 59: warning: exported type SetStore should have comment or be unexported (golint)
    • Line 67: warning: exported type PubSubStore should have comment or be unexported (golint)
    • Line 72: warning: exported type LockStore should have comment or be unexported (golint)
    • Line 77: warning: exported type ScoredSetStore should have comment or be unexported (golint)
    • Line 93: warning: exported type SetValueWithScore should have comment or be unexported (golint)
    • cds/engine/hatchery/serve.go
    • Line 28: warning: exported type Common should have comment or be unexported (golint)
    • Line 35: warning: exported method Common.Service should have comment or be unexported (golint)
    • Line 39: warning: exported method Common.ServiceName should have comment or be unexported (golint)
    • Line 113: warning: exported method Common.GetPrivateKey should have comment or be unexported (golint)
    • Line 117: warning: exported method Common.RefreshServiceLogger should have comment or be unexported (golint)
    • Line 175: warning: exported method Common.SendServiceLog should have comment or be unexported (golint)
    • Line 253: warning: exported method Common.GenerateWorkerArgs should have comment or be unexported (golint)
    • cds/sdk/exportentities/v2/workflow.go
    • Line 17: warning: exported const IntegrationArtifactManager should have comment (or a comment on this block) or be unexported (golint)
    • Line 69: warning: exported type ConditionEntry should have comment or be unexported (golint)
    • Line 74: warning: comment on exported type PlainConditionEntry should be of the form "PlainConditionEntry ..." (with optional leading article) (golint)
    • Line 88: warning: exported method HookEntry.IsDefault should have comment or be unexported (golint)
    • Line 114: warning: exported type ExportOptions should have comment or be unexported (golint)
    • Line 396: warning: exported method Workflow.GetName should have comment or be unexported (golint)
    • Line 400: warning: exported method Workflow.GetVersion should have comment or be unexported (golint)
    • Line 501: warning: exported method Workflow.CheckValidity should have comment or be unexported (golint)
    • Line 524: warning: exported method Workflow.CheckDependencies should have comment or be unexported (golint)
    • cds/sdk/log/fields.go
    • Line 10: warning: comment on exported const AuthUserID should be of the form "AuthUserID ..." (golint)
    • Line 12: warning: exported const AuthUsername should have comment (or a comment on this block) or be unexported (golint)
    • Line 70: warning: exported function ContextValue should have comment or be unexported (golint)
    • cds/sdk/download.go
    • Line 17: warning: exported type DownloadableResource should have comment or be unexported (golint)
    • Line 33: warning: exported function AllDownloadableResources should have comment or be unexported (golint)
    • cds/sdk/workflow.go
    • Line 23: warning: exported type WorkflowName should have comment or be unexported (golint)
    • Line 73: warning: exported method Workflow.Value should have comment or be unexported (golint)
    • Line 78: warning: exported method Workflow.Scan should have comment or be unexported (golint)
    • Line 89: warning: exported type PurgeTags should have comment or be unexported (golint)
    • Line 127: warning: exported type Workflows should have comment or be unexported (golint)
    • Line 129: warning: exported method Workflows.IDs should have comment or be unexported (golint)
    • Line 137: warning: exported method Workflows.Names should have comment or be unexported (golint)
    • Line 145: warning: exported method Workflows.Filter should have comment or be unexported (golint)
    • Line 155: warning: exported method Workflow.InitMaps should have comment or be unexported (golint)
    • Line 231: warning: comment on exported method Workflow.VisitNode should be of the form "VisitNode ..." (golint)
    • Line 242: warning: comment on exported method Workflow.SortNode should be of the form "SortNode ..." (golint)
    • Line 254: warning: comment on exported method Workflow.Normalize should be of the form "Normalize ..." (golint)
    • Line 375: warning: exported method Workflow.GetEventIntegration should have comment or be unexported (golint)
    • Line 485: warning: exported type WorkflowProjectIntegration should have comment or be unexported (golint)
    • Line 493: warning: exported method WorkflowProjectIntegration.MergeWithModel should have comment or be unexported (golint)
    • cds/engine/api/objectstore/awss3.go
    • Line 84: warning: exported method AWSS3Store.TemporaryURLSupported should have comment or be unexported (golint)
    • Line 88: warning: exported method AWSS3Store.GetProjectIntegration should have comment or be unexported (golint)
    • Line 92: warning: exported method AWSS3Store.Status should have comment or be unexported (golint)
    • Line 104: warning: exported method AWSS3Store.Store should have comment or be unexported (golint)
    • Line 148: warning: exported method AWSS3Store.Fetch should have comment or be unexported (golint)
    • cds/engine/cdn/types.go
    • Line 97: warning: exported function NewRateLimiter should have comment or be unexported (golint)
    • Line 109: warning: exported type SizeWriter should have comment or be unexported (golint)
    • cds/sdk/luascript/luascript.go
    • Line 17: warning: exported type Check should have comment or be unexported (golint)
    • Line 75: warning: exported method Check.SetVariables should have comment or be unexported (golint)
    • Line 83: warning: exported method Check.SetFloatVariables should have comment or be unexported (golint)
    • Line 91: warning: exported method Check.EnableStrict should have comment or be unexported (golint)
    • cds/sdk/bitbucket_server.go
    • Line 3: warning: exported type BitbucketServerPullRequest should have comment or be unexported (golint)
    • Line 33: warning: exported type PullRequestProperties should have comment or be unexported (golint)
    • Line 37: warning: exported type MergeCommitProperty should have comment or be unexported (golint)
    • Line 42: warning: exported type BitbucketServerParticipant should have comment or be unexported (golint)
    • Line 50: warning: exported type BitbucketServerRef should have comment or be unexported (golint)
    • Line 57: warning: exported type BitbucketServerAuthor should have comment or be unexported (golint)
    • Line 64: warning: exported type BitbucketServerRepository should have comment or be unexported (golint)
    • Line 76: warning: exported type BitbucketServerProject should have comment or be unexported (golint)
    • Line 84: warning: exported type BitbucketServerActor should have comment or be unexported (golint)
    • Line 94: warning: exported type BitbucketServerChange should have comment or be unexported (golint)
    • Line 102: warning: exported type BitbucketServerPreviousTarget should have comment or be unexported (golint)
    • Line 110: warning: exported type BitbucketServerComment should have comment or be unexported (golint)
    • Line 122: warning: exported type BitbucketServerProperties should have comment or be unexported (golint)
    • cds/sdk/group.go
    • Line 74: warning: exported type GroupMembers should have comment or be unexported (golint)
    • Line 76: warning: exported method GroupMembers.UserIDs should have comment or be unexported (golint)
    • cds/sdk/user.go
    • Line 18: warning: exported type Identifiable should have comment or be unexported (golint)
    • Line 27: warning: exported type UserRegistration should have comment or be unexported (golint)
    • Line 36: warning: exported var UsernameRegex should have comment or be unexported (golint)
    • Line 93: warning: exported method AuthentifiedUser.GetUsername should have comment or be unexported (golint)
    • Line 107: warning: exported method AuthentifiedUser.GetFullname should have comment or be unexported (golint)
    • Line 114: warning: exported method AuthentifiedUsers.IDs should have comment or be unexported (golint)
    • Line 151: warning: exported const UserContactTypeEmail should have comment or be unexported (golint)
    • Line 153: warning: exported type UserContacts should have comment or be unexported (golint)
    • Line 155: warning: exported method UserContacts.Filter should have comment or be unexported (golint)
    • Line 165: warning: exported method UserContacts.Find should have comment or be unexported (golint)
    • Line 174: warning: exported method UserContacts.Primary should have comment or be unexported (golint)
    • Line 189: warning: exported type UserResponse should have comment or be unexported (golint)
    • Line 194: warning: exported type UserResetRequest should have comment or be unexported (golint)
    • cds/engine/api/authentication/ldap/ldap.go
    • Line 23: warning: exported type AuthDriver should have comment or be unexported (golint)
    • Line 56: warning: exported method AuthDriver.GetManifest should have comment or be unexported (golint)
    • Line 63: warning: exported method AuthDriver.GetSessionDuration should have comment or be unexported (golint)
    • Line 67: warning: exported method AuthDriver.CheckSigninRequest should have comment or be unexported (golint)
    • Line 77: warning: exported method AuthDriver.GetUserInfo should have comment or be unexported (golint)
    • cds/sdk/cdn/signature.go
    • Line 3: warning: exported type Signature should have comment or be unexported (golint)
    • Line 18: warning: exported type SignatureWorker should have comment or be unexported (golint)
    • Line 29: warning: exported type SignatureService should have comment or be unexported (golint)
    • cds/sdk/repositories_operation.go
    • Line 31: warning: exported type OperationError should have comment or be unexported (golint)
    • Line 39: warning: exported function ToOperationError should have comment or be unexported (golint)
    • Line 53: warning: exported method OperationError.ToError should have comment or be unexported (golint)
    • cds/sdk/hash.go
    • Line 8: warning: exported function GenerateHash should have comment or be unexported (golint)
    • cds/engine/cdn/storage/storage_unit_io.go
    • Line 21: warning: exported type Source should have comment or be unexported (golint)
    • Line 53: warning: exported method RunningStorageUnits.GetSource should have comment or be unexported (golint)
    • Line 105: warning: exported method RunningStorageUnits.NewSource should have comment or be unexported (golint)
    • Line 126: warning: exported method RunningStorageUnits.GetItemUnitByLocatorByUnit should have comment or be unexported (golint)
    • cds/engine/hooks/type_bitbucket_cloud.go
    • Line 5: warning: comment on exported type BitbucketCloudWebHookEvent should be of the form "BitbucketCloudWebHookEvent ..." (with optional leading article) (golint)
    • Line 14: warning: exported type BitbucketCloudChange should have comment or be unexported (golint)
    • Line 258: warning: exported type BitbucketCloudRepository should have comment or be unexported (golint)
    • Line 270: warning: exported type BitbucketCloudLink should have comment or be unexported (golint)
    • Line 282: warning: exported type BitbucketCloudActor should have comment or be unexported (golint)
    • cds/engine/cdn/storage/local/local.go
    • Line 20: warning: exported type AbstractLocal should have comment or be unexported (golint)
    • Line 27: warning: exported type Local should have comment or be unexported (golint)
    • Line 39: warning: exported method Local.GetDriverName should have comment or be unexported (golint)
    • Line 43: warning: exported method Local.Init should have comment or be unexported (golint)
    • Line 77: warning: exported method AbstractLocal.ItemExists should have comment or be unexported (golint)
    • Line 96: warning: exported method AbstractLocal.NewWriter should have comment or be unexported (golint)
    • Line 106: warning: exported method AbstractLocal.NewReader should have comment or be unexported (golint)
    • Line 117: warning: exported method AbstractLocal.Status should have comment or be unexported (golint)
    • Line 182: warning: exported method AbstractLocal.Remove should have comment or be unexported (golint)

gocyclo84%

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.

    • cds/cli/cdsctl/workflow_init.go
    • Line 455: warning: cyclomatic complexity 35 of function workflowInitRun() is high (> 15) (gocyclo)
    • Line 288: warning: cyclomatic complexity 25 of function craftApplicationFile() is high (> 15) (gocyclo)
    • cds/engine/api/workflow_queue_storage.go
    • Line 124: warning: cyclomatic complexity 23 of function (*API).postWorkflowJobArtifactHandler() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 19 of function (*API).postWorkflowJobStaticFilesHandler() is high (> 15) (gocyclo)
    • Line 310: warning: cyclomatic complexity 16 of function (*API).postWorkflowJobArtifacWithTempURLHandler() is high (> 15) (gocyclo)
    • cds/engine/api/workflow_run_log.go
    • Line 214: warning: cyclomatic complexity 22 of function (*API).getWorkflowNodeRunJobLogLinkHandler() is high (> 15) (gocyclo)
    • Line 321: warning: cyclomatic complexity 16 of function (*API).getWorkflowAccessHandler() is high (> 15) (gocyclo)
    • cds/engine/api/workflow_queue.go
    • Line 462: warning: cyclomatic complexity 22 of function (*API).postJobResult() is high (> 15) (gocyclo)
    • Line 664: warning: cyclomatic complexity 22 of function (*API).postWorkflowJobStepStatusHandler() is high (> 15) (gocyclo)
    • Line 956: warning: cyclomatic complexity 21 of function (*API).postWorkflowJobTestsResultsHandler() is high (> 15) (gocyclo)
    • Line 39: warning: cyclomatic complexity 17 of function (*API).postTakeWorkflowJobHandler() is high (> 15) (gocyclo)
    • Line 1197: warning: cyclomatic complexity 17 of function (*API).postWorkflowJobSetVersionHandler() is high (> 15) (gocyclo)
    • cds/engine/hooks/scheduler.go
    • Line 52: warning: cyclomatic complexity 25 of function (*Service).retryTaskExecutionsRoutine() is high (> 15) (gocyclo)
    • Line 243: warning: cyclomatic complexity 21 of function (*Service).dequeueTaskExecutions() is high (> 15) (gocyclo)
    • Line 188: warning: cyclomatic complexity 18 of function (*Service).deleteTaskExecutionsRoutine() is high (> 15) (gocyclo)
    • Line 136: warning: cyclomatic complexity 16 of function (*Service).enqueueScheduledTaskExecutionsRoutine() is high (> 15) (gocyclo)
    • cds/engine/api/project_integration.go
    • Line 52: warning: cyclomatic complexity 22 of function (*API).putProjectIntegrationHandler() is high (> 15) (gocyclo)
    • Line 198: warning: cyclomatic complexity 18 of function (*API).postProjectIntegrationHandler() is high (> 15) (gocyclo)
    • cds/engine/api/workflow.go
    • Line 100: warning: cyclomatic complexity 18 of function (*API).getRetentionPolicySuggestionHandler() is high (> 15) (gocyclo)
    • Line 524: warning: cyclomatic complexity 16 of function (*API).putWorkflowHandler() is high (> 15) (gocyclo)
    • cds/sdk/cache.go
    • Line 48: warning: cyclomatic complexity 17 of function CreateTarFromPaths() is high (> 15) (gocyclo)
    • cds/engine/api/project.go
    • Line 452: warning: cyclomatic complexity 31 of function (*API).postProjectHandler() is high (> 15) (gocyclo)
    • Line 117: warning: cyclomatic complexity 23 of function (*API).getProjectsHandler() is high (> 15) (gocyclo)
    • Line 358: warning: cyclomatic complexity 21 of function (*API).putProjectLabelsHandler() is high (> 15) (gocyclo)
    • Line 262: warning: cyclomatic complexity 20 of function (*API).getProjectHandler() is high (> 15) (gocyclo)
    • Line 31: warning: cyclomatic complexity 18 of function (*API).getProjectsHandler_FilterByRepo() is high (> 15) (gocyclo)
    • Line 662: warning: cyclomatic complexity 16 of function (*API).getProjectAccessHandler() is high (> 15) (gocyclo)
    • cds/sdk/workflow.go
    • Line 342: warning: cyclomatic complexity 24 of function (*Workflow).ValidateType() is high (> 15) (gocyclo)
    • Line 256: warning: cyclomatic complexity 18 of function (*Workflow).Normalize() is high (> 15) (gocyclo)
    • cds/engine/api/websocket.go
    • Line 81: warning: cyclomatic complexity 18 of function (*websocketClientData).updateEventFilters() is high (> 15) (gocyclo)
    • Line 306: warning: cyclomatic complexity 18 of function (*API).websocketComputeEventKeys() is high (> 15) (gocyclo)
    • cds/engine/api/auth_local.go
    • Line 236: warning: cyclomatic complexity 24 of function (*API).postAuthLocalVerifyHandler() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 18 of function (*API).postAuthLocalSignupHandler() is high (> 15) (gocyclo)
    • Line 369: warning: cyclomatic complexity 16 of function (*API).postAuthLocalAskResetHandler() is high (> 15) (gocyclo)
    • cds/engine/api/workflow_run.go
    • Line 960: warning: cyclomatic complexity 29 of function (*API).initWorkflowRun() is high (> 15) (gocyclo)
    • Line 1140: warning: cyclomatic complexity 28 of function saveWorkflowRunSecrets() is high (> 15) (gocyclo)
    • Line 814: warning: cyclomatic complexity 27 of function (*API).postWorkflowRunHandler() is high (> 15) (gocyclo)
    • Line 588: warning: cyclomatic complexity 26 of function (*API).getWorkflowCommitsHandler() is high (> 15) (gocyclo)
    • Line 424: warning: cyclomatic complexity 23 of function (*API).stopWorkflowRun() is high (> 15) (gocyclo)
    • Line 57: warning: cyclomatic complexity 20 of function (*API).searchWorkflowRun() is high (> 15) (gocyclo)
    • Line 688: warning: cyclomatic complexity 16 of function (*API).stopWorkflowNodeRunHandler() is high (> 15) (gocyclo)
    • cds/engine/hooks/tasks.go
    • Line 389: warning: cyclomatic complexity 27 of function (*Service).doTask() is high (> 15) (gocyclo)
    • Line 64: warning: cyclomatic complexity 21 of function (*Service).synchronizeTasks() is high (> 15) (gocyclo)
    • cds/engine/api/workflow/process_node_test.go
    • Line 717: warning: cyclomatic complexity 20 of function TestManualRunBranchAndRepositoryInPayloadProcessNodeBuildParameter() is high (> 15) (gocyclo)
    • Line 950: warning: cyclomatic complexity 19 of function TestManualRunBuildParameterMultiApplication() is high (> 15) (gocyclo)
    • Line 1196: warning: cyclomatic complexity 19 of function TestManualRunBuildParameterNoApplicationOnRoot() is high (> 15) (gocyclo)
    • Line 39: warning: cyclomatic complexity 18 of function TestHookRunWithoutPayloadProcessNodeBuildParameter() is high (> 15) (gocyclo)
    • Line 232: warning: cyclomatic complexity 16 of function TestHookRunWithHashOnlyProcessNodeBuildParameter() is high (> 15) (gocyclo)
    • cds/engine/hooks/outgoing_hooks.go
    • Line 249: warning: cyclomatic complexity 19 of function (*Service).doOutgoingWebHookExecution() is high (> 15) (gocyclo)
    • Line 128: warning: cyclomatic complexity 17 of function (*Service).doOutgoingWorkflowExecution() is high (> 15) (gocyclo)
    • cds/engine/api/workflow/workflow_run_event.go
    • Line 47: warning: cyclomatic complexity 33 of function (*VCSEventMessenger).SendVCSEvent() is high (> 15) (gocyclo)
    • Line 310: warning: cyclomatic complexity 25 of function (*VCSEventMessenger).sendVCSPullRequestComment() is high (> 15) (gocyclo)
    • Line 183: warning: cyclomatic complexity 21 of function (*VCSEventMessenger).sendVCSEventStatus() is high (> 15) (gocyclo)
    • cds/engine/api/action.go
    • Line 427: warning: cyclomatic complexity 28 of function (*API).postActionAuditRollbackHandler() is high (> 15) (gocyclo)
    • Line 630: warning: cyclomatic complexity 26 of function (*API).importActionHandler() is high (> 15) (gocyclo)
    • Line 216: warning: cyclomatic complexity 19 of function (*API).putActionHandler() is high (> 15) (gocyclo)
    • cds/sdk/hatchery/hatchery.go
    • Line 295: warning: cyclomatic complexity 40 of function canRunJobWithModel() is high (> 15) (gocyclo)
    • Line 29: warning: cyclomatic complexity 38 of function Create() is high (> 15) (gocyclo)
    • cds/cli/cobra.go
    • Line 94: warning: cyclomatic complexity 80 of function newCommand() is high (> 15) (gocyclo)
    • Line 449: warning: cyclomatic complexity 39 of function listItem() is high (> 15) (gocyclo)
    • cds/engine/api/workflow/dao_node_run.go
    • Line 588: warning: cyclomatic complexity 43 of function GetNodeRunBuildCommits() is high (> 15) (gocyclo)
    • Line 296: warning: cyclomatic complexity 37 of function fromDBNodeRun() is high (> 15) (gocyclo)
    • Line 433: warning: cyclomatic complexity 24 of function makeDBNodeRun() is high (> 15) (gocyclo)
    • Line 85: warning: cyclomatic complexity 16 of function LoadNodeRun() is high (> 15) (gocyclo)
    • cds/engine/api/workflow_ascode_test.go
    • Line 253: warning: cyclomatic complexity 29 of function TestPostMigrateWorkflowAsCodeHandler() is high (> 15) (gocyclo)
    • Line 38: warning: cyclomatic complexity 28 of function TestPostUpdateWorkflowAsCodeHandler() is high (> 15) (gocyclo)
    • cds/sdk/exportentities/v2/workflow.go
    • Line 219: warning: cyclomatic complexity 35 of function craftNodeEntry() is high (> 15) (gocyclo)
    • Line 117: warning: cyclomatic complexity 24 of function NewWorkflow() is high (> 15) (gocyclo)
    • Line 569: warning: cyclomatic complexity 24 of function (*NodeEntry).processNodeAncestors() is high (> 15) (gocyclo)
    • Line 405: warning: cyclomatic complexity 20 of function (Workflow).GetWorkflow() is high (> 15) (gocyclo)
    • Line 679: warning: cyclomatic complexity 20 of function (*NodeEntry).getNode() is high (> 15) (gocyclo)
    • cds/engine/api/workflow/execute_node_run.go
    • Line 104: warning: cyclomatic complexity 50 of function executeNodeRun() is high (> 15) (gocyclo)
    • Line 1064: warning: cyclomatic complexity 28 of function getVCSInfos() is high (> 15) (gocyclo)
    • Line 410: warning: cyclomatic complexity 24 of function addJobsToQueue() is high (> 15) (gocyclo)
    • Line 635: warning: cyclomatic complexity 22 of function syncStage() is high (> 15) (gocyclo)
    • Line 729: warning: cyclomatic complexity 20 of function NodeBuildParametersFromWorkflow() is high (> 15) (gocyclo)
    • cds/engine/api/workflow/dao_run.go
    • Line 730: warning: cyclomatic complexity 18 of function PurgeWorkflowRun() is high (> 15) (gocyclo)
    • Line 987: warning: cyclomatic complexity 16 of function stopRunsBlocked() is high (> 15) (gocyclo)
    • Line 589: warning: cyclomatic complexity 16 of function CreateRun() is high (> 15) (gocyclo)
    • cds/engine/api/notification/user.go
    • Line 34: warning: cyclomatic complexity 33 of function GetUserWorkflowEvents() is high (> 15) (gocyclo)
    • Line 140: warning: cyclomatic complexity 18 of function ShouldSendUserWorkflowNotification() is high (> 15) (gocyclo)
    • cds/engine/api/templates.go
    • Line 516: warning: cyclomatic complexity 52 of function (*API).postTemplateBulkHandler() is high (> 15) (gocyclo)
    • Line 315: warning: cyclomatic complexity 43 of function (*API).postTemplateApplyHandler() is high (> 15) (gocyclo)
    • Line 176: warning: cyclomatic complexity 21 of function (*API).putTemplateHandler() is high (> 15) (gocyclo)
    • Line 54: warning: cyclomatic complexity 19 of function (*API).postTemplateHandler() is high (> 15) (gocyclo)
    • cds/engine/api/pipeline_job.go
    • Line 125: warning: cyclomatic complexity 27 of function (*API).updateJobHandler() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 21 of function (*API).addJobToStageHandler() is high (> 15) (gocyclo)
    • cds/engine/config.go
    • Line 697: warning: cyclomatic complexity 47 of function getInitTokenFromExistingConfiguration() is high (> 15) (gocyclo)
    • Line 309: warning: cyclomatic complexity 36 of function configSetStartupData() is high (> 15) (gocyclo)
    • Line 46: warning: cyclomatic complexity 21 of function configBootstrap() is high (> 15) (gocyclo)
    • cds/engine/api/workflow_run_test.go
    • Line 1232: warning: cyclomatic complexity 25 of function Test_postWorkflowRunAsyncFailedHandler() is high (> 15) (gocyclo)
    • Line 1912: warning: cyclomatic complexity 20 of function Test_postWorkflowRunHandlerMutexRelease() is high (> 15) (gocyclo)
    • cds/engine/hatchery/swarm/swarm.go
    • Line 190: warning: cyclomatic complexity 39 of function (*HatcherySwarm).SpawnWorker() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 21 of function (*HatcherySwarm).InitHatchery() is high (> 15) (gocyclo)
    • Line 461: warning: cyclomatic complexity 17 of function (*HatcherySwarm).CanSpawn() is high (> 15) (gocyclo)
    • cds/cli/cdsctl/workflow_log.go
    • Line 369: warning: cyclomatic complexity 21 of function workflowLogStreamRun() is high (> 15) (gocyclo)
    • Line 264: warning: cyclomatic complexity 20 of function workflowLogDownloadRun() is high (> 15) (gocyclo)
    • cds/engine/api/ui.go
    • Line 30: warning: cyclomatic complexity 16 of function (*API).getApplicationOverviewHandler() is high (> 15) (gocyclo)
    • cds/engine/hatchery/vsphere/spawn.go
    • Line 34: warning: cyclomatic complexity 21 of function (*HatcheryVSphere).SpawnWorker() is high (> 15) (gocyclo)
    • Line 182: warning: cyclomatic complexity 16 of function (*HatcheryVSphere).createVirtualMachineTemplate() is high (> 15) (gocyclo)
    • cds/engine/hooks/webhook.go
    • Line 120: warning: cyclomatic complexity 19 of function executeWebHook() is high (> 15) (gocyclo)
    • Line 32: warning: cyclomatic complexity 17 of function getRepositoryHeader() is high (> 15) (gocyclo)
    • Line 51: warning: cyclomatic complexity 16 of function (*Service).executeRepositoryWebHook() is high (> 15) (gocyclo)
    • cds/cli/cdsctl/config.go
    • Line 206: warning: cyclomatic complexity 78 of function discoverConf() is high (> 15) (gocyclo)
    • Line 36: warning: cyclomatic complexity 23 of function loadConfig() is high (> 15) (gocyclo)
    • cds/cli/cdsctl/shell.go
    • Line 399: warning: cyclomatic complexity 32 of function (*shellCurrent).shellListCommand() is high (> 15) (gocyclo)
    • Line 247: warning: cyclomatic complexity 17 of function (*shellCurrent).cdCmd() is high (> 15) (gocyclo)
    • cds/engine/api/project_group.go
    • Line 228: warning: cyclomatic complexity 22 of function (*API).postImportGroupsInProjectHandler() is high (> 15) (gocyclo)
    • Line 64: warning: cyclomatic complexity 18 of function (*API).putGroupRoleOnProjectHandler() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 17 of function (*API).postGroupInProjectHandler() is high (> 15) (gocyclo)
    • cds/engine/api/group.go
    • Line 344: warning: cyclomatic complexity 16 of function (*API).deleteGroupUserHandler() is high (> 15) (gocyclo)
    • Line 274: warning: cyclomatic complexity 16 of function (*API).putGroupUserHandler() is high (> 15) (gocyclo)
    • cds/engine/api/api.go
    • Line 395: warning: cyclomatic complexity 58 of function (*API).Serve() is high (> 15) (gocyclo)
    • Line 293: warning: cyclomatic complexity 25 of function (*API).CheckConfiguration() is high (> 15) (gocyclo)
    • cds/cli/cdsctl/login.go
    • Line 221: warning: cyclomatic complexity 23 of function doAfterLogin() is high (> 15) (gocyclo)
    • Line 62: warning: cyclomatic complexity 22 of function loginRun() is high (> 15) (gocyclo)
    • cds/engine/api/workflow/dao.go
    • Line 431: warning: cyclomatic complexity 50 of function RenameNode() is high (> 15) (gocyclo)
    • Line 1111: warning: cyclomatic complexity 41 of function Push() is high (> 15) (gocyclo)
    • Line 296: warning: cyclomatic complexity 35 of function Insert() is high (> 15) (gocyclo)
    • Line 608: warning: cyclomatic complexity 26 of function Update() is high (> 15) (gocyclo)
    • Line 885: warning: cyclomatic complexity 21 of function checkHooks() is high (> 15) (gocyclo)
    • cds/engine/api/ascode.go
    • Line 128: warning: cyclomatic complexity 18 of function (*API).postPerformImportAsCodeHandler() is high (> 15) (gocyclo)
    • Line 28: warning: cyclomatic complexity 16 of function (*API).postImportAsCodeHandler() is high (> 15) (gocyclo)
    • cds/engine/api/workflow/factory_dao.go
    • Line 470: warning: cyclomatic complexity 18 of function (WorkflowDAO).withIntegrations() is high (> 15) (gocyclo)
    • Line 553: warning: cyclomatic complexity 17 of function (WorkflowDAO).withApplications() is high (> 15) (gocyclo)
    • Line 336: warning: cyclomatic complexity 17 of function (WorkflowDAO).withEnvironments() is high (> 15) (gocyclo)
    • Line 387: warning: cyclomatic complexity 17 of function (WorkflowDAO).withPipelines() is high (> 15) (gocyclo)
    • cds/engine/hooks/gerrit.go
    • Line 247: warning: cyclomatic complexity 17 of function ListenGerritStreamEvent() is high (> 15) (gocyclo)
    • Line 89: warning: cyclomatic complexity 16 of function (*Service).doGerritExecution() is high (> 15) (gocyclo)
    • cds/engine/worker/internal/keys.go
    • Line 19: warning: cyclomatic complexity 16 of function (*CurrentWorker).InstallKey() is high (> 15) (gocyclo)
    • Line 100: warning: cyclomatic complexity 16 of function (*CurrentWorker).InstallKeyTo() is high (> 15) (gocyclo)
    • cds/engine/api/application.go
    • Line 427: warning: cyclomatic complexity 29 of function (*API).updateAsCodeApplicationHandler() is high (> 15) (gocyclo)
    • Line 33: warning: cyclomatic complexity 18 of function (*API).getApplicationsHandler() is high (> 15) (gocyclo)

ineffassign96%

IneffAssign detects ineffectual assignments in Go code.

    • cds/engine/api/workflow_ascode_with_hooks_test.go
    • Line 78: warning: ineffectual assignment to out (ineffassign)
    • Line 140: warning: ineffectual assignment to out (ineffassign)
    • Line 294: warning: ineffectual assignment to out (ineffassign)
    • Line 308: warning: ineffectual assignment to out (ineffassign)
    • Line 372: warning: ineffectual assignment to out (ineffassign)
    • Line 484: warning: ineffectual assignment to err (ineffassign)
    • Line 553: warning: ineffectual assignment to out (ineffassign)
    • Line 567: warning: ineffectual assignment to out (ineffassign)
    • Line 678: warning: ineffectual assignment to out (ineffassign)
    • Line 923: warning: ineffectual assignment to out (ineffassign)
    • Line 937: warning: ineffectual assignment to out (ineffassign)
    • Line 1130: warning: ineffectual assignment to out (ineffassign)
    • cds/engine/api/workflow/process_node_test.go
    • Line 59: warning: ineffectual assignment to err (ineffassign)
    • Line 252: warning: ineffectual assignment to err (ineffassign)
    • Line 433: warning: ineffectual assignment to err (ineffassign)
    • Line 974: warning: ineffectual assignment to err (ineffassign)
    • Line 1219: warning: ineffectual assignment to err (ineffassign)
    • Line 1464: warning: ineffectual assignment to err (ineffassign)
    • Line 1652: warning: ineffectual assignment to err (ineffassign)
    • Line 1834: warning: ineffectual assignment to err (ineffassign)
    • Line 2036: warning: ineffectual assignment to err (ineffassign)
    • Line 2373: warning: ineffectual assignment to err (ineffassign)
    • Line 2583: warning: ineffectual assignment to err (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!