Preparing report...

Report for github.com/ehazlett/stellar

A+    Excellent!    Found 41 issues across 125 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.


golint72%

Golint is a linter for Go source code.

    • stellar/server/db.go
    • Line 16: warning: exported type KeyValue should have comment or be unexported (golint)
    • Line 21: warning: exported function NewLocalDB should have comment or be unexported (golint)
    • stellar/proto.go
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • stellar/services/service.go
    • Line 7: warning: exported type Type should have comment or be unexported (golint)
    • Line 10: warning: exported const ApplicationService should have comment (or a comment on this block) or be unexported (golint)
    • stellar/server/server.go
    • Line 46: warning: exported type Server should have comment or be unexported (golint)
    • Line 60: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 132: warning: exported method Server.Register should have comment or be unexported (golint)
    • Line 158: warning: exported method Server.NodeID should have comment or be unexported (golint)
    • Line 282: warning: exported method Server.Run should have comment or be unexported (golint)
    • Line 447: warning: exported method Server.GenerateProfile should have comment or be unexported (golint)
    • Line 460: warning: exported method Server.Stop should have comment or be unexported (golint)
    • stellar/stellar.go
    • Line 12: warning: exported const StellarExtensionID 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!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!