Preparing report...

Report for github.com/liftbridge-io/liftbridge

A+    Excellent!    Found 9 issues across 52 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!


golint96%

Golint is a linter for Go source code.

    • liftbridge/server/encryption/localkey_handler.go
    • Line 13: warning: exported type AESKeyLength should have comment or be unexported (golint)
    • Line 16: warning: comment on exported const AES256KeyLength should be of the form "AES256KeyLength ..." (golint)
    • Line 21: warning: exported const AES192KeyLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 146: warning: exported method LocalEncryptionHandler.Seal should have comment or be unexported (golint)
    • liftbridge/server/api_test.go
    • Line 1946: warning: don't use underscores in Go names; var ch1_encrypted should be ch1Encrypted (golint)
    • Line 1947: warning: don't use underscores in Go names; var ch2_encrypted should be ch2Encrypted (golint)
    • Line 1949: warning: don't use underscores in Go names; var ch1_non_encrypted should be ch1NonEncrypted (golint)
    • Line 1950: warning: don't use underscores in Go names; var ch2_non_encrypted should be ch2NonEncrypted (golint)

gocyclo86%

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.


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words