Preparing report...

Report for moul.io/cryptoguess

A+    Excellent!    Found 6 issues across 10 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!


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!


golint40%

Golint is a linter for Go source code.

    • /moul.io/cryptoguess/cryptoguess/guess_x509.go
    • Line 21: warning: exported type X509PKIXPublicKey should have comment or be unexported (golint)
    • Line 30: warning: exported function NewX509PKIXPublicKey should have comment or be unexported (golint)
    • Line 44: warning: exported type X509PKCS8PrivateKey should have comment or be unexported (golint)
    • Line 52: warning: exported function NewX509PKCS8PrivateKey should have comment or be unexported (golint)
    • Line 66: warning: exported type X509PKCS1PublicKey should have comment or be unexported (golint)
    • Line 74: warning: exported function NewX509PKCS1PublicKey should have comment or be unexported (golint)
    • Line 88: warning: exported type X509PKCS1PrivateKey should have comment or be unexported (golint)
    • Line 96: warning: exported function NewX509PKCS1PrivateKey should have comment or be unexported (golint)
    • Line 110: warning: exported type X509ECPrivateKey should have comment or be unexported (golint)
    • Line 118: warning: exported function NewX509ECPrivateKey should have comment or be unexported (golint)
    • Line 132: warning: exported type X509DERCRL should have comment or be unexported (golint)
    • Line 140: warning: exported function NewX509DERCRL should have comment or be unexported (golint)
    • Line 154: warning: exported type X509CRL should have comment or be unexported (golint)
    • Line 162: warning: exported function NewX509CRL should have comment or be unexported (golint)
    • Line 176: warning: exported type X509Certificate should have comment or be unexported (golint)
    • Line 184: warning: exported function NewX509Certificate should have comment or be unexported (golint)
    • Line 198: warning: exported type X509Certificates should have comment or be unexported (golint)
    • Line 206: warning: exported function NewX509Certificates should have comment or be unexported (golint)
    • Line 220: warning: exported type X509CertificateRequest should have comment or be unexported (golint)
    • Line 228: warning: exported function NewX509CertificateRequest should have comment or be unexported (golint)
    • /moul.io/cryptoguess/cryptoguess/cryptoguess.go
    • Line 12: warning: exported type Question should have comment or be unexported (golint)
    • Line 16: warning: exported method Question.Short should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • Line 51: warning: exported type Experiment should have comment or be unexported (golint)
    • Line 60: warning: exported type ExperimentFunc should have comment or be unexported (golint)
    • Line 62: warning: exported var AvailableExperiments should have comment or be unexported (golint)
    • Line 109: warning: exported type Result should have comment or be unexported (golint)
    • /moul.io/cryptoguess/cryptoguess/guess_jwt.go
    • Line 9: warning: exported type JWTSignedToken should have comment or be unexported (golint)
    • Line 11: warning: exported type ParsedJWTSignedToken should have comment or be unexported (golint)
    • Line 33: warning: exported function NewJWTSignedToken should have comment or be unexported (golint)
    • /moul.io/cryptoguess/cryptoguess/guess_ssh.go
    • Line 9: warning: exported type SSHAuthorizedKey should have comment or be unexported (golint)
    • Line 11: warning: exported type ParsedSSHAuthorizedKey should have comment or be unexported (golint)
    • Line 34: warning: exported function NewSSHAuthorizedKey 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!