Preparing report...

Report for github.com/lbryio/chainquery

A+    Excellent!    Found 23 issues across 79 files

Tweet

gofmt93%

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!


gocyclo96%

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.


golint78%

Golint is a linter for Go source code.

    • chainquery/swagger/apiserver/go/table_status.go
    • Line 1: warning: package comment should be of the form "Package swagger ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 11: warning: comment on exported type TableStatus should be of the form "TableStatus ..." (with optional leading article) (golint)
    • chainquery/swagger/apiserver/go/table_size.go
    • Line 2: warning: package comment should be of the form "Package swagger ..." (golint)
    • Line 2: warning: package comment should not have leading space (golint)
    • Line 12: warning: comment on exported type TableSize should be of the form "TableSize ..." (with optional leading article) (golint)
    • chainquery/swagger/apiserver/main.go
    • Line 1: warning: package comment should be of the form "Package swagger ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 24: warning: exported function InitApiServer should have comment or be unexported (golint)
    • chainquery/swagger/apiserver/go/routers.go
    • Line 1: warning: package comment should be of the form "Package swagger ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 15: warning: should not use dot imports (golint)
    • Line 16: warning: should not use dot imports (golint)
    • Line 22: warning: exported type Route should have comment or be unexported (golint)
    • Line 29: warning: exported type Routes should have comment or be unexported (golint)
    • Line 31: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 122: warning: exported var PromPassword should have comment or be unexported (golint)
    • Line 123: warning: exported var PromUser should have comment or be unexported (golint)
    • chainquery/swagger/clients/goclient/stat_api.go
    • Line 26: warning: exported type StatApiService should have comment or be unexported (golint)
    • Line 28: warning: comment on exported method StatApiService.AddressSummary should be of the form "AddressSummary ..." (golint)
    • Line 91: warning: comment on exported method StatApiService.ChainQueryStatus should be of the form "ChainQueryStatus ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words