Preparing report...

Report for github.com/appoptics/appoptics-api-go

A+    Excellent!    Found 22 issues across 58 files

Tweet

gofmt93%

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


go_vet100%

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

No problems detected. Good job!


gocyclo100%

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!


golint65%

Golint is a linter for Go source code.

    • appoptics-api-go/legacy_client.go
    • Line 14: warning: exported type LegacyClient should have comment or be unexported (golint)
    • Line 18: warning: exported type SimpleClient should have comment or be unexported (golint)
    • Line 24: warning: exported function NewLegacyClient should have comment or be unexported (golint)
    • Line 38: warning: comment on exported method SimpleClient.Post should be of the form "Post ..." (golint)
    • appoptics-api-go/metrics.go
    • Line 30: warning: exported type MetricsResponse should have comment or be unexported (golint)
    • Line 35: warning: exported type MetricsService should have comment or be unexported (golint)
    • Line 45: warning: exported type MetricsCommunicator should have comment or be unexported (golint)
    • Line 53: warning: exported function NewMetricsService should have comment or be unexported (golint)
    • appoptics-api-go/spaces.go
    • Line 36: warning: exported type SpacesService should have comment or be unexported (golint)
    • Line 40: warning: exported function NewSpacesService should have comment or be unexported (golint)
    • appoptics-api-go/alerts.go
    • Line 35: warning: exported type AlertCondition should have comment or be unexported (golint)
    • Line 46: warning: exported type AlertStatus should have comment or be unexported (golint)
    • Line 51: warning: exported type AlertsListResponse should have comment or be unexported (golint)
    • Line 56: warning: exported type AlertsService should have comment or be unexported (golint)
    • Line 60: warning: exported type AlertsCommunicator should have comment or be unexported (golint)
    • Line 71: warning: exported function NewAlertsService should have comment or be unexported (golint)
    • appoptics-api-go/api_token.go
    • Line 5: warning: exported type ApiToken should have comment or be unexported (golint)
    • Line 13: warning: exported type ApiTokensResponse should have comment or be unexported (golint)
    • Line 18: warning: exported type ApiTokensCommunicator should have comment or be unexported (golint)
    • Line 26: warning: exported type ApiTokensService should have comment or be unexported (golint)
    • Line 30: warning: exported function NewApiTokensService should have comment or be unexported (golint)
    • appoptics-api-go/jobs.go
    • Line 14: warning: exported type JobsCommunicator should have comment or be unexported (golint)
    • Line 18: warning: exported type JobsService should have comment or be unexported (golint)
    • Line 22: warning: exported function NewJobsService should have comment or be unexported (golint)
    • appoptics-api-go/annotations.go
    • Line 35: warning: exported type RetrieveAnnotationsRequest should have comment or be unexported (golint)
    • Line 42: warning: exported type ListAnnotationsResponse should have comment or be unexported (golint)
    • Line 58: warning: exported type AnnotationsService should have comment or be unexported (golint)
    • Line 62: warning: exported function NewAnnotationsService should have comment or be unexported (golint)
    • appoptics-api-go/services.go
    • Line 5: warning: exported type Service should have comment or be unexported (golint)
    • Line 12: warning: exported type ServicesCommunicator should have comment or be unexported (golint)
    • Line 20: warning: exported type ListServicesResponse should have comment or be unexported (golint)
    • Line 25: warning: exported type ServicesService should have comment or be unexported (golint)
    • Line 29: warning: exported function NewServiceService should have comment or be unexported (golint)
    • appoptics-api-go/contrib/grpc/interceptors.go
    • Line 15: warning: exported type InstrumentedServer should have comment or be unexported (golint)
    • Line 22: warning: exported function NewInstrumentedServer should have comment or be unexported (golint)
    • Line 58: warning: exported method InstrumentedServerStream.SendMsg should have comment or be unexported (golint)
    • Line 64: warning: exported method InstrumentedServerStream.RecvMsg should have comment or be unexported (golint)
    • Line 70: warning: comment on exported function UnaryServerInterceptor should be of the form "UnaryServerInterceptor ..." (golint)
    • Line 91: warning: comment on exported function StreamServerInterceptor should be of the form "StreamServerInterceptor ..." (golint)
    • appoptics-api-go/multi_reporter.go
    • Line 8: warning: exported type MultiReporter should have comment or be unexported (golint)
    • Line 13: warning: exported function NewMultiReporter should have comment or be unexported (golint)
    • Line 17: warning: exported method MultiReporter.Start should have comment or be unexported (golint)
    • appoptics-api-go/snapshots.go
    • Line 27: warning: exported type SnapshotsCommunicator should have comment or be unexported (golint)
    • Line 32: warning: exported type SnapshotsService should have comment or be unexported (golint)
    • Line 36: warning: exported function NewSnapshotsService should have comment or be unexported (golint)
    • appoptics-api-go/charts.go
    • Line 7: warning: exported type Chart should have comment or be unexported (golint)
    • Line 19: warning: exported type Stream should have comment or be unexported (golint)
    • Line 39: warning: exported type Threshold should have comment or be unexported (golint)
    • Line 45: warning: exported type ChartsCommunicator should have comment or be unexported (golint)
    • Line 53: warning: exported type ChartsService should have comment or be unexported (golint)
    • Line 57: warning: exported function NewChartsService should have comment or be unexported (golint)
    • appoptics-api-go/measurements_batching.go
    • Line 67: warning: exported function NewMeasurementsBatch should have comment or be unexported (golint)
    • Line 90: warning: comment on exported method BatchPersister.MaximumPushInterval should be of the form "MaximumPushInterval ..." (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!