Preparing report...

Report for github.com/Tritura/go-elasticsearch

A+    Excellent!    Found 263 issues across 473 files

Tweet

gofmt96%

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!


golint98%

Golint is a linter for Go source code.

    • go-elasticsearch/internal/build/cmd/tools/commands/spec/command.go
    • Line 73: warning: exported type Command should have comment or be unexported (golint)
    • Line 80: warning: comment on exported method Command.Execute should be of the form "Execute ..." (golint)
    • Line 151: warning: exported type Versions should have comment or be unexported (golint)
    • Line 157: warning: exported type PackageUrl should have comment or be unexported (golint)
    • Line 161: warning: exported method PackageUrl.UnmarshalJSON should have comment or be unexported (golint)
    • Line 172: warning: exported type BuildStartTime should have comment or be unexported (golint)
    • Line 176: warning: exported method BuildStartTime.UnmarshalJSON should have comment or be unexported (golint)
    • Line 186: warning: exported type Build should have comment or be unexported (golint)
    • Line 202: warning: exported function NewBuild should have comment or be unexported (golint)
    • go-elasticsearch/internal/build/cmd/generate/commands/gentests/model.go
    • Line 122: warning: don't use underscores in Go names; var sec_keys should be secKeys (golint)
    • Line 155: warning: don't use underscores in Go names; var skip_v should be skipV (golint)
    • Line 156: warning: don't use underscores in Go names; var skip_r should be skipR (golint)
    • Line 162: warning: don't use underscores in Go names; var skip_rr should be skipRr (golint)
    • Line 598: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 645: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 773: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 787: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

gocyclo45%

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.


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!