Preparing report...

Report for github.com/zorkian/go-datadog-api

A+    Excellent!    Found 21 issues across 84 files

Tweet

gofmt98%

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!


golint75%

Golint is a linter for Go source code.

    • go-datadog-api/dashboards.go
    • Line 57: warning: exported type GraphApmOrLogQueryCompute should have comment or be unexported (golint)
    • Line 63: warning: exported type GraphApmOrLogQuerySearch should have comment or be unexported (golint)
    • Line 67: warning: exported type GraphApmOrLogQueryGroupBy should have comment or be unexported (golint)
    • Line 73: warning: exported type GraphApmOrLogQueryGroupBySort should have comment or be unexported (golint)
    • Line 79: warning: exported type GraphProcessQuery should have comment or be unexported (golint)
    • Line 86: warning: exported type GraphDefinitionMetadata should have comment or be unexported (golint)
    • Line 88: warning: exported type GraphDefinitionMarker should have comment or be unexported (golint)
    • Line 97: warning: exported type GraphEvent should have comment or be unexported (golint)
    • Line 101: warning: exported type Yaxis should have comment or be unexported (golint)
    • Line 145: warning: exported type Style should have comment or be unexported (golint)
    • Line 152: warning: exported type GraphDefinition should have comment or be unexported (golint)
    • Line 182: warning: comment on exported type TemplateVariable should be of the form "TemplateVariable ..." (with optional leading article) (golint)
    • Line 239: warning: exported type DashboardConditionalFormat should have comment or be unexported (golint)
    • go-datadog-api/logs_processors.go
    • Line 9: warning: exported const ArithmeticProcessorType should have comment (or a comment on this block) or be unexported (golint)
    • Line 78: warning: exported type StringBuilderProcessor should have comment or be unexported (golint)
    • go-datadog-api/checks.go
    • Line 3: warning: exported type Check should have comment or be unexported (golint)
    • Line 12: warning: exported type Status should have comment or be unexported (golint)
    • Line 15: warning: exported const OK should have comment (or a comment on this block) or be unexported (golint)
    • go-datadog-api/client.go
    • Line 39: warning: exported type RateLimit should have comment or be unexported (golint)
    • Line 88: warning: receiver name client should be consistent with previous receiver name c for Client (golint)
    • go-datadog-api/hosts.go
    • Line 3: warning: exported type HostActionResp should have comment or be unexported (golint)
    • Line 9: warning: exported type HostActionMute should have comment or be unexported (golint)
    • go-datadog-api/screen_widgets.go
    • Line 5: warning: exported type PrecisionT should have comment or be unexported (golint)
    • Line 30: warning: exported type TileDef should have comment or be unexported (golint)
    • Line 49: warning: exported type TileDefEvent should have comment or be unexported (golint)
    • Line 53: warning: exported type TileDefMarker should have comment or be unexported (golint)
    • Line 59: warning: exported type TileDefRequest should have comment or be unexported (golint)
    • Line 96: warning: exported type TileDefApmOrLogQueryCompute should have comment or be unexported (golint)
    • Line 101: warning: exported type TileDefApmOrLogQuerySearch should have comment or be unexported (golint)
    • Line 104: warning: exported type TileDefApmOrLogQueryGroupBy should have comment or be unexported (golint)
    • Line 109: warning: exported type TileDefApmOrLogQueryGroupBySort should have comment or be unexported (golint)
    • Line 115: warning: exported type TileDefProcessQuery should have comment or be unexported (golint)
    • Line 122: warning: exported type TileDefMetadata should have comment or be unexported (golint)
    • Line 126: warning: exported type ConditionalFormat should have comment or be unexported (golint)
    • Line 136: warning: exported type TileDefRequestStyle should have comment or be unexported (golint)
    • Line 142: warning: exported type TileDefStyle should have comment or be unexported (golint)
    • Line 149: warning: exported type Time should have comment or be unexported (golint)
    • Line 153: warning: exported type Widget should have comment or be unexported (golint)
    • Line 268: warning: exported type Params should have comment or be unexported (golint)
    • Line 275: warning: exported type Rule should have comment or be unexported (golint)
    • Line 281: warning: exported type ScreenboardMonitor should have comment or be unexported (golint)
    • go-datadog-api/synthetics.go
    • Line 29: warning: exported type SyntheticsConfig should have comment or be unexported (golint)
    • Line 35: warning: exported type SyntheticsRequest should have comment or be unexported (golint)
    • Line 45: warning: exported type SyntheticsAssertion should have comment or be unexported (golint)
    • Line 54: warning: exported type SyntheticsOptions should have comment or be unexported (golint)
    • Line 66: warning: exported type MonitorOptions should have comment or be unexported (golint)
    • Line 70: warning: exported type Retry should have comment or be unexported (golint)
    • Line 75: warning: exported type SyntheticsUser should have comment or be unexported (golint)
    • Line 82: warning: exported type SyntheticsDevice should have comment or be unexported (golint)
    • Line 92: warning: exported type SyntheticsLocation should have comment or be unexported (golint)
    • Line 100: warning: exported type ToggleStatus should have comment or be unexported (golint)
    • Line 177: warning: comment on exported type DeleteSyntheticsTestsPayload should be of the form "DeleteSyntheticsTestsPayload ..." (with optional leading article) (golint)
    • go-datadog-api/integration/snapshot_test.go
    • Line 13: 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 23: warning: don't use underscores in Go names; var query_s should be queryS (golint)
    • Line 41: warning: don't use underscores in Go names; var graph_def should be graphDef (golint)
    • go-datadog-api/boards.go
    • Line 15: warning: comment on exported type TemplateVariablePreset should be of the form "TemplateVariablePreset ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type TemplateVariablePresetValue should be of the form "TemplateVariablePresetValue ..." (with optional leading article) (golint)
    • go-datadog-api/users.go
    • Line 11: warning: exported type User should have comment or be unexported (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-datadog-api/downtimes.go
    • Line 26: warning: exported type Recurrence should have comment or be unexported (golint)
    • Line 34: warning: exported type Downtime should have comment or be unexported (golint)
    • Line 100: warning: comment on exported method Client.GetDowntime should be of the form "GetDowntime ..." (golint)
    • go-datadog-api/monitors.go
    • Line 19: warning: exported type Period should have comment or be unexported (golint)
    • Line 27: warning: exported type LogSet should have comment or be unexported (golint)
    • Line 32: warning: exported type TimeRange should have comment or be unexported (golint)
    • Line 38: warning: exported type QueryConfig should have comment or be unexported (golint)
    • Line 45: warning: exported type ThresholdCount should have comment or be unexported (golint)
    • Line 56: warning: exported type ThresholdWindows should have comment or be unexported (golint)
    • Line 61: warning: exported type NoDataTimeframe should have comment or be unexported (golint)
    • Line 63: warning: exported method NoDataTimeframe.UnmarshalJSON should have comment or be unexported (golint)
    • Line 77: warning: exported type Options should have comment or be unexported (golint)
    • Line 96: warning: exported type TriggeringValue should have comment or be unexported (golint)
    • Line 102: warning: exported type GroupData should have comment or be unexported (golint)
    • Line 112: warning: exported type State should have comment or be unexported (golint)
    • go-datadog-api/api_keys.go
    • Line 66: 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)
    • go-datadog-api/board_widgets.go
    • Line 17: warning: exported const ALERT_GRAPH_WIDGET should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported method BoardWidget.GetWidgetType should have comment or be unexported (golint)
    • Line 143: warning: exported type ChangeRequest should have comment or be unexported (golint)
    • Line 182: warning: exported type DistributionRequest should have comment or be unexported (golint)
    • Line 244: warning: exported type HeatmapRequest should have comment or be unexported (golint)
    • Line 269: warning: exported type HostmapRequests should have comment or be unexported (golint)
    • Line 273: warning: exported type HostmapRequest should have comment or be unexported (golint)
    • Line 282: warning: exported type HostmapStyle should have comment or be unexported (golint)
    • Line 320: warning: exported type WidgetFieldSort should have comment or be unexported (golint)
    • Line 367: warning: exported type QueryValueRequest should have comment or be unexported (golint)
    • Line 388: warning: exported type QueryTableRequest should have comment or be unexported (golint)
    • Line 415: warning: exported type ScatterplotRequests should have comment or be unexported (golint)
    • Line 419: warning: exported type ScatterplotRequest should have comment or be unexported (golint)
    • Line 461: warning: exported type TimeseriesRequest should have comment or be unexported (golint)
    • Line 473: warning: exported type TimeseriesRequestStyle should have comment or be unexported (golint)
    • Line 488: warning: exported type ToplistRequest should have comment or be unexported (golint)
    • Line 738: warning: exported type WidgetTime should have comment or be unexported (golint)
    • Line 742: warning: exported type WidgetAxis should have comment or be unexported (golint)
    • Line 750: warning: exported type WidgetEvent should have comment or be unexported (golint)
    • Line 754: warning: exported type WidgetMarker should have comment or be unexported (golint)
    • Line 760: warning: exported type WidgetMetadata should have comment or be unexported (golint)
    • Line 765: warning: exported type WidgetConditionalFormat should have comment or be unexported (golint)
    • Line 785: warning: exported type ApmOrLogQueryCompute should have comment or be unexported (golint)
    • Line 790: warning: exported type ApmOrLogQuerySearch should have comment or be unexported (golint)
    • Line 793: warning: exported type ApmOrLogQueryGroupBy should have comment or be unexported (golint)
    • Line 798: warning: exported type ApmOrLogQueryGroupBySort should have comment or be unexported (golint)
    • go-datadog-api/integrations.go
    • Line 227: warning: exported type IntegrationAWSAccountGetResponse should have comment or be unexported (golint)
    • Line 231: warning: exported type IntegrationAWSAccountDeleteRequest should have comment or be unexported (golint)
    • Line 236: warning: exported type IntegrationAWSLambdaARNRequest should have comment or be unexported (golint)
    • Line 246: warning: exported type IntegrationAWSServicesLogCollection should have comment or be unexported (golint)
    • Line 251: warning: comment on exported type IntegrationAWSLogCollection should be of the form "IntegrationAWSLogCollection ..." (with optional leading article) (golint)
    • go-datadog-api/series.go
    • Line 42: warning: comment on exported type UnitPair should be of the form "UnitPair ..." (with optional leading article) (golint)

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!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (signal: broken pipe)


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!