Preparing report...

Report for github.com/kubecc-io/kubecc

A+    Excellent!    Found 130 issues across 198 files

Tweet

gofmt100%

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

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo98%

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.


golint34%

Golint is a linter for Go source code.

    • kubecc/pkg/run/store.go
    • Line 22: warning: exported type ToolchainRunnerStore should have comment or be unexported (golint)
    • Line 25: warning: exported type StoreAddFunc should have comment or be unexported (golint)
    • Line 27: warning: exported function NewToolchainRunnerStore should have comment or be unexported (golint)
    • Line 33: warning: exported type NoRunnerForKind should have comment or be unexported (golint)
    • Line 39: warning: exported method ToolchainRunnerStore.Add should have comment or be unexported (golint)
    • Line 49: warning: exported method ToolchainRunnerStore.Get should have comment or be unexported (golint)
    • kubecc/pkg/toolchains/store.go
    • Line 79: warning: comment on exported method Store.ItemsList should be of the form "ItemsList ..." (golint)
    • Line 183: warning: error should be the last type when returning multiple items (golint)
    • kubecc/pkg/test/environment.go
    • Line 48: warning: exported type SpawnOptions should have comment or be unexported (golint)
    • Line 59: warning: exported type SpawnOption should have comment or be unexported (golint)
    • Line 61: warning: exported method SpawnOptions.Apply should have comment or be unexported (golint)
    • Line 97: warning: exported function WaitForReady should have comment or be unexported (golint)
    • Line 103: warning: exported function WithAgentOptions should have comment or be unexported (golint)
    • Line 109: warning: exported function WithConsumerdOptions should have comment or be unexported (golint)
    • Line 115: warning: exported function WithSchedulerOptions should have comment or be unexported (golint)
    • Line 121: warning: exported function WithCacheOptions should have comment or be unexported (golint)
    • Line 127: warning: exported function WithUUID should have comment or be unexported (golint)
    • Line 133: warning: exported type Environment should have comment or be unexported (golint)
    • Line 160: warning: exported type Spawner should have comment or be unexported (golint)
    • Line 202: warning: exported function SpawnAgent should have comment or be unexported (golint)
    • Line 246: warning: exported function SpawnScheduler should have comment or be unexported (golint)
    • Line 278: warning: exported function SpawnConsumerd should have comment or be unexported (golint)
    • Line 321: warning: exported function SpawnMonitor should have comment or be unexported (golint)
    • Line 343: warning: exported function SpawnCache should have comment or be unexported (golint)
    • Line 388: warning: context.Context should be the first parameter of a function (golint)
    • Line 388: warning: exported function NewMonitorClient should have comment or be unexported (golint)
    • Line 396: warning: context.Context should be the first parameter of a function (golint)
    • Line 396: warning: exported function NewSchedulerClient should have comment or be unexported (golint)
    • Line 404: warning: context.Context should be the first parameter of a function (golint)
    • Line 404: warning: exported function NewCacheClient should have comment or be unexported (golint)
    • Line 412: warning: context.Context should be the first parameter of a function (golint)
    • Line 412: warning: exported function NewConsumerdClient should have comment or be unexported (golint)
    • kubecc/pkg/apps/monitor/server.go
    • Line 49: warning: exported type Receiver should have comment or be unexported (golint)
    • Line 53: warning: exported type MonitorServer should have comment or be unexported (golint)
    • Line 73: warning: exported function NewMonitorServer should have comment or be unexported (golint)
    • Line 271: warning: exported method MonitorServer.Stream should have comment or be unexported (golint)
    • Line 401: warning: exported method MonitorServer.Listen should have comment or be unexported (golint)
    • Line 424: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 483: warning: exported method MonitorServer.Whois should have comment or be unexported (golint)
    • Line 501: warning: exported method MonitorServer.GetMetric should have comment or be unexported (golint)
    • Line 523: warning: exported method MonitorServer.GetBuckets should have comment or be unexported (golint)
    • Line 541: warning: exported method MonitorServer.GetKeys should have comment or be unexported (golint)
    • kubecc/pkg/ui/tree.go
    • Line 25: warning: exported type TreeDataSource should have comment or be unexported (golint)
    • Line 30: warning: exported type Tree should have comment or be unexported (golint)
    • Line 36: warning: exported function NewTree should have comment or be unexported (golint)
    • kubecc/api/v1alpha1/buildcluster_types.go
    • Line 18: warning: package comment should be of the form "Package v1alpha1 ..." (golint)
    • Line 26: warning: exported type BuildClusterSpec should have comment or be unexported (golint)
    • Line 31: warning: exported type ComponentsSpec should have comment or be unexported (golint)
    • Line 40: warning: exported type TracingSpec should have comment or be unexported (golint)
    • Line 44: warning: exported type JaegerSpec should have comment or be unexported (golint)
    • Line 49: warning: exported type CollectorSpec should have comment or be unexported (golint)
    • Line 56: warning: exported type SamplerSpec should have comment or be unexported (golint)
    • Line 62: warning: exported type AgentSpec should have comment or be unexported (golint)
    • Line 70: warning: exported type SchedulerSpec should have comment or be unexported (golint)
    • Line 76: warning: exported type MonitorSpec should have comment or be unexported (golint)
    • Line 82: warning: exported type CacheSpec should have comment or be unexported (golint)
    • kubecc/pkg/resolvers/configmap.go
    • Line 29: warning: exported type ConfigMapResolver should have comment or be unexported (golint)
    • Line 35: warning: exported method ConfigMapResolver.Resolve should have comment or be unexported (golint)
    • Line 54: warning: exported method ConfigMapResolver.Find should have comment or be unexported (golint)
    • kubecc/pkg/run/command.go
    • Line 27: warning: exported type ExecCommandTask should have comment or be unexported (golint)
    • Line 33: warning: exported function NewExecCommandTask should have comment or be unexported (golint)
    • Line 41: warning: exported method ExecCommandTask.Run should have comment or be unexported (golint)
    • kubecc/pkg/apps/scheduler/optimizer.go
    • Line 61: warning: exported function NewOptimizer should have comment or be unexported (golint)
    • Line 78: warning: exported method Optimizer.UsageLimitMultiplierChanged should have comment or be unexported (golint)
    • Line 82: warning: context.Context should be the first parameter of a function (golint)
    • Line 122: warning: context.Context should be the first parameter of a function (golint)
    • kubecc/pkg/toolchains/finder.go
    • Line 31: warning: exported type FindOptions should have comment or be unexported (golint)
    • Line 37: warning: exported type FindOption should have comment or be unexported (golint)
    • Line 39: warning: exported method FindOptions.Apply should have comment or be unexported (golint)
    • Line 45: warning: exported function WithFS should have comment or be unexported (golint)
    • Line 51: warning: exported function WithQuerier should have comment or be unexported (golint)
    • Line 57: warning: exported function WithSearchPaths should have comment or be unexported (golint)
    • Line 63: warning: exported function SearchPathEnv should have comment or be unexported (golint)
    • kubecc/pkg/ui/table.go
    • Line 25: warning: exported type TableDataSource should have comment or be unexported (golint)
    • Line 31: warning: exported type Table should have comment or be unexported (golint)
    • Line 38: warning: exported function NewTable should have comment or be unexported (golint)
    • kubecc/pkg/apps/consumerd/queue.go
    • Line 33: warning: exported type SplitTaskLocation should have comment or be unexported (golint)
    • Line 36: warning: exported const Unknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported type SplitTask should have comment or be unexported (golint)
    • Line 48: warning: exported method SplitTask.Wait should have comment or be unexported (golint)
    • Line 59: warning: exported method SplitTask.Which should have comment or be unexported (golint)
    • Line 63: warning: exported method SplitTask.Run should have comment or be unexported (golint)
    • Line 67: warning: exported method SplitTask.Err should have comment or be unexported (golint)
    • Line 71: warning: exported type SplitQueue should have comment or be unexported (golint)
    • Line 86: warning: exported type SplitQueueOptions should have comment or be unexported (golint)
    • Line 93: warning: exported type SplitQueueOption should have comment or be unexported (golint)
    • Line 95: warning: exported method SplitQueueOptions.Apply should have comment or be unexported (golint)
    • Line 101: warning: exported function WithTelemetryConfig should have comment or be unexported (golint)
    • Line 107: warning: exported function WithBufferSize should have comment or be unexported (golint)
    • Line 113: warning: exported function WithLocalUsageManager should have comment or be unexported (golint)
    • Line 119: warning: exported function WithRemoteUsageManager should have comment or be unexported (golint)
    • Line 125: warning: exported type NoRemoteUsageManager should have comment or be unexported (golint)
    • Line 127: warning: exported method NoRemoteUsageManager.Manage should have comment or be unexported (golint)
    • Line 137: warning: exported function FixedUsageLimits should have comment or be unexported (golint)
    • Line 149: warning: exported function AutoUsageLimits should have comment or be unexported (golint)
    • Line 167: warning: exported function NewSplitQueue should have comment or be unexported (golint)
    • Line 231: warning: exported method SplitQueue.Exec should have comment or be unexported (golint)
    • Line 234: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 262: warning: exported method SplitQueue.CompleteUsageLimits should have comment or be unexported (golint)
    • Line 267: warning: exported method SplitQueue.CompleteTaskStatus should have comment or be unexported (golint)
    • Line 273: warning: exported method SplitQueue.CompleteLocalTasksCompleted should have comment or be unexported (golint)
    • Line 277: warning: exported method SplitQueue.CompleteDelegatedTasksCompleted should have comment or be unexported (golint)
    • Line 281: warning: exported method SplitQueue.Telemetry should have comment or be unexported (golint)
    • kubecc/pkg/config/spec.go
    • Line 27: warning: exported type LogLevelString should have comment or be unexported (golint)
    • Line 29: warning: exported method LogLevelString.Level should have comment or be unexported (golint)
    • Line 36: warning: exported type GlobalSpec should have comment or be unexported (golint)
    • Line 50: warning: exported type KubeccSpec should have comment or be unexported (golint)
    • Line 61: warning: exported type AgentSpec should have comment or be unexported (golint)
    • Line 68: warning: exported type ConsumerSpec should have comment or be unexported (golint)
    • Line 73: warning: exported type ConsumerdSpec should have comment or be unexported (golint)
    • Line 82: warning: exported type SchedulerSpec should have comment or be unexported (golint)
    • Line 89: warning: exported type MonitorSpec should have comment or be unexported (golint)
    • Line 95: warning: exported type CacheSpec should have comment or be unexported (golint)
    • Line 103: warning: exported type LocalStorageSpec should have comment or be unexported (golint)
    • Line 108: warning: exported type RemoteStorageSpec should have comment or be unexported (golint)
    • Line 119: warning: exported type StorageLimitsSpec should have comment or be unexported (golint)
    • Line 124: warning: exported type KcctlSpec should have comment or be unexported (golint)
    • Line 131: warning: exported type UsageLimitsSpec should have comment or be unexported (golint)
    • Line 135: warning: exported method UsageLimitsSpec.GetConcurrentProcessLimit should have comment or be unexported (golint)
    • kubecc/pkg/apps/monitor/store.go
    • Line 27: warning: exported type KeyValueStore should have comment or be unexported (golint)
    • Line 37: warning: exported type StoreCreator should have comment or be unexported (golint)
    • Line 41: warning: exported type InMemoryStore should have comment or be unexported (golint)
    • Line 49: warning: exported var InMemoryStoreCreator should have comment or be unexported (golint)
    • Line 59: warning: exported method InMemoryStore.Context should have comment or be unexported (golint)
    • Line 63: warning: exported method InMemoryStore.Set should have comment or be unexported (golint)
    • Line 69: warning: exported method InMemoryStore.Delete should have comment or be unexported (golint)
    • Line 75: warning: exported method InMemoryStore.Get should have comment or be unexported (golint)
    • Line 85: warning: exported method InMemoryStore.CAS should have comment or be unexported (golint)
    • Line 96: warning: exported method InMemoryStore.Keys should have comment or be unexported (golint)
    • Line 106: warning: exported method InMemoryStore.Len should have comment or be unexported (golint)
    • kubecc/pkg/toolchains/metadata.go
    • Line 34: warning: exported var ErrNoMetadata should have comment or be unexported (golint)
    • Line 39: warning: exported function CreateMetadata should have comment or be unexported (golint)
    • Line 49: warning: exported function FromIncomingContext should have comment or be unexported (golint)
    • kubecc/pkg/test/tasks.go
    • Line 29: warning: should not use dot imports (golint)
    • Line 54: warning: exported function MakeHashTaskPool should have comment or be unexported (golint)
    • Line 73: warning: exported function MakeSleepTaskPool should have comment or be unexported (golint)
    • Line 94: warning: exported function ProcessTaskPool should have comment or be unexported (golint)
    • kubecc/pkg/apps/scheduler/server.go
    • Line 59: warning: exported type SchedulerServerOptions should have comment or be unexported (golint)
    • Line 64: warning: exported type SchedulerServerOption should have comment or be unexported (golint)
    • Line 66: warning: exported method SchedulerServerOptions.Apply should have comment or be unexported (golint)
    • Line 72: warning: exported function WithMonitorClient should have comment or be unexported (golint)
    • Line 78: warning: exported function WithCacheClient should have comment or be unexported (golint)
    • Line 84: warning: exported var SchedulerServerContext should have comment or be unexported (golint)
    • Line 86: warning: exported function NewSchedulerServer should have comment or be unexported (golint)
    • kubecc/pkg/resolvers/cachesrv.go
    • Line 30: warning: exported type CacheSrvResolver should have comment or be unexported (golint)
    • Line 36: warning: exported method CacheSrvResolver.Resolve should have comment or be unexported (golint)
    • Line 95: warning: exported method CacheSrvResolver.Find should have comment or be unexported (golint)
    • kubecc/pkg/tracing/tracing.go
    • Line 34: warning: exported var IsEnabled should have comment or be unexported (golint)
    • Line 36: warning: exported function Start should have comment or be unexported (golint)
    • Line 67: warning: exported var Tracer should have comment or be unexported (golint)
    • kubecc/pkg/meta/interceptors.go
    • Line 26: warning: exported function ClientContextInterceptor should have comment or be unexported (golint)
    • Line 40: warning: exported function ServerContextInterceptor should have comment or be unexported (golint)
    • Line 57: warning: exported function StreamClientContextInterceptor should have comment or be unexported (golint)
    • Line 80: warning: exported function StreamServerContextInterceptor should have comment or be unexported (golint)
    • kubecc/pkg/apps/scheduler/broker.go
    • Line 39: warning: exported type Broker should have comment or be unexported (golint)
    • Line 71: warning: exported type BrokerOptions should have comment or be unexported (golint)
    • Line 76: warning: exported type BrokerOption should have comment or be unexported (golint)
    • Line 78: warning: exported method BrokerOptions.Apply should have comment or be unexported (golint)
    • Line 84: warning: exported function CacheClient should have comment or be unexported (golint)
    • Line 90: warning: exported function MonitorClient should have comment or be unexported (golint)
    • Line 96: warning: exported function NewBroker should have comment or be unexported (golint)
    • Line 388: warning: exported method Broker.NewAgentTaskStream should have comment or be unexported (golint)
    • Line 432: warning: exported method Broker.NewConsumerdTaskStream should have comment or be unexported (golint)
    • Line 482: warning: exported method Broker.CalcAgentStats should have comment or be unexported (golint)
    • Line 509: warning: exported method Broker.CalcConsumerdStats should have comment or be unexported (golint)
    • Line 535: warning: exported method Broker.TaskStats should have comment or be unexported (golint)
    • Line 549: warning: exported method Broker.PreReceive should have comment or be unexported (golint)
    • Line 652: warning: exported method Broker.GetAgent should have comment or be unexported (golint)
    • kubecc/pkg/test/env_localhost.go
    • Line 44: warning: exported type LocalhostEnvironment should have comment or be unexported (golint)
    • Line 54: warning: exported method LocalhostEnvironment.Context should have comment or be unexported (golint)
    • Line 58: warning: exported function NewLocalhostEnvironment should have comment or be unexported (golint)
    • Line 87: warning: exported function NewDefaultLocalhostEnvironment should have comment or be unexported (golint)
    • Line 91: warning: exported function NewLocalhostEnvironmentWithLogLevel should have comment or be unexported (golint)
    • Line 126: warning: exported method LocalhostEnvironment.DefaultConfig should have comment or be unexported (golint)
    • Line 130: warning: exported method LocalhostEnvironment.Dial should have comment or be unexported (golint)
    • Line 154: warning: exported method LocalhostEnvironment.Shutdown should have comment or be unexported (golint)
    • Line 158: warning: exported method LocalhostEnvironment.WaitForReady should have comment or be unexported (golint)
    • Line 187: warning: exported method LocalhostEnvironment.MetricF should have comment or be unexported (golint)
    • Line 218: warning: exported method LocalhostEnvironment.Log should have comment or be unexported (golint)
    • Line 222: warning: exported method LocalhostEnvironment.Serve should have comment or be unexported (golint)
    • kubecc/pkg/resolvers/agent.go
    • Line 33: warning: exported type AgentResolver should have comment or be unexported (golint)
    • Line 39: warning: exported method AgentResolver.Resolve should have comment or be unexported (golint)
    • Line 103: warning: exported method AgentResolver.Find should have comment or be unexported (golint)
    • kubecc/pkg/clients/metrics.go
    • Line 26: warning: exported const MetaBucket should have comment or be unexported (golint)
    • Line 28: warning: exported type RetryOptions should have comment or be unexported (golint)
    • Line 31: warning: exported const NoRetry should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type ContextMetric should have comment or be unexported (golint)
    • Line 39: warning: exported type MetricsProvider should have comment or be unexported (golint)
    • Line 44: warning: exported type MetricsListener should have comment or be unexported (golint)
    • Line 49: warning: exported type ChangeListener should have comment or be unexported (golint)
    • kubecc/pkg/clients/scheduler.go
    • Line 32: warning: exported var ErrStreamNotReady should have comment or be unexported (golint)
    • Line 34: warning: exported type CompileRequestClient should have comment or be unexported (golint)
    • Line 44: warning: exported function NewCompileRequestClient should have comment or be unexported (golint)
    • Line 84: warning: exported method CompileRequestClient.Compile should have comment or be unexported (golint)
    • Line 140: warning: exported type RemoteUsageManager should have comment or be unexported (golint)
    • Line 145: warning: exported function NewRemoteUsageManager should have comment or be unexported (golint)
    • Line 155: warning: exported method RemoteUsageManager.Manage should have comment or be unexported (golint)
    • kubecc/staging/staging.go
    • Line 20: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 24: warning: comment on exported var StagingAutogenYaml should be of the form "StagingAutogenYaml ..." (golint)
    • kubecc/pkg/util/context.go
    • Line 20: warning: exported type NotifyTimeoutInfo should have comment or be unexported (golint)
    • Line 26: warning: exported function SetNotifyTimeoutHandler should have comment or be unexported (golint)
    • Line 30: warning: exported function NotifyBlocking should have comment or be unexported (golint)
    • Line 44: warning: exported function NotifyBackground should have comment or be unexported (golint)
    • Line 81: warning: exported function CancelAny should have comment or be unexported (golint)
    • Line 130: warning: receiver name pc should be consistent with previous receiver name ca for cancelAny (golint)
    • Line 139: warning: receiver name pc should be consistent with previous receiver name ca for cancelAny (golint)
    • kubecc/pkg/sleep/querier.go
    • Line 27: warning: exported type SleepQuerier should have comment or be unexported (golint)
    • Line 29: warning: exported method SleepQuerier.IsPicDefault should have comment or be unexported (golint)
    • Line 33: warning: exported method SleepQuerier.TargetArch should have comment or be unexported (golint)
    • Line 37: warning: exported method SleepQuerier.Version should have comment or be unexported (golint)
    • Line 41: warning: exported method SleepQuerier.Kind should have comment or be unexported (golint)
    • Line 45: warning: exported method SleepQuerier.Lang should have comment or be unexported (golint)
    • Line 49: warning: exported method SleepQuerier.ModTime should have comment or be unexported (golint)
    • kubecc/pkg/metrics/types.go
    • Line 27: warning: exported method StatusConditions.FormatAll should have comment or be unexported (golint)
    • Line 35: warning: exported method StatusConditions.Format should have comment or be unexported (golint)
    • Line 53: warning: exported method TaskStatus.MarshalLogObject should have comment or be unexported (golint)
    • Line 59: warning: exported method Toolchains.MarshalLogObject should have comment or be unexported (golint)
    • Line 64: warning: exported method UsageLimits.MarshalLogObject should have comment or be unexported (golint)
    • Line 70: warning: exported method AgentInfo.MarshalLogObject should have comment or be unexported (golint)
    • Line 77: warning: exported method CpuStats.MarshalLogObject should have comment or be unexported (golint)
    • Line 84: warning: exported method CpuUsage.MarshalLogObject should have comment or be unexported (golint)
    • Line 90: warning: exported method ThrottlingData.MarshalLogObject should have comment or be unexported (golint)
    • Line 97: warning: exported method TasksCompletedTotal.MarshalLogObject should have comment or be unexported (golint)
    • Line 102: warning: exported method TasksFailedTotal.MarshalLogObject should have comment or be unexported (golint)
    • Line 107: warning: exported method SchedulingRequestsTotal.MarshalLogObject should have comment or be unexported (golint)
    • Line 112: warning: exported method AgentCount.MarshalLogObject should have comment or be unexported (golint)
    • Line 117: warning: exported method ConsumerdCount.MarshalLogObject should have comment or be unexported (golint)
    • Line 122: warning: exported method Identifier.MarshalLogObject should have comment or be unexported (golint)
    • Line 127: warning: exported method AgentTasksTotal.MarshalLogObject should have comment or be unexported (golint)
    • Line 132: warning: exported method ConsumerdTasksTotal.MarshalLogObject should have comment or be unexported (golint)
    • Line 137: warning: exported method PreferredUsageLimits.MarshalLogObject should have comment or be unexported (golint)
    • Line 142: warning: exported method MetricsPostedTotal.MarshalLogObject should have comment or be unexported (golint)
    • Line 147: warning: exported method ListenerCount.MarshalLogObject should have comment or be unexported (golint)
    • Line 152: warning: exported method ProviderCount.MarshalLogObject should have comment or be unexported (golint)
    • Line 157: warning: exported method ProviderInfo.MarshalLogObject should have comment or be unexported (golint)
    • Line 164: warning: exported method Providers.MarshalLogObject should have comment or be unexported (golint)
    • Line 169: warning: exported method BucketSpec.MarshalLogObject should have comment or be unexported (golint)
    • Line 174: warning: exported method LocalTasksCompleted.MarshalLogObject should have comment or be unexported (golint)
    • Line 179: warning: exported method DelegatedTasksCompleted.MarshalLogObject should have comment or be unexported (golint)
    • Line 184: warning: exported method CacheUsage.MarshalLogObject should have comment or be unexported (golint)
    • Line 191: warning: exported method CacheHits.MarshalLogObject should have comment or be unexported (golint)
    • Line 197: warning: exported method Health.MarshalLogObject should have comment or be unexported (golint)
    • kubecc/pkg/types/loghelpers.go
    • Line 34: warning: exported type ElideLocation should have comment or be unexported (golint)
    • Line 37: warning: exported const ElideCenter should have comment (or a comment on this block) or be unexported (golint)
    • kubecc/pkg/apps/scheduler/scheduler_suite_test.go
    • Line 49: warning: don't use underscores in Go names; var clang_c should be clangC (golint)
    • Line 57: warning: don't use underscores in Go names; var gnu_c should be gnuC (golint)
    • Line 65: warning: don't use underscores in Go names; var sample_req1 should be sampleReq1 (golint)
    • Line 71: warning: don't use underscores in Go names; var sample_req2 should be sampleReq2 (golint)
    • Line 77: warning: don't use underscores in Go names; var sample_resp1 should be sampleResp1 (golint)
    • Line 84: warning: don't use underscores in Go names; var sample_resp2 should be sampleResp2 (golint)
    • kubecc/internal/logkc/log.go
    • Line 39: warning: exported var BigAsciiText should have comment or be unexported (golint)
    • Line 73: warning: exported type LogOptions should have comment or be unexported (golint)
    • Line 82: warning: exported method LogOptions.Apply should have comment or be unexported (golint)
    • Line 88: warning: exported function WithOutputPaths should have comment or be unexported (golint)
    • Line 94: warning: exported function WithErrorOutputPaths should have comment or be unexported (golint)
    • Line 100: warning: exported function WithLogLevel should have comment or be unexported (golint)
    • Line 106: warning: exported function WithName should have comment or be unexported (golint)
    • Line 112: warning: exported function WithWriter should have comment or be unexported (golint)
    • Line 118: warning: exported function New should have comment or be unexported (golint)
    • Line 180: warning: exported function PrintHeader should have comment or be unexported (golint)
    • Line 190: warning: exported var Logger should have comment or be unexported (golint)
    • kubecc/pkg/resolvers/components.go
    • Line 27: warning: exported type ComponentsResolver should have comment or be unexported (golint)
    • Line 29: warning: exported method ComponentsResolver.Resolve should have comment or be unexported (golint)
    • Line 35: warning: exported method ComponentsResolver.Find should have comment or be unexported (golint)
    • kubecc/pkg/resolvers/tracing.go
    • Line 27: warning: exported type TracingResolver should have comment or be unexported (golint)
    • Line 29: warning: exported method TracingResolver.Resolve should have comment or be unexported (golint)
    • Line 43: warning: exported method TracingResolver.Find should have comment or be unexported (golint)
    • kubecc/pkg/clients/monitor.go
    • Line 51: warning: exported type QueueStrategy should have comment or be unexported (golint)
    • Line 54: warning: exported const Buffered should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: exported type MetricsProviderOptions should have comment or be unexported (golint)
    • Line 63: warning: exported type MetricsProviderOption should have comment or be unexported (golint)
    • Line 65: warning: exported method MetricsProviderOptions.Apply should have comment or be unexported (golint)
    • Line 71: warning: exported function StatusCtrl should have comment or be unexported (golint)
    • Line 77: warning: exported function NewMetricsProvider should have comment or be unexported (golint)
    • Line 158: warning: context.Context should be the first parameter of a function (golint)
    • Line 248: warning: exported function NewMetricsListener should have comment or be unexported (golint)
    • Line 359: warning: receiver name s should be consistent with previous receiver name cl for changeListener (golint)
    • Line 363: warning: receiver name s should be consistent with previous receiver name cl for changeListener (golint)
    • Line 367: warning: receiver name c should be consistent with previous receiver name cl for changeListener (golint)
    • kubecc/pkg/clients/stream.go
    • Line 38: warning: exported type StreamHandler should have comment or be unexported (golint)
    • Line 44: warning: exported type OnConnectedEventHandler should have comment or be unexported (golint)
    • Line 48: warning: exported type OnLostConnectionEventHandler should have comment or be unexported (golint)
    • Line 52: warning: exported type OnConnectFailedEventHandler should have comment or be unexported (golint)
    • Line 68: warning: exported type EventKind should have comment or be unexported (golint)
    • Line 71: warning: exported const LogConnected should have comment (or a comment on this block) or be unexported (golint)
    • Line 80: warning: exported type StreamManagerOptions should have comment or be unexported (golint)
    • Line 85: warning: exported type StreamManagerOption should have comment or be unexported (golint)
    • Line 87: warning: exported method StreamManagerOptions.Apply should have comment or be unexported (golint)
    • Line 93: warning: exported function WithLogEvents should have comment or be unexported (golint)
    • Line 99: warning: exported type StatusCtrlKind should have comment or be unexported (golint)
    • Line 102: warning: exported const Optional should have comment (or a comment on this block) or be unexported (golint)
    • Line 106: warning: exported function WithStatusCtrl should have comment or be unexported (golint)
    • Line 126: warning: exported function NewStreamManager should have comment or be unexported (golint)
    • Line 207: warning: exported method StreamManager.Run should have comment or be unexported (golint)
    • kubecc/pkg/rec/compare.go
    • Line 30: warning: exported function Equal should have comment or be unexported (golint)
    • Line 34: warning: exported type Updater should have comment or be unexported (golint)
    • Line 41: warning: exported function UpdateIfNeeded should have comment or be unexported (golint)
    • Line 78: warning: exported function CompareAffinity should have comment or be unexported (golint)
    • Line 90: warning: exported function ApplyAffinity should have comment or be unexported (golint)
    • Line 98: warning: exported function AffinityUpdater should have comment or be unexported (golint)
    • Line 105: warning: exported function CompareResources should have comment or be unexported (golint)
    • Line 114: warning: exported function ApplyResources should have comment or be unexported (golint)
    • Line 125: warning: exported function ResourceUpdater should have comment or be unexported (golint)
    • Line 132: warning: exported function CompareImage should have comment or be unexported (golint)
    • Line 138: warning: exported function ApplyImage should have comment or be unexported (golint)
    • Line 144: warning: exported function PodImageUpdater should have comment or be unexported (golint)
    • Line 151: warning: exported function ImageUpdater should have comment or be unexported (golint)
    • Line 158: warning: exported function ComparePullPolicy should have comment or be unexported (golint)
    • Line 164: warning: exported function ApplyPullPolicy should have comment or be unexported (golint)
    • Line 170: warning: exported function PodPullPolicyUpdater should have comment or be unexported (golint)
    • Line 177: warning: exported function PullPolicyUpdater should have comment or be unexported (golint)
    • Line 184: warning: exported function CompareLabels should have comment or be unexported (golint)
    • Line 201: warning: exported function ApplyLabels should have comment or be unexported (golint)
    • Line 218: warning: exported function LabelUpdater should have comment or be unexported (golint)
    • kubecc/pkg/config/config.go
    • Line 33: warning: exported type ConfigLoader should have comment or be unexported (golint)
    • Line 39: warning: exported var ConfigMapProvider should have comment or be unexported (golint)
    • Line 61: warning: exported function LoadFile should have comment or be unexported (golint)
    • kubecc/pkg/test/presets/presets.go
    • Line 20: warning: exported function NewMinimalEnvironment should have comment or be unexported (golint)
    • Line 24: warning: exported function NewCompleteEnvironment should have comment or be unexported (golint)
    • kubecc/pkg/test/controller.go
    • Line 33: warning: exported type TestToolchainCtrl should have comment or be unexported (golint)
    • Line 35: warning: exported method TestToolchainCtrl.RunLocal should have comment or be unexported (golint)
    • Line 39: warning: exported method TestToolchainCtrl.SendRemote should have comment or be unexported (golint)
    • Line 45: warning: exported method TestToolchainCtrl.RecvRemote should have comment or be unexported (golint)
    • Line 49: warning: exported method TestToolchainCtrl.NewArgParser should have comment or be unexported (golint)
    • Line 55: warning: exported function AddToStore should have comment or be unexported (golint)
    • Line 64: warning: exported method TestToolchainCtrlLocal.RunLocal should have comment or be unexported (golint)
    • Line 68: warning: exported method TestToolchainCtrlLocal.SendRemote should have comment or be unexported (golint)
    • Line 72: warning: exported method TestToolchainCtrlLocal.RecvRemote should have comment or be unexported (golint)
    • Line 76: warning: exported method TestToolchainCtrlLocal.NewArgParser should have comment or be unexported (golint)
    • Line 82: warning: exported function AddToStoreSim should have comment or be unexported (golint)
    • Line 118: warning: exported var TestToolchainExecutable should have comment or be unexported (golint)
    • Line 120: warning: exported type TestQuerier should have comment or be unexported (golint)
    • Line 122: warning: exported method TestQuerier.Version should have comment or be unexported (golint)
    • Line 126: warning: exported method TestQuerier.TargetArch should have comment or be unexported (golint)
    • Line 130: warning: exported method TestQuerier.IsPicDefault should have comment or be unexported (golint)
    • Line 134: warning: exported method TestQuerier.Kind should have comment or be unexported (golint)
    • Line 138: warning: exported method TestQuerier.Lang should have comment or be unexported (golint)
    • Line 142: warning: exported method TestQuerier.ModTime should have comment or be unexported (golint)
    • Line 146: warning: exported var DefaultTestToolchain should have comment or be unexported (golint)
    • Line 153: warning: exported type TestToolchainFinder should have comment or be unexported (golint)
    • Line 155: warning: exported method TestToolchainFinder.FindToolchains should have comment or be unexported (golint)
    • Line 164: warning: exported type SleepTask should have comment or be unexported (golint)
    • Line 170: warning: exported method SleepTask.Run should have comment or be unexported (golint)
    • Line 187: warning: exported method HashTask.Run should have comment or be unexported (golint)
    • Line 195: warning: exported type NoopRunner should have comment or be unexported (golint)
    • Line 197: warning: exported method NoopRunner.Run should have comment or be unexported (golint)
    • Line 201: warning: exported type Action should have comment or be unexported (golint)
    • Line 204: warning: exported const Sleep should have comment (or a comment on this block) or be unexported (golint)
    • Line 208: warning: exported type TestArgParser should have comment or be unexported (golint)
    • Line 215: warning: exported method TestArgParser.Parse should have comment or be unexported (golint)
    • Line 241: warning: exported method TestArgParser.CanRunRemote should have comment or be unexported (golint)
    • Line 245: warning: exported type NoopArgParser should have comment or be unexported (golint)
    • Line 247: warning: exported method NoopArgParser.Parse should have comment or be unexported (golint)
    • Line 249: warning: exported method NoopArgParser.CanRunRemote should have comment or be unexported (golint)
    • kubecc/pkg/test/ginkgo.go
    • Line 50: warning: exported function ExtendTimeoutsIfDebugging should have comment or be unexported (golint)
    • Line 57: warning: exported type ProtoEqualMatcher should have comment or be unexported (golint)
    • Line 61: warning: exported method ProtoEqualMatcher.Match should have comment or be unexported (golint)
    • Line 69: warning: exported method ProtoEqualMatcher.FailureMessage should have comment or be unexported (golint)
    • Line 73: warning: exported method ProtoEqualMatcher.NegatedFailureMessage should have comment or be unexported (golint)
    • Line 77: warning: exported function EqualProto should have comment or be unexported (golint)
    • kubecc/pkg/rec/resolver.go
    • Line 30: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 35: warning: exported type ResolveContext should have comment or be unexported (golint)
    • Line 43: warning: exported type ResolverTree should have comment or be unexported (golint)
    • Line 51: warning: exported function BuildRootResolver should have comment or be unexported (golint)
    • Line 64: warning: exported method ResolverTree.Walk should have comment or be unexported (golint)
    • kubecc/pkg/run/workerpool.go
    • Line 54: warning: exported type WorkerPoolOptions should have comment or be unexported (golint)
    • Line 59: warning: exported type WorkerPoolOption should have comment or be unexported (golint)
    • Line 61: warning: exported method WorkerPoolOptions.Apply should have comment or be unexported (golint)
    • Line 84: warning: exported type UpstreamQueue should have comment or be unexported (golint)
    • Line 97: warning: exported function SingularQueue should have comment or be unexported (golint)
    • Line 181: warning: exported method WorkerPool.Size should have comment or be unexported (golint)
    • kubecc/pkg/sleep/finder.go
    • Line 28: warning: exported type SleepToolchainFinder should have comment or be unexported (golint)
    • Line 30: warning: exported method SleepToolchainFinder.FindToolchains should have comment or be unexported (golint)
    • kubecc/pkg/kubecc/components/run.go
    • Line 56: warning: error var UnknownComponent should have name of the form ErrFoo (golint)
    • Line 56: warning: exported var UnknownComponent should have comment or be unexported (golint)
    • Line 65: warning: exported var RunCmd should have comment or be unexported (golint)
    • kubecc/pkg/metrics/status.go
    • Line 34: warning: exported type StatusController should have comment or be unexported (golint)
    • Line 43: warning: exported method StatusController.BeginInitialize should have comment or be unexported (golint)
    • Line 55: warning: exported method StatusController.EndInitialize should have comment or be unexported (golint)
    • Line 59: warning: exported method StatusController.WaitForStatusChanged should have comment or be unexported (golint)
    • Line 65: warning: exported method StatusController.ApplyCondition should have comment or be unexported (golint)
    • Line 150: warning: exported method StatusController.GetHealth should have comment or be unexported (golint)
    • Line 156: warning: exported method StatusController.StreamHealthUpdates should have comment or be unexported (golint)
    • kubecc/pkg/kubecc/commands/helpers.go
    • Line 68: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 77: 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)
    • kubecc/pkg/util/fs.go
    • Line 25: warning: exported type ReadDirStatFS should have comment or be unexported (golint)
    • Line 47: warning: exported var PreferredTempDirectory should have comment or be unexported (golint)
    • kubecc/pkg/util/logshim.go
    • Line 30: warning: exported method ZapfLogShim.Enabled should have comment or be unexported (golint)
    • Line 34: warning: exported method ZapfLogShim.Info should have comment or be unexported (golint)
    • Line 44: warning: exported method ZapfLogShim.V should have comment or be unexported (golint)
    • Line 48: warning: exported method ZapfLogShim.WithValues should have comment or be unexported (golint)
    • Line 54: warning: exported method ZapfLogShim.WithName should have comment or be unexported (golint)
    • kubecc/pkg/resolvers/scheduler.go
    • Line 30: warning: exported type SchedulerResolver should have comment or be unexported (golint)
    • Line 36: warning: exported method SchedulerResolver.Resolve should have comment or be unexported (golint)
    • Line 94: warning: exported method SchedulerResolver.Find should have comment or be unexported (golint)
    • kubecc/pkg/ui/statusdisplay.go
    • Line 32: warning: exported type StatusDisplay should have comment or be unexported (golint)
    • Line 43: warning: exported function NewStatusDisplay should have comment or be unexported (golint)
    • Line 70: warning: exported method StatusDisplay.Run should have comment or be unexported (golint)
    • kubecc/pkg/test/env_bufconn.go
    • Line 61: warning: exported method BufconnEnvironment.Serve should have comment or be unexported (golint)
    • Line 130: warning: exported method BufconnEnvironment.DefaultConfig should have comment or be unexported (golint)
    • Line 134: warning: exported function NewBufconnEnvironment should have comment or be unexported (golint)
    • Line 166: warning: exported function NewDefaultBufconnEnvironment should have comment or be unexported (golint)
    • Line 170: warning: exported function NewBufconnEnvironmentWithLogLevel should have comment or be unexported (golint)
    • Line 176: warning: exported method BufconnEnvironment.Dial should have comment or be unexported (golint)
    • Line 208: warning: exported method BufconnEnvironment.Context should have comment or be unexported (golint)
    • Line 212: warning: exported method BufconnEnvironment.Log should have comment or be unexported (golint)
    • Line 216: warning: exported method BufconnEnvironment.Shutdown should have comment or be unexported (golint)
    • Line 220: warning: exported method BufconnEnvironment.WaitForReady should have comment or be unexported (golint)
    • Line 250: warning: exported method BufconnEnvironment.MetricF should have comment or be unexported (golint)
    • kubecc/pkg/types/marshal.go
    • Line 36: warning: exported function NewStringSliceEncoder should have comment or be unexported (golint)
    • Line 42: warning: exported method RunRequest.MarshalLogObject should have comment or be unexported (golint)
    • Line 50: warning: exported method RunResponse.MarshalLogObject should have comment or be unexported (golint)
    • Line 55: warning: exported method CompileResponse.MarshalLogObject should have comment or be unexported (golint)
    • kubecc/pkg/resolvers/monitor.go
    • Line 30: warning: exported type MonitorResolver should have comment or be unexported (golint)
    • Line 36: warning: exported method MonitorResolver.Resolve should have comment or be unexported (golint)
    • Line 95: warning: exported method MonitorResolver.Find should have comment or be unexported (golint)
    • kubecc/pkg/meta/context.go
    • Line 55: warning: exported type InheritOptions should have comment or be unexported (golint)
    • Line 60: warning: exported type ImportOptions should have comment or be unexported (golint)
    • Line 66: warning: exported function ImportFromIncoming should have comment or be unexported (golint)
    • Line 128: warning: exported function ExportToOutgoing should have comment or be unexported (golint)
    • Line 143: warning: receiver name c should be consistent with previous receiver name ci for contextImpl (golint)
    • Line 170: warning: exported function WithValue should have comment or be unexported (golint)
    • Line 183: warning: exported function WithProvider should have comment or be unexported (golint)
    • kubecc/pkg/meta/metadata.go
    • Line 30: warning: exported type MetadataKey should have comment or be unexported (golint)
    • Line 34: warning: exported type InitProvider should have comment or be unexported (golint)
    • Line 39: warning: exported type Provider should have comment or be unexported (golint)
    • Line 45: warning: exported function Component should have comment or be unexported (golint)
    • Line 53: warning: exported function UUID should have comment or be unexported (golint)
    • Line 61: warning: exported function Log should have comment or be unexported (golint)
    • Line 69: warning: exported function Tracer should have comment or be unexported (golint)
    • Line 77: warning: exported function SystemInfo should have comment or be unexported (golint)
    • kubecc/pkg/rec/creators.go
    • Line 22: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 32: warning: exported var ErrMustExist should have comment or be unexported (golint)
    • Line 35: warning: exported var MustExist should have comment or be unexported (golint)
    • Line 40: warning: exported function FromTemplate should have comment or be unexported (golint)
    • kubecc/pkg/rec/find.go
    • Line 33: warning: exported type ObjectCreator should have comment or be unexported (golint)
    • Line 35: warning: exported type FindOptions should have comment or be unexported (golint)
    • Line 41: warning: exported method FindOptions.Apply should have comment or be unexported (golint)
    • Line 47: warning: exported function WithCreator should have comment or be unexported (golint)
    • Line 53: warning: exported function RecreateIfChanged should have comment or be unexported (golint)
    • Line 59: warning: exported function Find should have comment or be unexported (golint)
    • Line 135: warning: exported function ShouldRequeue should have comment or be unexported (golint)
    • kubecc/pkg/metrics/completers.go
    • Line 20: warning: exported type UsageLimitsCompleter should have comment or be unexported (golint)
    • Line 24: warning: exported type TaskStatusCompleter should have comment or be unexported (golint)
    • Line 28: warning: exported type TasksCompletedCompleter should have comment or be unexported (golint)
    • kubecc/pkg/rec/util.go
    • Line 27: warning: exported function DoNotRequeue should have comment or be unexported (golint)
    • Line 31: warning: exported function RequeueAfter should have comment or be unexported (golint)
    • Line 35: warning: exported function RequeueWithErr should have comment or be unexported (golint)
    • Line 39: warning: exported function RequeueWith should have comment or be unexported (golint)
    • Line 46: warning: exported function Requeue should have comment or be unexported (golint)
    • Line 50: warning: exported var ErrCancelReconcile should have comment or be unexported (golint)
    • Line 52: warning: exported function CancelReconcile should have comment or be unexported (golint)
    • kubecc/pkg/clients/noop.go
    • Line 29: warning: exported function NewNoopMetricsProvider should have comment or be unexported (golint)
    • Line 35: warning: context.Context should be the first parameter of a function (golint)
    • Line 39: warning: exported function NewNoopMetricsListener should have comment or be unexported (golint)
    • kubecc/pkg/run/errors.go
    • Line 22: warning: exported type CompilerError should have comment or be unexported (golint)
    • Line 27: warning: exported function NewCompilerError should have comment or be unexported (golint)
    • Line 37: warning: exported function IsCompilerError should have comment or be unexported (golint)
    • Line 42: warning: exported var ErrNoAgentsRetry should have comment or be unexported (golint)
    • Line 43: warning: exported var ErrNoAgentsRunLocal should have comment or be unexported (golint)
    • kubecc/pkg/ui/sources.go
    • Line 120: warning: exported function NewAgentDataSource should have comment or be unexported (golint)
    • Line 127: warning: exported function NewConsumerdDataSource should have comment or be unexported (golint)
    • Line 134: warning: exported function NewSchedulerDataSource should have comment or be unexported (golint)
    • Line 141: warning: exported function NewMonitorDataSource should have comment or be unexported (golint)
    • Line 148: warning: exported function NewCacheDataSource should have comment or be unexported (golint)
    • Line 155: warning: exported function NewRoutesDataSource should have comment or be unexported (golint)
    • Line 290: warning: receiver name a should be consistent with previous receiver name c for consumerdDataSource (golint)
    • Line 394: warning: receiver name a should be consistent with previous receiver name c for schedulerDataSource (golint)
    • Line 455: warning: receiver name a should be consistent with previous receiver name c for monitorDataSource (golint)
    • Line 516: warning: receiver name a should be consistent with previous receiver name c for cacheDataSource (golint)
    • Line 605: warning: receiver name a should be consistent with previous receiver name c for routesDataSource (golint)
    • kubecc/pkg/sleep/controller/controller.go
    • Line 27: warning: exported type SleepToolchainCtrl should have comment or be unexported (golint)
    • Line 29: warning: exported method SleepToolchainCtrl.RunLocal should have comment or be unexported (golint)
    • Line 33: warning: exported method SleepToolchainCtrl.SendRemote should have comment or be unexported (golint)
    • Line 39: warning: exported method SleepToolchainCtrl.RecvRemote should have comment or be unexported (golint)
    • Line 43: warning: exported method SleepToolchainCtrl.NewArgParser should have comment or be unexported (golint)
    • Line 47: warning: exported function AddToStore should have comment or be unexported (golint)
    • Line 51: warning: exported type NoopArgParser should have comment or be unexported (golint)
    • Line 53: warning: exported method NoopArgParser.Parse should have comment or be unexported (golint)
    • Line 55: warning: exported method NoopArgParser.CanRunRemote should have comment or be unexported (golint)
    • kubecc/pkg/clients/availability.go
    • Line 42: warning: exported type RemoteStatus should have comment or be unexported (golint)
    • Line 45: warning: exported const Unavailable should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported type AvailabilityChecker should have comment or be unexported (golint)
    • Line 55: warning: exported type AvailabilityFilter should have comment or be unexported (golint)
    • Line 69: warning: exported function NewAvailabilityChecker should have comment or be unexported (golint)
    • Line 103: warning: exported method AvailabilityChecker.OnComponentAvailable should have comment or be unexported (golint)
    • kubecc/pkg/apps/consumerd/telemetry.go
    • Line 66: warning: exported method Telemetry.RecordEntry should have comment or be unexported (golint)
    • Line 76: warning: exported type Entry should have comment or be unexported (golint)
    • Line 82: warning: exported type EntryKind should have comment or be unexported (golint)
    • Line 85: warning: exported const Invalid should have comment (or a comment on this block) or be unexported (golint)
    • Line 93: warning: exported method Telemetry.StartRecording should have comment or be unexported (golint)
    • Line 112: warning: exported method Telemetry.StopRecording should have comment or be unexported (golint)
    • Line 117: warning: exported method Telemetry.Clear should have comment or be unexported (golint)
    • Line 172: warning: exported type Entries should have comment or be unexported (golint)
    • Line 181: warning: exported type TelemetryConfig should have comment or be unexported (golint)
    • Line 187: warning: exported method Entries.Filter should have comment or be unexported (golint)
    • Line 225: warning: exported method Entries.LinearRegression should have comment or be unexported (golint)
    • Line 240: warning: exported method Entries.ToXYs should have comment or be unexported (golint)
    • Line 254: warning: exported method Entries.Deltas should have comment or be unexported (golint)
    • Line 272: warning: exported method Entries.EWMA should have comment or be unexported (golint)
    • kubecc/pkg/test/querier.go
    • Line 33: warning: exported method SampleQuerier.IsPicDefault should have comment or be unexported (golint)
    • Line 45: warning: exported method SampleQuerier.TargetArch should have comment or be unexported (golint)
    • Line 57: warning: exported method SampleQuerier.Version should have comment or be unexported (golint)
    • Line 69: warning: exported method SampleQuerier.Kind should have comment or be unexported (golint)
    • Line 81: warning: exported method SampleQuerier.Lang should have comment or be unexported (golint)
    • Line 95: warning: exported method SampleQuerier.ModTime should have comment or be unexported (golint)
    • kubecc/pkg/cc/controller/controller.go
    • Line 28: warning: exported type CCToolchainCtrl should have comment or be unexported (golint)
    • Line 31: warning: exported method CCToolchainCtrl.RunLocal should have comment or be unexported (golint)
    • Line 37: warning: exported method CCToolchainCtrl.SendRemote should have comment or be unexported (golint)
    • Line 44: warning: exported method CCToolchainCtrl.RecvRemote should have comment or be unexported (golint)
    • Line 48: warning: exported method CCToolchainCtrl.NewArgParser should have comment or be unexported (golint)
    • Line 52: warning: exported function AddToStore should have comment or be unexported (golint)
    • kubecc/pkg/kubecc/root.go
    • Line 29: warning: should not use dot imports (golint)
    • Line 33: warning: exported function CreateRootCmd should have comment or be unexported (golint)
    • Line 89: warning: exported function Execute should have comment or be unexported (golint)
    • kubecc/pkg/apps/consumerd/server.go
    • Line 62: warning: exported type ConsumerdServerOptions should have comment or be unexported (golint)
    • Line 70: warning: exported type ConsumerdServerOption should have comment or be unexported (golint)
    • Line 72: warning: exported method ConsumerdServerOptions.Apply should have comment or be unexported (golint)
    • Line 78: warning: exported function WithToolchainFinders should have comment or be unexported (golint)
    • Line 84: warning: exported function WithToolchainRunners should have comment or be unexported (golint)
    • Line 90: warning: exported function WithSchedulerClient should have comment or be unexported (golint)
    • Line 98: warning: comment on exported function WithMonitorClient should be of the form "WithMonitorClient ..." (golint)
    • Line 108: warning: exported function WithQueueOptions should have comment or be unexported (golint)
    • Line 114: warning: exported function NewConsumerdServer should have comment or be unexported (golint)
    • Line 226: warning: receiver name s should be consistent with previous receiver name c for consumerdServer (golint)
    • Line 232: warning: receiver name s should be consistent with previous receiver name c for consumerdServer (golint)
    • Line 238: warning: receiver name s should be consistent with previous receiver name c for consumerdServer (golint)
    • Line 249: warning: receiver name s should be consistent with previous receiver name c for consumerdServer (golint)
    • Line 255: warning: receiver name s should be consistent with previous receiver name c for consumerdServer (golint)
    • kubecc/pkg/servers/grpc.go
    • Line 44: warning: exported type GRPCOptions should have comment or be unexported (golint)
    • Line 51: warning: exported method GRPCOptions.Apply should have comment or be unexported (golint)
    • Line 57: warning: exported function WithTLS should have comment or be unexported (golint)
    • Line 63: warning: exported function WithDialOpts should have comment or be unexported (golint)
    • Line 69: warning: exported function WithServerOpts should have comment or be unexported (golint)
    • Line 75: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 112: warning: exported function DialService should have comment or be unexported (golint)
    • Line 126: warning: exported function Dial should have comment or be unexported (golint)
    • Line 165: warning: exported function StartSpanFromServer should have comment or be unexported (golint)
    • kubecc/pkg/apps/agent/server.go
    • Line 48: warning: exported type AgentServer should have comment or be unexported (golint)
    • Line 63: warning: exported type AgentServerOptions should have comment or be unexported (golint)
    • Line 71: warning: exported type AgentServerOption should have comment or be unexported (golint)
    • Line 73: warning: exported method AgentServerOptions.Apply should have comment or be unexported (golint)
    • Line 79: warning: exported function WithToolchainFinders should have comment or be unexported (golint)
    • Line 85: warning: exported function WithToolchainRunners should have comment or be unexported (golint)
    • Line 91: warning: exported function WithSchedulerClient should have comment or be unexported (golint)
    • Line 97: warning: exported function WithMonitorClient should have comment or be unexported (golint)
    • Line 103: warning: exported function WithUsageLimits should have comment or be unexported (golint)
    • Line 109: warning: exported function NewAgentServer should have comment or be unexported (golint)
    • Line 201: warning: exported method AgentServer.StartMetricsProvider should have comment or be unexported (golint)
    • Line 212: warning: exported method AgentServer.HandleStream should have comment or be unexported (golint)
    • Line 239: warning: exported method AgentServer.TryConnect should have comment or be unexported (golint)
    • Line 248: warning: exported method AgentServer.Target should have comment or be unexported (golint)
    • kubecc/pkg/storage/s3.go
    • Line 45: warning: error var S3StorageError should have name of the form ErrFoo (golint)
    • Line 45: warning: exported var S3StorageError should have comment or be unexported (golint)
    • Line 46: warning: error var ConfigurationError should have name of the form ErrFoo (golint)
    • Line 46: warning: exported var ConfigurationError should have comment or be unexported (golint)
    • Line 58: warning: exported function NewS3StorageProvider should have comment or be unexported (golint)
    • kubecc/pkg/toolchains/query.go
    • Line 42: warning: exported type ExecQuerier should have comment or be unexported (golint)
    • Line 50: warning: exported method ExecQuerier.IsPicDefault should have comment or be unexported (golint)
    • Line 64: warning: exported method ExecQuerier.TargetArch should have comment or be unexported (golint)
    • Line 82: warning: exported method ExecQuerier.Version should have comment or be unexported (golint)
    • Line 96: warning: exported method ExecQuerier.Kind should have comment or be unexported (golint)
    • Line 108: warning: exported method ExecQuerier.Lang should have comment or be unexported (golint)
    • Line 120: warning: exported method ExecQuerier.ModTime should have comment or be unexported (golint)
    • kubecc/pkg/storage/chain.go
    • Line 57: warning: exported method ChainStorageProvider.Location should have comment or be unexported (golint)
    • Line 61: warning: exported method ChainStorageProvider.Configure should have comment or be unexported (golint)
    • Line 74: warning: exported method ChainStorageProvider.Put should have comment or be unexported (golint)
    • Line 87: warning: exported method ChainStorageProvider.Get should have comment or be unexported (golint)
    • Line 123: warning: exported method ChainStorageProvider.Query should have comment or be unexported (golint)
    • Line 143: warning: exported method ChainStorageProvider.UsageInfo should have comment or be unexported (golint)
    • Line 150: warning: exported method ChainStorageProvider.CacheHits should have comment or be unexported (golint)
    • kubecc/pkg/apps/scheduler/router.go
    • Line 33: warning: exported var ErrNoAgents should have comment or be unexported (golint)
    • Line 124: warning: exported type HookAction should have comment or be unexported (golint)
    • Line 127: warning: exported const ProcessRequestNormally should have comment (or a comment on this block) or be unexported (golint)
    • Line 132: warning: exported type RouterHook should have comment or be unexported (golint)
    • Line 136: warning: exported type RouterOptions should have comment or be unexported (golint)
    • Line 140: warning: exported type RouterOption should have comment or be unexported (golint)
    • Line 142: warning: exported method RouterOptions.Apply should have comment or be unexported (golint)
    • Line 148: warning: exported function WithHooks should have comment or be unexported (golint)
    • Line 154: warning: exported type Router should have comment or be unexported (golint)
    • Line 165: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 229: warning: exported method Router.AddSender should have comment or be unexported (golint)
    • Line 242: warning: exported method Router.AddReceiver should have comment or be unexported (golint)
    • Line 258: warning: exported method Router.UpdateSenderToolchains should have comment or be unexported (golint)
    • Line 301: warning: exported method Router.Route should have comment or be unexported (golint)
    • Line 335: warning: exported method Router.GetRoutes should have comment or be unexported (golint)
    • kubecc/pkg/host/hardware.go
    • Line 31: warning: exported function GetSystemInfo should have comment or be unexported (golint)
    • Line 44: warning: exported var SystemInfo should have comment or be unexported (golint)
    • kubecc/pkg/apps/cachesrv/server.go
    • Line 36: warning: exported type CacheServer should have comment or be unexported (golint)
    • Line 46: warning: exported type CacheServerOptions should have comment or be unexported (golint)
    • Line 51: warning: exported type CacheServerOption should have comment or be unexported (golint)
    • Line 53: warning: exported method CacheServerOptions.Apply should have comment or be unexported (golint)
    • Line 59: warning: exported function WithStorageProvider should have comment or be unexported (golint)
    • Line 65: warning: exported function WithMonitorClient should have comment or be unexported (golint)
    • Line 72: warning: exported function NewCacheServer should have comment or be unexported (golint)
    • Line 109: warning: exported method CacheServer.Push should have comment or be unexported (golint)
    • Line 116: warning: exported method CacheServer.Pull should have comment or be unexported (golint)
    • Line 124: warning: exported method CacheServer.Query should have comment or be unexported (golint)
    • Line 135: warning: exported method CacheServer.Sync should have comment or be unexported (golint)
    • Line 147: warning: exported method CacheServer.StartMetricsProvider should have comment or be unexported (golint)
    • kubecc/pkg/host/sysfs.go
    • Line 49: warning: exported function CfsQuota should have comment or be unexported (golint)
    • Line 59: warning: exported function CfsPeriod should have comment or be unexported (golint)
    • Line 68: warning: exported function CpuStats should have comment or be unexported (golint)
    • kubecc/pkg/run/executor.go
    • Line 28: warning: exported type ExecutorStatus should have comment or be unexported (golint)
    • Line 37: warning: exported type QueuedExecutor should have comment or be unexported (golint)
    • Line 45: warning: exported type ExecutorOptions should have comment or be unexported (golint)
    • Line 48: warning: exported type ExecutorOption should have comment or be unexported (golint)
    • Line 55: warning: exported method ExecutorOptions.Apply should have comment or be unexported (golint)
    • Line 61: warning: exported function WithUsageLimits should have comment or be unexported (golint)
    • Line 67: warning: exported function NewQueuedExecutor should have comment or be unexported (golint)
    • Line 94: warning: exported function NewDelegatingExecutor should have comment or be unexported (golint)
    • Line 100: warning: exported method QueuedExecutor.SetUsageLimits should have comment or be unexported (golint)
    • Line 105: warning: exported method QueuedExecutor.Exec should have comment or be unexported (golint)
    • Line 121: warning: exported method QueuedExecutor.ExecAsync should have comment or be unexported (golint)
    • Line 146: warning: exported method QueuedExecutor.CompleteUsageLimits should have comment or be unexported (golint)
    • Line 150: warning: exported method QueuedExecutor.CompleteTaskStatus should have comment or be unexported (golint)
    • Line 163: warning: exported method DelegatingExecutor.Exec should have comment or be unexported (golint)
    • Line 170: warning: exported method DelegatingExecutor.ExecAsync should have comment or be unexported (golint)
    • Line 184: warning: exported method DelegatingExecutor.CompleteUsageLimits should have comment or be unexported (golint)
    • Line 186: warning: exported method DelegatingExecutor.CompleteTaskStatus should have comment or be unexported (golint)
    • kubecc/pkg/run/task.go
    • Line 34: warning: exported var ErrUnsupportedTask should have comment or be unexported (golint)
    • Line 73: warning: exported method PairContext.Deadline should have comment or be unexported (golint)
    • Line 91: warning: exported method PairContext.Done should have comment or be unexported (golint)
    • Line 104: warning: exported method PairContext.Err should have comment or be unexported (golint)
    • Line 111: warning: exported method PairContext.Value should have comment or be unexported (golint)
    • Line 140: warning: comment on exported method PackagedRequest.Run should be of the form "Run ..." (golint)
    • Line 149: warning: exported method PackagedRequest.Response should have comment or be unexported (golint)
    • Line 188: warning: exported type SchedulerClientStream should have comment or be unexported (golint)
    • Line 212: warning: exported type ProcessOptions should have comment or be unexported (golint)
    • Line 223: warning: exported type ResultOptions should have comment or be unexported (golint)
    • Line 229: warning: exported type TaskOptions should have comment or be unexported (golint)
    • Line 237: warning: exported method TaskOptions.Apply should have comment or be unexported (golint)
    • Line 243: warning: exported type TaskOption should have comment or be unexported (golint)
    • Line 245: warning: exported function WithEnv should have comment or be unexported (golint)
    • Line 251: warning: exported function WithArgs should have comment or be unexported (golint)
    • Line 257: warning: exported function WithWorkDir should have comment or be unexported (golint)
    • Line 263: warning: exported function WithOutputStreams should have comment or be unexported (golint)
    • Line 270: warning: exported function WithStdin should have comment or be unexported (golint)
    • Line 276: warning: exported function WithUidGid should have comment or be unexported (golint)
    • Line 283: warning: exported function WithOutputWriter should have comment or be unexported (golint)
    • Line 289: warning: exported function WithOutputVar should have comment or be unexported (golint)
    • Line 295: warning: exported function InPlace should have comment or be unexported (golint)
    • Line 301: warning: exported function WithContext should have comment or be unexported (golint)
    • Line 307: warning: exported function WithLog should have comment or be unexported (golint)
    • kubecc/pkg/cc/args.go
    • Line 34: warning: exported type RunMode should have comment or be unexported (golint)
    • Line 35: warning: exported type ActionOpt should have comment or be unexported (golint)
    • Line 38: warning: exported const Unset should have comment (or a comment on this block) or be unexported (golint)
    • Line 56: warning: exported var ProfileArgs should have comment or be unexported (golint)
    • Line 140: warning: exported method ArgParser.CanRunRemote should have comment or be unexported (golint)
    • Line 144: warning: comment on exported function NewArgParserFromOS should be of the form "NewArgParserFromOS ..." (golint)
    • Line 158: warning: exported method ArgParser.MarshalLogObject should have comment or be unexported (golint)
    • Line 158: warning: receiver name a should be consistent with previous receiver name ap for ArgParser (golint)
    • kubecc/pkg/kubecc/internal/common.go
    • Line 34: warning: exported var CLIContext should have comment or be unexported (golint)
    • Line 39: warning: exported function InitCLI should have comment or be unexported (golint)
    • Line 59: warning: exported function InitCLIQuiet should have comment or be unexported (golint)
    • kubecc/pkg/types/functions.go
    • Line 43: warning: exported method Key.ShortID should have comment or be unexported (golint)
    • Line 47: warning: exported method Toolchain.Hash should have comment or be unexported (golint)
    • Line 59: warning: exported method CompileRequest.Hash should have comment or be unexported (golint)
    • Line 68: warning: exported var ErrInvalidFormat should have comment or be unexported (golint)
    • Line 71: warning: exported function ParseKey should have comment or be unexported (golint)
    • Line 82: warning: exported method Toolchain.CommonNames should have comment or be unexported (golint)
    • kubecc/pkg/util/patch.go
    • Line 29: warning: exported var CalculatePatch should have comment or be unexported (golint)
    • Line 30: warning: exported var SetLastAppliedAnnotation should have comment or be unexported (golint)
    • kubecc/pkg/cc/finder.go
    • Line 35: warning: exported type CCFinder should have comment or be unexported (golint)
    • Line 37: warning: exported method CCFinder.FindToolchains should have comment or be unexported (golint)
    • kubecc/pkg/util/pause.go
    • Line 29: warning: exported type PauseControllerOptions should have comment or be unexported (golint)
    • Line 33: warning: exported type PauseControllerOption should have comment or be unexported (golint)
    • Line 35: warning: exported method PauseControllerOptions.Apply should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!