Preparing report...

Report for github.com/rchicoli/docker-log-elasticsearch

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


gocyclo94%

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.


golint77%

Golint is a linter for Go source code.

    • docker-log-elasticsearch/pkg/elasticsearch/v6/elasticsearch.go
    • Line 64: warning: exported method Elasticsearch.NewBulkProcessorService should have comment or be unexported (golint)
    • Line 119: warning: exported method Elasticsearch.Add should have comment or be unexported (golint)
    • Line 127: warning: exported method Elasticsearch.Close should have comment or be unexported (golint)
    • Line 131: warning: exported method Elasticsearch.Flush should have comment or be unexported (golint)
    • Line 151: warning: exported type Payload should have comment or be unexported (golint)
    • Line 155: warning: exported type Index should have comment or be unexported (golint)
    • docker-log-elasticsearch/pkg/elasticsearch/v1/elasticsearch.go
    • Line 65: warning: exported method Elasticsearch.NewBulkProcessorService should have comment or be unexported (golint)
    • Line 117: warning: exported method Elasticsearch.Add should have comment or be unexported (golint)
    • Line 125: warning: exported method Elasticsearch.Close should have comment or be unexported (golint)
    • Line 129: warning: exported method Elasticsearch.Flush should have comment or be unexported (golint)
    • Line 149: warning: exported type Payload should have comment or be unexported (golint)
    • Line 153: warning: exported type Index should have comment or be unexported (golint)
    • docker-log-elasticsearch/pkg/elasticsearch/v5/elasticsearch.go
    • Line 65: warning: exported method Elasticsearch.NewBulkProcessorService should have comment or be unexported (golint)
    • Line 120: warning: exported method Elasticsearch.Add should have comment or be unexported (golint)
    • Line 128: warning: exported method Elasticsearch.Close should have comment or be unexported (golint)
    • Line 132: warning: exported method Elasticsearch.Flush should have comment or be unexported (golint)
    • Line 152: warning: exported type Payload should have comment or be unexported (golint)
    • Line 156: warning: exported type Index should have comment or be unexported (golint)
    • docker-log-elasticsearch/pkg/elasticsearch/v2/elasticsearch.go
    • Line 65: warning: exported method Elasticsearch.NewBulkProcessorService should have comment or be unexported (golint)
    • Line 117: warning: exported method Elasticsearch.Add should have comment or be unexported (golint)
    • Line 125: warning: exported method Elasticsearch.Close should have comment or be unexported (golint)
    • Line 129: warning: exported method Elasticsearch.Flush should have comment or be unexported (golint)
    • Line 149: warning: exported type Payload should have comment or be unexported (golint)
    • Line 153: warning: exported type Index should have comment or be unexported (golint)
    • Line 197: warning: exported type BulkService should have comment or be unexported (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!


misspell94%

Misspell Finds commonly misspelled English words