Preparing report...

Report for github.com/r03/go-xmlsec

(v0.0.0-20210122192005-70b40d14be0a)

A+    Excellent!    Found 5 issues across 27 files

Tweet

gofmt92%

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!


gocyclo92%

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.


golint92%

Golint is a linter for Go source code.

    • go-xmlsec/xmlenc/decrypt.go
    • Line 25: warning: exported var ErrCannotFindEncryptedDataNode should have comment or be unexported (golint)
    • Line 27: warning: exported var ErrPublicKeyMismatch should have comment or be unexported (golint)
    • Line 29: warning: exported type ErrUnsupportedAlgorithm should have comment or be unexported (golint)
    • Line 37: warning: exported function Decrypt should have comment or be unexported (golint)
    • go-xmlsec/xmlenc/xmlenc.go
    • Line 7: warning: exported type EncryptedData should have comment or be unexported (golint)
    • Line 16: warning: exported type EncryptionMethod should have comment or be unexported (golint)
    • Line 23: warning: exported type DigestMethod should have comment or be unexported (golint)
    • Line 28: warning: exported type OAEPparams should have comment or be unexported (golint)
    • Line 33: warning: exported type KeyInfo should have comment or be unexported (golint)
    • Line 39: warning: exported type EncryptedKey should have comment or be unexported (golint)
    • Line 46: warning: exported type X509Data should have comment or be unexported (golint)
    • Line 51: warning: exported type X509Certificate should have comment or be unexported (golint)
    • Line 56: warning: exported type CipherData should have comment or be unexported (golint)
    • Line 61: warning: exported type CipherValue 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!