Preparing report...

Report for github.com/emmansun/gmsm

(v0.13.6)

A+    Excellent!    Found 21 issues across 145 files

Tweet

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!


gofmt91%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo93%

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.

    • smx509/x509.go
    • Line 835: warning: cyclomatic complexity 57 of function buildCertExtensions() is high (> 15) (gocyclo)
    • Line 1281: warning: cyclomatic complexity 29 of function CreateCertificate() is high (> 15) (gocyclo)
    • Line 1626: warning: cyclomatic complexity 25 of function CreateCertificateRequest() is high (> 15) (gocyclo)
    • Line 624: warning: cyclomatic complexity 21 of function checkSignature() is high (> 15) (gocyclo)
    • Line 305: warning: cyclomatic complexity 21 of function getSignatureAlgorithmFromAI() is high (> 15) (gocyclo)
    • Line 1876: warning: cyclomatic complexity 21 of function CreateRevocationList() is high (> 15) (gocyclo)
    • Line 1148: warning: cyclomatic complexity 19 of function signingParamsForPublicKey() is high (> 15) (gocyclo)
    • smx509/verify.go
    • Line 113: warning: cyclomatic complexity 63 of function parseRFC2821Mailbox() is high (> 15) (gocyclo)
    • Line 448: warning: cyclomatic complexity 37 of function (*Certificate).isValid() is high (> 15) (gocyclo)
    • Line 629: warning: cyclomatic complexity 22 of function (*Certificate).Verify() is high (> 15) (gocyclo)
    • Line 832: warning: cyclomatic complexity 18 of function validHostname() is high (> 15) (gocyclo)
    • smx509/x509_test.go
    • Line 825: warning: cyclomatic complexity 55 of function TestCreateSelfSignedCertificate() is high (> 15) (gocyclo)
    • Line 1712: warning: cyclomatic complexity 24 of function TestCreateRevocationList() is high (> 15) (gocyclo)
    • smx509/parser.go
    • Line 654: warning: cyclomatic complexity 49 of function processExtensions() is high (> 15) (gocyclo)
    • Line 811: warning: cyclomatic complexity 38 of function parseCertificate() is high (> 15) (gocyclo)
    • Line 494: warning: cyclomatic complexity 37 of function parseNameConstraintsExtension() is high (> 15) (gocyclo)
    • Line 237: warning: cyclomatic complexity 25 of function parsePublicKey() is high (> 15) (gocyclo)
    • Line 55: warning: cyclomatic complexity 20 of function parseASN1String() is high (> 15) (gocyclo)
    • Line 30: warning: cyclomatic complexity 16 of function isPrintable() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words