Preparing report...

Report for github.com/textileio/go-textile-core

A+    Excellent!    Found 10 issues across 21 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!


gocyclo100%

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.

No problems detected. Good job!


golint57%

Golint is a linter for Go source code.

    • go-textile-core/store/store.go
    • Line 26: warning: exported function IsValidEntityID should have comment or be unexported (golint)
    • Line 65: warning: exported type ReduceAction should have comment or be unexported (golint)
    • go-textile-core/crypto/asymmetric/asymmetric.go
    • Line 13: warning: comment on exported const NonceBytes should be of the form "NonceBytes ..." (golint)
    • Line 16: warning: comment on exported const EphemeralPublicKeyBytes should be of the form "EphemeralPublicKeyBytes ..." (golint)
    • Line 21: warning: comment on exported var BoxDecryptionError should be of the form "BoxDecryptionError ..." (golint)
    • Line 22: warning: error var BoxDecryptionError should have name of the form ErrFoo (golint)
    • go-textile-core/thread/thread.go
    • Line 134: warning: comment on exported function ExtractEncoding should be of the form "ExtractEncoding ..." (golint)
    • Line 241: warning: comment on exported method ID.StringOfBase should be of the form "StringOfBase ..." (golint)
    • go-textile-core/jwt/jwt.go
    • Line 8: warning: comment on exported type SigningMethodEd25519 should be of the form "SigningMethodEd25519 ..." (with optional leading article) (golint)
    • Line 14: warning: comment on exported var SigningMethodEd25519i should be of the form "SigningMethodEd25519i ..." (golint)
    • Line 29: warning: comment on exported method SigningMethodEd25519.Verify should be of the form "Verify ..." (golint)
    • Line 59: warning: comment on exported method SigningMethodEd25519.Sign should be of the form "Sign ..." (golint)
    • go-textile-core/bots/bots.go
    • Line 31: warning: comment on exported type DatastoreWithoutQuery should be of the form "DatastoreWithoutQuery ..." (with optional leading article) (golint)
    • go-textile-core/jwt/session.go
    • Line 15: warning: exported var ErrClaimsInvalid should have comment or be unexported (golint)
    • Line 16: warning: exported var ErrNoToken should have comment or be unexported (golint)
    • Line 17: warning: exported var ErrExpired should have comment or be unexported (golint)
    • Line 18: warning: exported var ErrInvalid should have comment or be unexported (golint)
    • Line 20: warning: exported type Claims should have comment or be unexported (golint)
    • Line 25: warning: exported type Scope should have comment or be unexported (golint)
    • Line 28: warning: exported const Access should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type Session should have comment or be unexported (golint)
    • Line 42: warning: exported function NewSession should have comment or be unexported (golint)
    • Line 101: warning: exported function ParseClaims should have comment or be unexported (golint)
    • Line 117: warning: exported function Validate should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!