Preparing report...

Report for github.com/gjbae1212/go-esworker

A+    Excellent!    Found 5 issues across 12 files

Tweet

gofmt91%

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!


gocyclo83%

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.


golint66%

Golint is a linter for Go source code.

    • go-esworker/config.go
    • Line 9: warning: exported const V5 should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported method ESVersion.GetString should have comment or be unexported (golint)
    • go-esworker/elastic.go
    • Line 57: warning: comment on exported type ESResponseBulk should be of the form "ESResponseBulk ..." (with optional leading article) (golint)
    • Line 57: warning: comment on exported type ESResponseCause should be of the form "ESResponseCause ..." (with optional leading article) (golint)
    • Line 57: warning: comment on exported type ESResponseError should be of the form "ESResponseError ..." (with optional leading article) (golint)
    • Line 57: warning: comment on exported type ESResponseItem should be of the form "ESResponseItem ..." (with optional leading article) (golint)
    • Line 57: warning: comment on exported type ESResponseStatus should be of the form "ESResponseStatus ..." (with optional leading article) (golint)
    • Line 123: warning: comment on exported method ESResponseBulk.ResultError should be of the form "ResultError ..." (golint)
    • Line 176: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 292: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-esworker/logger.go
    • Line 12: warning: exported type LoggerType should have comment or be unexported (golint)
    • Line 15: warning: exported const LOGGER_TYPE_TEXT should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.

    • go-esworker/elastic_test.go
    • Line 320: warning: ineffectual assignment to success (ineffassign)
    • Line 320: warning: ineffectual assignment to fail (ineffassign)
    • Line 364: warning: ineffectual assignment to success (ineffassign)
    • Line 364: warning: ineffectual assignment to fail (ineffassign)
    • Line 408: warning: ineffectual assignment to success (ineffassign)
    • Line 408: warning: ineffectual assignment to fail (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!