Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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.
No problems detected. Good job!
Golint is a linter for Go source code.
-
wavefront-kubernetes-adapter/pkg/provider/lister.go
- Line 19: warning: exported type MetricsLister should have comment or be unexported (golint)
- Line 26: warning: exported type ExternalConfigListener should have comment or be unexported (golint)
- Line 30: warning: exported type WavefrontMetricsLister should have comment or be unexported (golint)
- Line 47: warning: exported method WavefrontMetricsLister.Run should have comment or be unexported (golint)
- Line 51: warning: exported method WavefrontMetricsLister.RunUntil should have comment or be unexported (golint)
- Line 92: warning: exported method WavefrontMetricsLister.ListCustomMetrics should have comment or be unexported (golint)
- Line 98: warning: exported method WavefrontMetricsLister.ListExternalMetrics should have comment or be unexported (golint)
-
wavefront-kubernetes-adapter/pkg/client/api.go
- Line 18: warning: exported const DEFAULT_TIMEOUT should have comment or be unexported (golint)
- Line 20: warning: exported type WavefrontClient should have comment or be unexported (golint)
- Line 30: warning: exported type DefaultWavefrontClient should have comment or be unexported (golint)
- Line 36: warning: exported function NewWavefrontClient should have comment or be unexported (golint)
- Line 59: warning: exported method DefaultWavefrontClient.Do should have comment or be unexported (golint)
- Line 86: warning: exported method DefaultWavefrontClient.ListMetrics should have comment or be unexported (golint)
- Line 111: warning: exported method DefaultWavefrontClient.Query should have comment or be unexported (golint)
-
wavefront-kubernetes-adapter/pkg/client/types.go
- Line 14: warning: exported const ErrBadData should have comment (or a comment on this block) or be unexported (golint)
- Line 30: warning: exported type Timeseries should have comment or be unexported (golint)
- Line 44: warning: exported type ListResult should have comment or be unexported (golint)
-
wavefront-kubernetes-adapter/pkg/client/fake_client.go
- Line 11: warning: exported type FakeWavefrontClient should have comment or be unexported (golint)
- Line 13: warning: exported function NewFakeWavefrontClient should have comment or be unexported (golint)
- Line 17: warning: exported method FakeWavefrontClient.Do should have comment or be unexported (golint)
- Line 21: warning: exported method FakeWavefrontClient.ListMetrics should have comment or be unexported (golint)
- Line 31: warning: exported method FakeWavefrontClient.Query should have comment or be unexported (golint)
-
wavefront-kubernetes-adapter/pkg/provider/external.go
- Line 19: warning: exported type RuleHandlerFunc should have comment or be unexported (golint)
- Line 21: warning: exported type ExternalMetricsDriver should have comment or be unexported (golint)
- Line 27: warning: exported type WavefrontExternalDriver should have comment or be unexported (golint)
- Line 35: warning: exported function NewExternalMetricsDriver should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!