Preparing report...

Report for github.com/rarimo/certificate-transparency-go

(v0.0.0-20240213153232-779dc2e9b9d3)

A+    Excellent!    Found 33 issues across 212 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!


gofmt99%

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!


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.

    • x509/names.go
    • Line 97: warning: cyclomatic complexity 16 of function parseGeneralName() is high (> 15) (gocyclo)
    • x509/pkix/pkix.go
    • Line 134: warning: cyclomatic complexity 18 of function (*Name).FillFromRDNSequence() is high (> 15) (gocyclo)
    • asn1/asn1.go
    • Line 765: warning: cyclomatic complexity 100 of function parseField() is high (> 15) (gocyclo)
    • Line 475: warning: cyclomatic complexity 18 of function isPrintable() is high (> 15) (gocyclo)
    • x509/x509_test.go
    • Line 665: warning: cyclomatic complexity 55 of function TestCreateSelfSignedCertificate() is high (> 15) (gocyclo)
    • Line 229: warning: cyclomatic complexity 16 of function TestMarshalRSAPublicKey() is high (> 15) (gocyclo)
    • asn1/marshal.go
    • Line 532: warning: cyclomatic complexity 38 of function makeField() is high (> 15) (gocyclo)
    • Line 417: warning: cyclomatic complexity 31 of function makeBody() is high (> 15) (gocyclo)
    • x509/revoked.go
    • Line 151: warning: cyclomatic complexity 37 of function ParseCertificateListDER() is high (> 15) (gocyclo)
    • Line 320: warning: cyclomatic complexity 16 of function parseRevokedCertificate() is high (> 15) (gocyclo)
    • asn1/common.go
    • Line 96: warning: cyclomatic complexity 22 of function parseFieldParameters() is high (> 15) (gocyclo)
    • tls/signature.go
    • Line 66: warning: cyclomatic complexity 19 of function VerifySignature() is high (> 15) (gocyclo)
    • submission/races.go
    • Line 103: warning: cyclomatic complexity 17 of function (*safeSubmissionState).setResult() is high (> 15) (gocyclo)
    • x509/verify.go
    • Line 235: warning: cyclomatic complexity 63 of function parseRFC2821Mailbox() is high (> 15) (gocyclo)
    • Line 570: warning: cyclomatic complexity 42 of function (*Certificate).isValid() is high (> 15) (gocyclo)
    • Line 743: warning: cyclomatic complexity 21 of function (*Certificate).Verify() is high (> 15) (gocyclo)
    • Line 899: warning: cyclomatic complexity 17 of function validHostname() is high (> 15) (gocyclo)
    • Line 828: warning: cyclomatic complexity 17 of function (*Certificate).buildChains() is high (> 15) (gocyclo)
    • x509/x509.go
    • Line 2327: warning: cyclomatic complexity 75 of function buildExtensions() is high (> 15) (gocyclo)
    • Line 1845: warning: cyclomatic complexity 74 of function parseCertificate() is high (> 15) (gocyclo)
    • Line 1685: warning: cyclomatic complexity 37 of function parseNameConstraintsExtension() is high (> 15) (gocyclo)
    • Line 1345: warning: cyclomatic complexity 29 of function parsePublicKey() is high (> 15) (gocyclo)
    • Line 3081: warning: cyclomatic complexity 29 of function CreateCertificateRequest() is high (> 15) (gocyclo)
    • Line 1060: warning: cyclomatic complexity 28 of function checkSignature() is high (> 15) (gocyclo)
    • Line 510: warning: cyclomatic complexity 21 of function SignatureAlgorithmFromAI() is high (> 15) (gocyclo)
    • Line 1231: warning: cyclomatic complexity 16 of function BuildPrecertTBS() is high (> 15) (gocyclo)
    • Line 2639: warning: cyclomatic complexity 16 of function signingParamsForPublicKey() is high (> 15) (gocyclo)
    • tls/tls.go
    • Line 525: warning: cyclomatic complexity 38 of function marshalField() is high (> 15) (gocyclo)
    • Line 314: warning: cyclomatic complexity 35 of function parseField() is high (> 15) (gocyclo)
    • Line 208: warning: cyclomatic complexity 24 of function fieldTagToFieldInfo() is high (> 15) (gocyclo)
    • x509util/x509util.go
    • Line 43: warning: cyclomatic complexity 22 of function OIDForStandardExtension() is high (> 15) (gocyclo)
    • Line 255: warning: cyclomatic complexity 18 of function attributeOIDToString() is high (> 15) (gocyclo)
    • Line 297: warning: cyclomatic complexity 18 of function NameToString() is high (> 15) (gocyclo)
    • Line 776: warning: cyclomatic complexity 17 of function oidAlreadyPrinted() is high (> 15) (gocyclo)
    • x509/name_constraints_test.go
    • Line 1864: warning: cyclomatic complexity 25 of function TestConstraintCases() is high (> 15) (gocyclo)
    • Line 1769: warning: cyclomatic complexity 17 of function addConstraintsToTemplate() is high (> 15) (gocyclo)
    • trillian/ctfe/handlers_test.go
    • Line 819: warning: cyclomatic complexity 21 of function TestGetEntries() is high (> 15) (gocyclo)
    • Line 1494: warning: cyclomatic complexity 16 of function TestGetSTHConsistency() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!