Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
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.
-
aws_cloudwatch_exporter/internal/server/server.go
- Line 1: warning: package comment should be of the form "Package server ..." (golint)
- Line 30: warning: exported type Server should have comment or be unexported (golint)
- Line 35: warning: exported function New should have comment or be unexported (golint)
- Line 54: warning: exported method Server.ListenOSSignals should have comment or be unexported (golint)
- Line 86: warning: exported method Server.Start should have comment or be unexported (golint)
-
aws_cloudwatch_exporter/cmd/root.go
- Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
- Line 62: warning: exported function Execute should have comment or be unexported (golint)
- Line 189: warning: comment on exported function MergeMetricsFiles should be of the form "MergeMetricsFiles ..." (golint)
-
aws_cloudwatch_exporter/internal/config/config.go
- Line 1: warning: package comment should be of the form "Package config ..." (golint)
- Line 25: warning: exported type All should have comment or be unexported (golint)
- Line 31: warning: exported method All.ToJSON should have comment or be unexported (golint)
- Line 39: warning: exported method All.ToYAML should have comment or be unexported (golint)
- Line 47: warning: comment on exported type ServerConf should be of the form "ServerConf ..." (with optional leading article) (golint)
- Line 56: warning: exported type Server should have comment or be unexported (golint)
- Line 69: warning: comment on exported type ApplicationConf should be of the form "ApplicationConf ..." (with optional leading article) (golint)
- Line 78: warning: exported type Application should have comment or be unexported (golint)
- Line 98: warning: comment on exported type MetricDataQueriesConf should be of the form "MetricDataQueriesConf ..." (with optional leading article) (golint)
- Line 109: warning: comment on exported type MetricDataQuery should be of the form "MetricDataQuery ..." (with optional leading article) (golint)
-
aws_cloudwatch_exporter/internal/collector/collector.go
- Line 1: warning: package comment should be of the form "Package collector ..." (golint)
- Line 38: warning: exported type OwnMetrics should have comment or be unexported (golint)
- Line 51: warning: exported type Collector should have comment or be unexported (golint)
- Line 59: warning: exported function New should have comment or be unexported (golint)
- Line 159: warning: comment on exported method Collector.Describe should be of the form "Describe ..." (golint)
- Line 178: warning: comment on exported method Collector.Collect should be of the form "Collect ..." (golint)
-
aws_cloudwatch_exporter/internal/camelcase/camelcase.go
- Line 1: warning: package comment should be of the form "Package camelcase ..." (golint)
- Line 25: warning: comment on exported function Split should be of the form "Split ..." (golint)
- Line 109: warning: comment on exported function SplitToLower should be of the form "SplitToLower ..." (golint)
- Line 127: warning: comment on exported function ToSnake should be of the form "ToSnake ..." (golint)
-
aws_cloudwatch_exporter/internal/web/handlers.go
- Line 1: warning: package comment should be of the form "Package web ..." (golint)
- Line 27: warning: exported type Handlers should have comment or be unexported (golint)
- Line 31: warning: exported function NewHandlers should have comment or be unexported (golint)
- Line 37: warning: exported method Handlers.Home should have comment or be unexported (golint)
- Line 108: warning: exported method Handlers.Health should have comment or be unexported (golint)
-
aws_cloudwatch_exporter/internal/metrics/metrics.go
- Line 1: warning: package comment should be of the form "Package metrics ..." (golint)
- Line 32: warning: exported type Metrics should have comment or be unexported (golint)
- Line 49: warning: exported function New should have comment or be unexported (golint)
- Line 199: warning: comment on exported function GetTimeStamps should be of the form "GetTimeStamps ..." (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!