Preparing report...

Report for github.com/cossacklabs/themis

A+    Excellent!    Found 27 issues across 41 files

Tweet

gofmt87%

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!


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!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign34%

IneffAssign detects ineffectual assignments in Go code.

    • themis/tools/afl/generate/scell_seal_decrypt.go
    • Line 22: warning: cannot find package "." in: (ineffassign)
    • Line 22: warning: could not import github.com/cossacklabs/themis/gothemis/cell (invalid package name: "") (ineffassign)
    • Line 27: warning: other declaration of writeByteString (ineffassign)
    • Line 32: warning: other declaration of main (ineffassign)
    • Line 27: warning: other declaration of writeByteString (ineffassign)
    • Line 32: warning: other declaration of main (ineffassign)
    • Line 27: warning: other declaration of writeByteString (ineffassign)
    • Line 32: warning: other declaration of main (ineffassign)
    • themis/docs/examples/go/secure_session_server.go
    • Line 13: warning: callbacks redeclared in this block (ineffassign)
    • Line 28: warning: connectionHandler redeclared in this block (ineffassign)
    • Line 65: warning: main redeclared in this block (ineffassign)
    • Line 16: warning: method GetPublicKeyForId already declared for type callbacks struct{} (ineffassign)
    • Line 24: warning: method StateChanged already declared for type callbacks struct{} (ineffassign)
    • themis/tools/go/keygen.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/cossacklabs/themis/gothemis/keys (invalid package name: "") (ineffassign)
    • Line 10: warning: other declaration of main (ineffassign)
    • Line 10: warning: other declaration of main (ineffassign)
    • Line 10: warning: other declaration of main (ineffassign)
    • Line 10: warning: other declaration of main (ineffassign)
    • Line 10: warning: other declaration of main (ineffassign)
    • themis/docs/examples/go/secure_session_client.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/cossacklabs/themis/gothemis/session (invalid package name: "") (ineffassign)
    • Line 57: warning: main redeclared in this block (ineffassign)
    • Line 13: warning: other declaration of callbacks (ineffassign)
    • Line 16: warning: other declaration of GetPublicKeyForId (ineffassign)
    • Line 24: warning: other declaration of StateChanged (ineffassign)
    • themis/docs/examples/Themis-server/go/smessage_server.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/cossacklabs/themis/gothemis/keys (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/cossacklabs/themis/gothemis/message (invalid package name: "") (ineffassign)
    • Line 18: warning: other declaration of sendMessage (ineffassign)
    • Line 116: warning: other declaration of main (ineffassign)
    • themis/tools/afl/generate/smessage_encrypt_decrypt.go
    • Line 25: warning: cannot find package "." in: (ineffassign)
    • Line 26: warning: cannot find package "." in: (ineffassign)
    • Line 25: warning: could not import github.com/cossacklabs/themis/gothemis/keys (invalid package name: "") (ineffassign)
    • Line 26: warning: could not import github.com/cossacklabs/themis/gothemis/message (invalid package name: "") (ineffassign)
    • Line 29: warning: writeByteString redeclared in this block (ineffassign)
    • Line 34: warning: main redeclared in this block (ineffassign)
    • themis/docs/examples/go/secure_cell.go
    • Line 25: warning: cannot find package "." in: (ineffassign)
    • Line 26: warning: cannot find package "." in: (ineffassign)
    • Line 25: warning: could not import github.com/cossacklabs/themis/gothemis/cell (invalid package name: "") (ineffassign)
    • Line 26: warning: could not import github.com/cossacklabs/themis/gothemis/keys (invalid package name: "") (ineffassign)
    • Line 149: warning: other declaration of main (ineffassign)
    • Line 149: warning: other declaration of main (ineffassign)
    • Line 149: warning: other declaration of main (ineffassign)
    • Line 149: warning: other declaration of main (ineffassign)
    • Line 149: warning: other declaration of main (ineffassign)
    • Line 149: warning: other declaration of main (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!