Preparing report...

Report for github.com/wavefronthq/wavefront-kubernetes-collector

A+    Excellent!    Found 77 issues across 146 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!


gocyclo96%

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.


golint48%

Golint is a linter for Go source code.

    • wavefront-kubernetes-collector/internal/filter/glob.go
    • Line 12: warning: exported type Filter should have comment or be unexported (golint)
    • Line 26: warning: exported function NewGlobFilter should have comment or be unexported (golint)
    • Line 37: warning: exported function Compile should have comment or be unexported (golint)
    • Line 49: warning: exported function MultiCompile should have comment or be unexported (golint)
    • Line 63: warning: exported function MultiSetCompile should have comment or be unexported (golint)
    • Line 103: warning: exported function MatchesTags should have comment or be unexported (golint)
    • Line 114: warning: exported function MatchesAllTags should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/flags/utils.go
    • Line 15: warning: comment on exported function DecodeTags should be of the form "DecodeTags ..." (golint)
    • Line 37: warning: exported function DecodeValue should have comment or be unexported (golint)
    • Line 45: warning: exported function DecodeBoolean should have comment or be unexported (golint)
    • Line 57: warning: exported function ParseDuration should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/configuration/config.go
    • Line 16: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 57: warning: exported type EventsConfig should have comment or be unexported (golint)
    • Line 61: warning: exported type EventsFilter should have comment or be unexported (golint)
    • Line 102: warning: comment on exported type WavefrontSinkConfig should be of the form "WavefrontSinkConfig ..." (with optional leading article) (golint)
    • Line 143: warning: exported type CollectionConfig should have comment or be unexported (golint)
    • Line 148: warning: comment on exported type SummarySourceConfig should be of the form "SummarySourceConfig ..." (with optional leading article) (golint)
    • Line 176: warning: comment on exported type PrometheusSourceConfig should be of the form "PrometheusSourceConfig ..." (with optional leading article) (golint)
    • Line 194: warning: comment on exported type TelegrafSourceConfig should be of the form "TelegrafSourceConfig ..." (with optional leading article) (golint)
    • Line 213: warning: exported type SystemdSourceConfig should have comment or be unexported (golint)
    • Line 229: warning: exported type StatsSourceConfig should have comment or be unexported (golint)
    • Line 235: warning: exported type KubernetesStateSourceConfig should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/plugins/events/eventrouter.go
    • Line 1: warning: package comment should be of the form "Package events ..." (golint)
    • Line 29: warning: exported var Log should have comment or be unexported (golint)
    • Line 35: warning: exported type EventRouter should have comment or be unexported (golint)
    • Line 47: warning: exported function NewEventRouter should have comment or be unexported (golint)
    • Line 71: warning: exported method EventRouter.Start should have comment or be unexported (golint)
    • Line 79: warning: exported method EventRouter.Resume should have comment or be unexported (golint)
    • Line 97: warning: exported method EventRouter.Pause should have comment or be unexported (golint)
    • Line 103: warning: exported method EventRouter.Stop should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/plugins/sinks/factory.go
    • Line 27: warning: exported type SinkFactory should have comment or be unexported (golint)
    • Line 30: warning: exported method SinkFactory.Build should have comment or be unexported (golint)
    • Line 34: warning: exported method SinkFactory.BuildAll should have comment or be unexported (golint)
    • Line 52: warning: exported function NewSinkFactory should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/discovery/fake.go
    • Line 11: warning: exported function FakeService should have comment or be unexported (golint)
    • Line 24: warning: exported function FakePod should have comment or be unexported (golint)
    • Line 37: warning: exported type FakeDiscoverer should have comment or be unexported (golint)
    • Line 39: warning: exported method FakeDiscoverer.Discover should have comment or be unexported (golint)
    • Line 40: warning: exported method FakeDiscoverer.Delete should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/plugins/sources/summary/summary.go
    • Line 33: warning: should not use dot imports (golint)
    • Line 45: warning: comment on exported const VolumeResourcePrefix should be of the form "VolumeResourcePrefix ..." (golint)
    • Line 55: warning: exported type NodeInfo should have comment or be unexported (golint)
    • Line 69: warning: exported function NewSummaryMetricsSource should have comment or be unexported (golint)
    • Line 117: warning: exported const RootFsKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 528: warning: exported function NewSummaryProvider should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/metrics/types.go
    • Line 27: warning: exported type MetricType should have comment or be unexported (golint)
    • Line 30: warning: exported const MetricCumulative should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 47: warning: exported type ValueType should have comment or be unexported (golint)
    • Line 50: warning: exported const ValueInt64 should have comment (or a comment on this block) or be unexported (golint)
    • Line 64: warning: exported type UnitsType should have comment or be unexported (golint)
    • Line 67: warning: comment on exported const UnitsCount should be of the form "UnitsCount ..." (golint)
    • Line 69: warning: comment on exported const UnitsBytes should be of the form "UnitsBytes ..." (golint)
    • Line 71: warning: comment on exported const UnitsMilliseconds should be of the form "UnitsMilliseconds ..." (golint)
    • Line 73: warning: comment on exported const UnitsNanoseconds should be of the form "UnitsNanoseconds ..." (golint)
    • Line 75: warning: comment on exported const UnitsMillicores should be of the form "UnitsMillicores ..." (golint)
    • Line 93: warning: exported type MetricValue should have comment or be unexported (golint)
    • Line 100: warning: exported method MetricValue.GetValue should have comment or be unexported (golint)
    • Line 110: warning: exported type LabeledMetric should have comment or be unexported (golint)
    • Line 116: warning: exported method LabeledMetric.GetValue should have comment or be unexported (golint)
    • Line 126: warning: exported type MetricSet should have comment or be unexported (golint)
    • Line 140: warning: exported type DataBatch should have comment or be unexported (golint)
    • Line 147: warning: comment on exported type MetricsSource should be of the form "MetricsSource ..." (with optional leading article) (golint)
    • Line 154: warning: comment on exported type MetricsSourceProvider should be of the form "MetricsSourceProvider ..." (with optional leading article) (golint)
    • Line 162: warning: exported type DataSink should have comment or be unexported (golint)
    • Line 169: warning: exported type DataProcessor should have comment or be unexported (golint)
    • Line 174: warning: exported type LabelPair should have comment or be unexported (golint)
    • Line 179: warning: comment on exported type MetricPoint should be of the form "MetricPoint ..." (with optional leading article) (golint)
    • Line 190: warning: exported method MetricPoint.SetLabelPairs should have comment or be unexported (golint)
    • Line 194: warning: exported method MetricPoint.GetTags should have comment or be unexported (golint)
    • Line 213: warning: exported type ProviderFactory should have comment or be unexported (golint)
    • Line 218: warning: exported type ConfigurableMetricsSourceProvider should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/discovery/configs.go
    • Line 12: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 39: warning: comment on exported type GlobalConfig should be of the form "GlobalConfig ..." (with optional leading article) (golint)
    • Line 47: warning: comment on exported type PluginConfig should be of the form "PluginConfig ..." (with optional leading article) (golint)
    • Line 88: warning: exported type CollectionConfig should have comment or be unexported (golint)
    • Line 93: warning: comment on exported type Selectors should be of the form "Selectors ..." (with optional leading article) (golint)
    • Line 108: warning: comment on exported type PrometheusConfig should be of the form "PrometheusConfig ..." (with optional leading article) (golint)
    • wavefront-kubernetes-collector/plugins/sinks/wavefront/testsender.go
    • Line 17: warning: exported type TestSender should have comment or be unexported (golint)
    • Line 22: warning: exported function NewTestSender should have comment or be unexported (golint)
    • Line 29: warning: exported method TestSender.SendMetric should have comment or be unexported (golint)
    • Line 37: warning: exported method TestSender.GetReceivedLines should have comment or be unexported (golint)
    • Line 43: warning: exported method TestSender.SendEvent should have comment or be unexported (golint)
    • Line 82: warning: exported method TestSender.SendDeltaCounter should have comment or be unexported (golint)
    • Line 86: warning: exported method TestSender.SendDistribution should have comment or be unexported (golint)
    • Line 90: warning: exported method TestSender.SendSpan should have comment or be unexported (golint)
    • Line 94: warning: exported method TestSender.Flush should have comment or be unexported (golint)
    • Line 98: warning: exported method TestSender.GetFailureCount should have comment or be unexported (golint)
    • Line 102: warning: exported method TestSender.Start should have comment or be unexported (golint)
    • Line 105: warning: exported method TestSender.Close should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/filter/config.go
    • Line 7: warning: exported const MetricWhitelist should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 49: warning: exported method Config.Empty should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/metrics/labels.go
    • Line 23: warning: exported var LabelMetricSetType should have comment or be unexported (golint)
    • Line 78: warning: comment on exported var LabelCustomMetricName should be of the form "LabelCustomMetricName ..." (golint)
    • Line 113: warning: exported type LabelDescriptor should have comment or be unexported (golint)
    • Line 172: warning: exported function CommonLabels should have comment or be unexported (golint)
    • Line 178: warning: exported function ContainerLabels should have comment or be unexported (golint)
    • Line 184: warning: exported function PodLabels should have comment or be unexported (golint)
    • Line 190: warning: exported function MetricLabels should have comment or be unexported (golint)
    • Line 197: warning: exported function SupportedLabels should have comment or be unexported (golint)
    • Line 203: warning: exported function GcmLabels should have comment or be unexported (golint)
    • Line 210: warning: exported function GcmNodeAutoscalingLabels should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/metrics/metrics.go
    • Line 29: warning: exported const CustomMetricPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: comment on exported var StandardMetrics should be of the form "StandardMetrics ..." (golint)
    • Line 49: warning: comment on exported var AdditionalMetrics should be of the form "AdditionalMetrics ..." (golint)
    • Line 58: warning: comment on exported var RateMetrics should be of the form "RateMetrics ..." (golint)
    • Line 70: warning: exported var RateMetricsMapping should have comment or be unexported (golint)
    • Line 81: warning: exported var LabeledMetrics should have comment or be unexported (golint)
    • Line 96: warning: exported var NodeAutoscalingMetrics should have comment or be unexported (golint)
    • Line 111: warning: exported var CpuMetrics should have comment or be unexported (golint)
    • Line 122: warning: exported var FilesystemMetrics should have comment or be unexported (golint)
    • Line 129: warning: exported var MemoryMetrics should have comment or be unexported (golint)
    • Line 145: warning: exported var NetworkMetrics should have comment or be unexported (golint)
    • Line 156: warning: comment on exported var ResourceRequestMetrics should be of the form "ResourceRequestMetrics ..." (golint)
    • Line 165: warning: exported type MetricFamily should have comment or be unexported (golint)
    • Line 168: warning: exported const MetricFamilyCpu should have comment (or a comment on this block) or be unexported (golint)
    • Line 175: warning: exported var MetricFamilies should have comment or be unexported (golint)
    • Line 182: warning: exported function MetricFamilyForName should have comment or be unexported (golint)
    • Line 193: warning: exported var AllMetrics should have comment or be unexported (golint)
    • Line 196: warning: comment on exported var MetricUptime should be of the form "MetricUptime ..." (golint)
    • Line 216: warning: exported var MetricRestartCount should have comment or be unexported (golint)
    • Line 226: warning: exported var MetricCpuLoad should have comment or be unexported (golint)
    • Line 245: warning: exported var MetricCpuUsage should have comment or be unexported (golint)
    • Line 264: warning: exported var MetricCpuUsageCores should have comment or be unexported (golint)
    • Line 274: warning: exported var MetricEphemeralStorageUsage should have comment or be unexported (golint)
    • Line 283: warning: exported var MetricMemoryUsage should have comment or be unexported (golint)
    • Line 302: warning: exported var MetricMemoryCache should have comment or be unexported (golint)
    • Line 321: warning: exported var MetricMemoryRSS should have comment or be unexported (golint)
    • Line 340: warning: exported var MetricMemoryWorkingSet should have comment or be unexported (golint)
    • Line 359: warning: exported var MetricMemoryPageFaults should have comment or be unexported (golint)
    • Line 378: warning: exported var MetricMemoryMajorPageFaults should have comment or be unexported (golint)
    • Line 397: warning: exported var MetricNetworkRx should have comment or be unexported (golint)
    • Line 421: warning: exported var MetricNetworkRxErrors should have comment or be unexported (golint)
    • Line 445: warning: exported var MetricNetworkTx should have comment or be unexported (golint)
    • Line 469: warning: exported var MetricNetworkTxErrors should have comment or be unexported (golint)
    • Line 493: warning: comment on exported var MetricCpuRequest should be of the form "MetricCpuRequest ..." (golint)
    • Line 504: warning: exported var MetricCpuLimit should have comment or be unexported (golint)
    • Line 514: warning: exported var MetricMemoryRequest should have comment or be unexported (golint)
    • Line 524: warning: exported var MetricMemoryLimit should have comment or be unexported (golint)
    • Line 534: warning: exported var MetricEphemeralStorageRequest should have comment or be unexported (golint)
    • Line 544: warning: exported var MetricEphemeralStorageLimit should have comment or be unexported (golint)
    • Line 554: warning: comment on exported var MetricCpuUsageRate should be of the form "MetricCpuUsageRate ..." (golint)
    • Line 565: warning: exported var MetricMemoryPageFaultsRate should have comment or be unexported (golint)
    • Line 575: warning: exported var MetricMemoryMajorPageFaultsRate should have comment or be unexported (golint)
    • Line 585: warning: exported var MetricNetworkRxRate should have comment or be unexported (golint)
    • Line 595: warning: exported var MetricNetworkRxErrorsRate should have comment or be unexported (golint)
    • Line 605: warning: exported var MetricNetworkTxRate should have comment or be unexported (golint)
    • Line 615: warning: exported var MetricNetworkTxErrorsRate should have comment or be unexported (golint)
    • Line 625: warning: exported var MetricNodeCpuCapacity should have comment or be unexported (golint)
    • Line 635: warning: exported var MetricNodeMemoryCapacity should have comment or be unexported (golint)
    • Line 645: warning: exported var MetricNodeEphemeralStorageCapacity should have comment or be unexported (golint)
    • Line 655: warning: exported var MetricNodeCpuAllocatable should have comment or be unexported (golint)
    • Line 665: warning: exported var MetricNodeMemoryAllocatable should have comment or be unexported (golint)
    • Line 675: warning: exported var MetricNodeEphemeralStorageAllocatable should have comment or be unexported (golint)
    • Line 685: warning: exported var MetricNodeCpuUtilization should have comment or be unexported (golint)
    • Line 695: warning: exported var MetricNodeMemoryUtilization should have comment or be unexported (golint)
    • Line 705: warning: exported var MetricNodeEphemeralStorageUtilization should have comment or be unexported (golint)
    • Line 715: warning: exported var MetricNodeCpuReservation should have comment or be unexported (golint)
    • Line 725: warning: exported var MetricNodeMemoryReservation should have comment or be unexported (golint)
    • Line 735: warning: exported var MetricNodeEphemeralStorageReservation should have comment or be unexported (golint)
    • Line 745: warning: exported var MetricNodeCondition should have comment or be unexported (golint)
    • Line 755: warning: exported var MetricPodPhase should have comment or be unexported (golint)
    • Line 765: warning: exported var MetricContainerStatus should have comment or be unexported (golint)
    • Line 775: warning: comment on exported var MetricPodCount should be of the form "MetricPodCount ..." (golint)
    • Line 786: warning: exported var MetricPodContainerCount should have comment or be unexported (golint)
    • Line 798: warning: exported var MetricFilesystemUsage should have comment or be unexported (golint)
    • Line 829: warning: exported var MetricFilesystemLimit should have comment or be unexported (golint)
    • Line 860: warning: exported var MetricFilesystemAvailable should have comment or be unexported (golint)
    • Line 891: warning: exported var MetricFilesystemInodes should have comment or be unexported (golint)
    • Line 924: warning: exported var MetricFilesystemInodesFree should have comment or be unexported (golint)
    • Line 957: warning: exported var MetricAcceleratorMemoryTotal should have comment or be unexported (golint)
    • Line 994: warning: exported var MetricAcceleratorMemoryUsed should have comment or be unexported (golint)
    • Line 1031: warning: exported var MetricAcceleratorDutyCycle should have comment or be unexported (golint)
    • Line 1068: warning: exported var MetricDiskIORead should have comment or be unexported (golint)
    • Line 1109: warning: exported var MetricDiskIOWrite should have comment or be unexported (golint)
    • Line 1150: warning: exported var MetricDiskIOReadRate should have comment or be unexported (golint)
    • Line 1161: warning: exported var MetricDiskIOWriteRate should have comment or be unexported (golint)
    • Line 1172: warning: exported function IsNodeAutoscalingMetric should have comment or be unexported (golint)
    • Line 1181: warning: exported type MetricDescriptor should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/util/dummies.go
    • Line 29: warning: exported type DummySink should have comment or be unexported (golint)
    • Line 37: warning: exported method DummySink.Name should have comment or be unexported (golint)
    • Line 40: warning: exported method DummySink.ExportData should have comment or be unexported (golint)
    • Line 48: warning: exported method DummySink.ExportEvent should have comment or be unexported (golint)
    • Line 51: warning: exported method DummySink.Stop should have comment or be unexported (golint)
    • Line 59: warning: exported method DummySink.IsStopped should have comment or be unexported (golint)
    • Line 65: warning: exported method DummySink.GetExportCount should have comment or be unexported (golint)
    • Line 71: warning: exported function NewDummySink should have comment or be unexported (golint)
    • Line 80: warning: exported type DummyMetricsSource should have comment or be unexported (golint)
    • Line 86: warning: exported method DummyMetricsSource.Name should have comment or be unexported (golint)
    • Line 90: warning: exported method DummyMetricsSource.Cleanup should have comment or be unexported (golint)
    • Line 90: warning: receiver name src should be consistent with previous receiver name dummy for DummyMetricsSource (golint)
    • Line 92: warning: exported method DummyMetricsSource.ScrapeMetrics should have comment or be unexported (golint)
    • Line 119: warning: exported function NewDummyMetricsSource should have comment or be unexported (golint)
    • Line 127: warning: exported type DummyMetricsSourceProvider should have comment or be unexported (golint)
    • Line 134: warning: exported method DummyMetricsSourceProvider.GetMetricsSources should have comment or be unexported (golint)
    • Line 138: warning: exported method DummyMetricsSourceProvider.Name should have comment or be unexported (golint)
    • Line 142: warning: exported method DummyMetricsSourceProvider.CollectionInterval should have comment or be unexported (golint)
    • Line 146: warning: exported method DummyMetricsSourceProvider.Timeout should have comment or be unexported (golint)
    • Line 150: warning: exported function NewDummyMetricsSourceProvider should have comment or be unexported (golint)
    • Line 159: warning: exported type DummyDataProcessor should have comment or be unexported (golint)
    • Line 163: warning: exported method DummyDataProcessor.Name should have comment or be unexported (golint)
    • Line 167: warning: exported method DummyDataProcessor.Process should have comment or be unexported (golint)
    • Line 172: warning: exported function NewDummyDataProcessor should have comment or be unexported (golint)
    • Line 178: warning: exported function NewDummyProviderHandler should have comment or be unexported (golint)
    • Line 184: warning: exported type DummyProviderHandler should have comment or be unexported (golint)
    • Line 188: warning: exported method DummyProviderHandler.AddProvider should have comment or be unexported (golint)
    • Line 192: warning: exported method DummyProviderHandler.DeleteProvider should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/agent/agent.go
    • Line 15: warning: exported type Agent should have comment or be unexported (golint)
    • Line 21: warning: exported function NewAgent should have comment or be unexported (golint)
    • Line 29: warning: exported method Agent.Start should have comment or be unexported (golint)
    • Line 43: warning: exported method Agent.Stop should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/httputil/client.go
    • Line 16: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 25: warning: comment on exported function NewRoundTripper should be of the form "NewRoundTripper ..." (golint)
    • Line 57: warning: comment on exported function NewBearerTokenRoundTripper should be of the form "NewBearerTokenRoundTripper ..." (golint)
    • Line 75: warning: comment on exported function NewBearerTokenFileRoundTripper should be of the form "NewBearerTokenFileRoundTripper ..." (golint)
    • Line 107: warning: comment on exported function NewTLSConfig should be of the form "NewTLSConfig ..." (golint)
    • wavefront-kubernetes-collector/internal/httputil/configs.go
    • Line 10: warning: exported type URL should have comment or be unexported (golint)
    • Line 14: warning: comment on exported type ClientConfig should be of the form "ClientConfig ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported type TLSConfig should be of the form "TLSConfig ..." (with optional leading article) (golint)
    • wavefront-kubernetes-collector/plugins/sources/telegraf/system.go
    • Line 26: warning: exported type SystemStats should have comment or be unexported (golint)
    • Line 28: warning: exported method SystemStats.Description should have comment or be unexported (golint)
    • Line 28: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 32: warning: exported method SystemStats.SampleConfig should have comment or be unexported (golint)
    • Line 32: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 39: warning: exported method SystemStats.Gather should have comment or be unexported (golint)
    • Line 39: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • wavefront-kubernetes-collector/cmd/test-proxy/metric_grammar.peg.go
    • Line 349: warning: exported type MetricGrammar should have comment or be unexported (golint)
    • Line 425: warning: exported method MetricGrammar.PrintSyntaxTree should have comment or be unexported (golint)
    • Line 429: warning: exported method MetricGrammar.Highlighter should have comment or be unexported (golint)
    • Line 433: warning: exported method MetricGrammar.Execute should have comment or be unexported (golint)
    • Line 460: warning: exported method MetricGrammar.Init should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/plugins/sources/summary/kubelet/kubelet_client.go
    • Line 43: warning: exported type Host should have comment or be unexported (golint)
    • Line 53: warning: exported type KubeletClient should have comment or be unexported (golint)
    • Line 58: warning: exported type ErrNotFound should have comment or be unexported (golint)
    • Line 66: warning: exported function IsNotFoundError should have comment or be unexported (golint)
    • Line 159: warning: comment on exported method KubeletClient.GetAllRawContainers should be of the form "GetAllRawContainers ..." (golint)
    • Line 165: warning: exported method KubeletClient.GetSummary should have comment or be unexported (golint)
    • Line 181: warning: exported method KubeletClient.GetPods should have comment or be unexported (golint)
    • Line 198: warning: exported method KubeletClient.GetPort should have comment or be unexported (golint)
    • Line 240: warning: exported function NewKubeletClient should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/util/util.go
    • Line 24: warning: exported const NodeNameEnvVar should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported function GetNodeLister should have comment or be unexported (golint)
    • Line 56: warning: exported function GetPodLister should have comment or be unexported (golint)
    • Line 74: warning: exported function GetServiceLister should have comment or be unexported (golint)
    • Line 83: warning: exported function GetNamespaceStore should have comment or be unexported (golint)
    • Line 99: warning: exported function GetFieldSelector should have comment or be unexported (golint)
    • Line 116: warning: exported function GetDaemonMode should have comment or be unexported (golint)
    • Line 120: warning: exported function GetNodeName should have comment or be unexported (golint)
    • Line 124: warning: exported function GetNamespaceName should have comment or be unexported (golint)
    • Line 128: warning: exported function GetNodeHostnameAndIP should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/plugins/processors/pod_aggregator.go
    • Line 28: warning: exported var LabelsToPopulate should have comment or be unexported (golint)
    • Line 37: warning: exported type PodAggregator should have comment or be unexported (golint)
    • Line 41: warning: exported method PodAggregator.Name should have comment or be unexported (golint)
    • Line 45: warning: exported method PodAggregator.Process should have comment or be unexported (golint)
    • Line 125: warning: exported function NewPodAggregator should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/cmd/test-proxy/main.go
    • Line 42: warning: exported function ServeProxy should have comment or be unexported (golint)
    • Line 59: warning: exported function HandleIncomingMetrics should have comment or be unexported (golint)
    • Line 82: warning: exported function DumpMetricsHandler should have comment or be unexported (golint)
    • Line 106: warning: exported function DiffMetricsHandler should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/flags/flags.go
    • Line 28: warning: exported type Uri should have comment or be unexported (golint)
    • Line 41: warning: exported method Uri.Set should have comment or be unexported (golint)
    • Line 58: warning: exported type Uris should have comment or be unexported (golint)
    • Line 73: warning: exported method Uris.Set should have comment or be unexported (golint)
    • Line 82: warning: exported method Uris.Type should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/metrics/ms_keys.go
    • Line 29: warning: exported function PodContainerKey should have comment or be unexported (golint)
    • Line 33: warning: exported function PodKey should have comment or be unexported (golint)
    • Line 37: warning: exported function NamespaceKey should have comment or be unexported (golint)
    • Line 41: warning: exported function NodeKey should have comment or be unexported (golint)
    • Line 45: warning: exported function NodeContainerKey should have comment or be unexported (golint)
    • Line 49: warning: exported function ClusterKey should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/cmd/test-proxy/metric_store.go
    • Line 5: warning: exported type MetricStore should have comment or be unexported (golint)
    • Line 12: warning: exported function NewMetricStore should have comment or be unexported (golint)
    • Line 21: warning: exported method MetricStore.Metrics should have comment or be unexported (golint)
    • Line 29: warning: exported method MetricStore.BadMetrics should have comment or be unexported (golint)
    • Line 37: warning: exported method MetricStore.LogMetric should have comment or be unexported (golint)
    • Line 43: warning: exported method MetricStore.LogBadMetric should have comment or be unexported (golint)
    • wavefront-kubernetes-collector/internal/util/watcher.go
    • Line 15: warning: exported type FileListener should have comment or be unexported (golint)
    • Line 19: warning: exported type ConfigHandler should have comment or be unexported (golint)
    • Line 23: warning: exported type FileWatcher should have comment or be unexported (golint)
    • Line 36: warning: exported function NewFileWatcher should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words