Preparing report...

Report for bitbucket.org/vinothkumarj/scert

B    Not bad!    Found 113 issues across 176 files

Tweet

gofmt39%

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!


golint96%

Golint is a linter for Go source code.

    • /bitbucket.org/vinothkumarj/scert/kms/apiv1/requests.go
    • Line 14: warning: comment on exported const UnspecifiedProtectionLevel should be of the form "UnspecifiedProtectionLevel ..." (golint)
    • Line 16: warning: comment on exported const Software should be of the form "Software ..." (golint)
    • Line 18: warning: comment on exported const HSM should be of the form "HSM ..." (golint)
    • Line 40: warning: comment on exported const UnspecifiedSignAlgorithm should be of the form "UnspecifiedSignAlgorithm ..." (golint)
    • Line 42: warning: comment on exported const SHA256WithRSA should be of the form "SHA256WithRSA ..." (golint)
    • Line 44: warning: comment on exported const SHA384WithRSA should be of the form "SHA384WithRSA ..." (golint)
    • Line 46: warning: comment on exported const SHA512WithRSA should be of the form "SHA512WithRSA ..." (golint)
    • Line 48: warning: comment on exported const SHA256WithRSAPSS should be of the form "SHA256WithRSAPSS ..." (golint)
    • Line 50: warning: comment on exported const SHA384WithRSAPSS should be of the form "SHA384WithRSAPSS ..." (golint)
    • Line 52: warning: comment on exported const SHA512WithRSAPSS should be of the form "SHA512WithRSAPSS ..." (golint)
    • Line 54: warning: comment on exported const ECDSAWithSHA256 should be of the form "ECDSAWithSHA256 ..." (golint)
    • Line 56: warning: comment on exported const ECDSAWithSHA384 should be of the form "ECDSAWithSHA384 ..." (golint)
    • Line 58: warning: comment on exported const ECDSAWithSHA512 should be of the form "ECDSAWithSHA512 ..." (golint)
    • Line 60: warning: comment on exported const PureEd25519 should be of the form "PureEd25519 ..." (golint)

gocyclo84%

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.

    • /bitbucket.org/vinothkumarj/scert/authority/ssh.go
    • Line 207: warning: cyclomatic complexity 23 of function (*Authority).SignSSH() is high (> 15) (gocyclo)
    • Line 379: warning: cyclomatic complexity 18 of function (*Authority).RekeySSH() is high (> 15) (gocyclo)
    • Line 123: warning: cyclomatic complexity 17 of function (*Authority).GetSSHConfig() is high (> 15) (gocyclo)

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!