Preparing report...

Report for github.com/ovh/symmecrypt

A+    Excellent!    Found 9 issues across 17 files

Tweet

gofmt94%

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!


gocyclo88%

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.


golint64%

Golint is a linter for Go source code.

    • symmecrypt/cmd/symmecrypt/main.go
    • Line 26: warning: exported const EncryptionKeyBase64Env should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported var DefaultCipher should have comment or be unexported (golint)
    • symmecrypt/symutils/symutils.go
    • Line 92: warning: exported function NewFactoryAEADMutex should have comment or be unexported (golint)
    • Line 156: warning: exported function NewKeyAEAD should have comment or be unexported (golint)
    • Line 165: warning: exported function NewKeySequenceAEAD should have comment or be unexported (golint)
    • Line 288: warning: exported method KeyMutex.Encrypt should have comment or be unexported (golint)
    • Line 295: warning: exported method KeyMutex.Decrypt should have comment or be unexported (golint)
    • Line 302: warning: exported method KeyMutex.EncryptMarshal should have comment or be unexported (golint)
    • Line 309: warning: exported method KeyMutex.DecryptMarshal should have comment or be unexported (golint)
    • Line 316: warning: exported method KeyMutex.Wait should have comment or be unexported (golint)
    • Line 330: warning: exported function RandomSalt should have comment or be unexported (golint)
    • symmecrypt/stream/stream.go
    • Line 9: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 12: warning: exported const ChunkSize should have comment or be unexported (golint)
    • Line 14: warning: exported type Key should have comment or be unexported (golint)
    • Line 19: warning: exported function NewKey should have comment or be unexported (golint)
    • Line 116: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • symmecrypt/convergent/convergent.go
    • Line 6: warning: package comment is detached; there should be no blank lines between it and the package statement (golint)
    • Line 25: warning: exported type Key should have comment or be unexported (golint)
    • Line 37: warning: exported type ConvergentEncryptionConfig should have comment or be unexported (golint)
    • Line 177: warning: exported var EncryptionKeyConfigName should have comment or be unexported (golint)
    • Line 289: warning: exported function KeyFromHash should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell94%

Misspell Finds commonly misspelled English words