Preparing report...

Report for github.com/suzuki-shunsuke/go-graylog

A+    Excellent!    Found 18 issues across 208 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!


gocyclo97%

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.


golint94%

Golint is a linter for Go source code.

    • go-graylog/graylog/graylog/dashboard_widget.go
    • Line 23: warning: exported type WidgetConfigStreamSearchResultCount should have comment or be unexported (golint)
    • Line 31: warning: exported type WidgetConfigSearchResultChart should have comment or be unexported (golint)
    • Line 38: warning: exported type WidgetConfigQuickValues should have comment or be unexported (golint)
    • Line 52: warning: exported type WidgetConfigQuickValuesHistogram should have comment or be unexported (golint)
    • Line 62: warning: exported type WidgetConfigFieldChart should have comment or be unexported (golint)
    • Line 75: warning: exported type WidgetConfigStatsCount should have comment or be unexported (golint)
    • Line 85: warning: exported type WidgetConfigUnknownType should have comment or be unexported (golint)
    • Line 97: warning: exported method Widget.Type should have comment or be unexported (golint)
    • Line 109: warning: exported method Widget.UnmarshalJSON should have comment or be unexported (golint)
    • Line 149: warning: exported method Widget.MarshalJSON should have comment or be unexported (golint)
    • Line 160: warning: exported method WidgetConfigQuickValues.Type should have comment or be unexported (golint)
    • Line 164: warning: exported method WidgetConfigQuickValuesHistogram.Type should have comment or be unexported (golint)
    • Line 168: warning: exported method WidgetConfigStatsCount.Type should have comment or be unexported (golint)
    • Line 172: warning: exported method WidgetConfigFieldChart.Type should have comment or be unexported (golint)
    • Line 176: warning: exported method WidgetConfigStreamSearchResultCount.Type should have comment or be unexported (golint)
    • Line 180: warning: exported method WidgetConfigSearchResultChart.Type should have comment or be unexported (golint)
    • Line 184: warning: exported method WidgetConfigUnknownType.Type should have comment or be unexported (golint)
    • Line 188: warning: exported method WidgetConfigUnknownType.UnmarshalJSON should have comment or be unexported (golint)
    • Line 192: warning: exported method WidgetConfigUnknownType.MarshalJSON should have comment or be unexported (golint)
    • go-graylog/cmd/generate-testdata/main.go
    • Line 34: warning: exported function Main should have comment or be unexported (golint)
    • Line 111: warning: exported type Users should have comment or be unexported (golint)
    • Line 115: warning: exported type User should have comment or be unexported (golint)
    • Line 119: warning: exported type Roles should have comment or be unexported (golint)
    • Line 123: warning: exported type Role should have comment or be unexported (golint)
    • Line 127: warning: exported type IndexSets should have comment or be unexported (golint)
    • Line 131: warning: exported type IndexSet should have comment or be unexported (golint)
    • Line 135: warning: exported type Inputs should have comment or be unexported (golint)
    • Line 139: warning: exported type Input should have comment or be unexported (golint)
    • Line 143: warning: exported type Streams should have comment or be unexported (golint)
    • Line 147: warning: exported type Stream should have comment or be unexported (golint)
    • Line 151: warning: exported type StreamRules should have comment or be unexported (golint)
    • Line 155: warning: exported type StreamRule should have comment or be unexported (golint)
    • Line 159: warning: exported type Dashboards should have comment or be unexported (golint)
    • Line 163: warning: exported type Dashboard should have comment or be unexported (golint)
    • Line 167: warning: exported type StreamAlarmCallbacks should have comment or be unexported (golint)
    • Line 171: warning: exported type StreamAlarmCallback should have comment or be unexported (golint)
    • Line 175: warning: exported type StreamAlertConditions should have comment or be unexported (golint)
    • Line 179: warning: exported type Output should have comment or be unexported (golint)
    • Line 183: warning: exported type Outputs should have comment or be unexported (golint)
    • Line 187: warning: exported type EventNotification should have comment or be unexported (golint)
    • Line 191: warning: exported type EventNotifications should have comment or be unexported (golint)
    • Line 195: warning: exported type EventDefinitions should have comment or be unexported (golint)
    • Line 199: warning: exported type EventDefinition should have comment or be unexported (golint)
    • go-graylog/graylog/graylog/event_definition.go
    • Line 26: warning: exported type EventDefinitionNotification should have comment or be unexported (golint)
    • Line 31: warning: exported type EventDefinitionNotificationSettings should have comment or be unexported (golint)
    • Line 36: warning: exported type EventDefinitionFieldSpec should have comment or be unexported (golint)
    • Line 56: warning: exported type EventDefinitionConfigSeries should have comment or be unexported (golint)
    • Line 62: warning: exported type EventDefinitionConfigConditions should have comment or be unexported (golint)
    • Line 66: warning: exported type EventDefinitionConfigConditionsExpression should have comment or be unexported (golint)
    • Line 72: warning: exported type EventDefinitionConfigConditionsExpressionLeft should have comment or be unexported (golint)
    • Line 77: warning: exported type EventDefinitionConfigConditionsExpressionRight should have comment or be unexported (golint)
    • go-graylog/graylog/graylog/extractor.go
    • Line 8: warning: exported type Extractor should have comment or be unexported (golint)
    • Line 26: warning: exported type ExtractorConverter should have comment or be unexported (golint)
    • Line 31: warning: exported type ExtractorConverterConfig should have comment or be unexported (golint)
    • Line 37: warning: exported type ExtractorTypeJSONConfig should have comment or be unexported (golint)
    • Line 46: warning: exported type ExtractorTypeGrokConfig should have comment or be unexported (golint)
    • Line 50: warning: exported type ExtractorTypeRegexConfig should have comment or be unexported (golint)
    • Line 54: warning: exported type ExtractorTypeSplitAndIndexConfig should have comment or be unexported (golint)
    • Line 59: warning: exported type ExtractorMetrics should have comment or be unexported (golint)
    • Line 68: warning: exported type ExtractorMetric should have comment or be unexported (golint)
    • Line 75: warning: exported type ExtractorMetricTime should have comment or be unexported (golint)
    • Line 87: warning: exported type ExtractorMetricRate should have comment or be unexported (golint)
    • Line 105: warning: exported method Extractor.UnmarshalJSON should have comment or be unexported (golint)
    • go-graylog/graylog/client/pipeline_connection.go
    • Line 19: warning: comment on exported method Client.GetPipelineConnectionsOfStream should be of the form "GetPipelineConnectionsOfStream ..." (golint)
    • Line 42: warning: comment on exported method Client.ConnectPipelinesToStream should be of the form "ConnectPipelinesToStream ..." (golint)
    • go-graylog/graylog/testutil/util.go
    • Line 3: warning: exported function ConvertIntToFloat64 should have comment or be unexported (golint)
    • Line 19: warning: exported function ConvertIntToFloat64OfMap should have comment or be unexported (golint)
    • go-graylog/graylog/client/stream_output.go
    • Line 10: warning: comment on exported method Client.CreateStreamOutputs should be of the form "CreateStreamOutputs ..." (golint)
    • Line 24: warning: comment on exported method Client.GetStreamOutputs should be of the form "GetStreamOutputs ..." (golint)
    • Line 33: warning: comment on exported method Client.DeleteStreamOutput should be of the form "DeleteStreamOutput ..." (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!