Preparing report...

Report for github.com/bifurcation/mint

A+    Excellent!    Found 22 issues across 46 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!


gocyclo80%

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.

    • mint/client-state-machine.go
    • Line 325: warning: cyclomatic complexity 30 of function (clientStateWaitSH).Next() is high (> 15) (gocyclo)
    • Line 70: warning: cyclomatic complexity 28 of function (clientStateStart).Next() is high (> 15) (gocyclo)
    • Line 905: warning: cyclomatic complexity 17 of function (clientStateWaitFinished).Next() is high (> 15) (gocyclo)
    • mint/conn.go
    • Line 728: warning: cyclomatic complexity 26 of function (*Conn).Handshake() is high (> 15) (gocyclo)
    • Line 307: warning: cyclomatic complexity 20 of function (*Conn).consumeRecord() is high (> 15) (gocyclo)
    • Line 575: warning: cyclomatic complexity 16 of function (*Conn).takeAction() is high (> 15) (gocyclo)
    • mint/common.go
    • Line 194: warning: cyclomatic complexity 20 of function (State).String() is high (> 15) (gocyclo)
    • mint/server-state-machine.go
    • Line 90: warning: cyclomatic complexity 50 of function (serverStateStart).Next() is high (> 15) (gocyclo)
    • Line 471: warning: cyclomatic complexity 30 of function (serverStateNegotiated).Next() is high (> 15) (gocyclo)
    • mint/tls_test.go
    • Line 99: warning: cyclomatic complexity 22 of function testConnReadNonzeroAndEOF() is high (> 15) (gocyclo)
    • Line 183: warning: cyclomatic complexity 16 of function TestExchangeData() is high (> 15) (gocyclo)

golint60%

Golint is a linter for Go source code.

    • mint/conn.go
    • Line 16: warning: exported type Certificate should have comment or be unexported (golint)
    • Line 21: warning: exported type PreSharedKey should have comment or be unexported (golint)
    • Line 32: warning: exported type PreSharedKeyCache should have comment or be unexported (golint)
    • Line 50: warning: exported type PSKMapCache should have comment or be unexported (golint)
    • Line 52: warning: exported method PSKMapCache.Get should have comment or be unexported (golint)
    • Line 57: warning: exported method PSKMapCache.Put should have comment or be unexported (golint)
    • Line 61: warning: exported method PSKMapCache.Size should have comment or be unexported (golint)
    • Line 175: warning: exported method Config.Init should have comment or be unexported (golint)
    • Line 201: warning: exported method Config.ValidForServer should have comment or be unexported (golint)
    • Line 208: warning: exported method Config.ValidForClient should have comment or be unexported (golint)
    • Line 250: warning: exported type ConnectionState should have comment or be unexported (golint)
    • Line 279: warning: exported function NewConn should have comment or be unexported (golint)
    • Line 645: warning: exported method Conn.HandshakeSetup should have comment or be unexported (golint)
    • Line 839: warning: exported method Conn.SendKeyUpdate should have comment or be unexported (golint)
    • Line 868: warning: exported method Conn.GetHsState should have comment or be unexported (golint)
    • Line 875: warning: exported method Conn.ComputeExporter should have comment or be unexported (golint)
    • Line 892: warning: exported method Conn.ConnectionState should have comment or be unexported (golint)
    • Line 909: warning: exported method Conn.Writable should have comment or be unexported (golint)
    • mint/conn_test.go
    • Line 122: warning: receiver name p should be consistent with previous receiver name b for bufferedConn (golint)
    • Line 125: warning: receiver name p should be consistent with previous receiver name b for bufferedConn (golint)
    • Line 129: warning: receiver name p should be consistent with previous receiver name b for bufferedConn (golint)
    • Line 130: warning: receiver name p should be consistent with previous receiver name b for bufferedConn (golint)
    • Line 131: warning: receiver name p should be consistent with previous receiver name b for bufferedConn (golint)
    • Line 132: warning: receiver name p should be consistent with previous receiver name b for bufferedConn (golint)
    • Line 133: warning: receiver name p should be consistent with previous receiver name b for bufferedConn (golint)
    • Line 1154: warning: receiver name h should be consistent with previous receiver name t for testExtensionHandler (golint)
    • mint/state-machine.go
    • Line 8: warning: comment on exported type HandshakeAction should be of the form "HandshakeAction ..." (with optional leading article) (golint)
    • Line 12: warning: exported type QueueHandshakeMessage should have comment or be unexported (golint)
    • Line 16: warning: exported type SendQueuedHandshake should have comment or be unexported (golint)
    • Line 18: warning: exported type SendEarlyData should have comment or be unexported (golint)
    • Line 20: warning: exported type RekeyIn should have comment or be unexported (golint)
    • Line 25: warning: exported type RekeyOut should have comment or be unexported (golint)
    • Line 30: warning: exported type ResetOut should have comment or be unexported (golint)
    • Line 34: warning: exported type StorePSK should have comment or be unexported (golint)
    • Line 38: warning: exported type HandshakeState should have comment or be unexported (golint)
    • Line 43: warning: exported type AppExtensionHandler should have comment or be unexported (golint)
    • Line 70: warning: comment on exported type HandshakeContext should be of the form "HandshakeContext ..." (with optional leading article) (golint)
    • Line 81: warning: exported method HandshakeContext.SetVersion should have comment or be unexported (golint)
    • mint/tls.go
    • Line 28: warning: comment on exported type Listener should be of the form "Listener ..." (with optional leading article) (golint)
    • Line 79: warning: exported type TimeoutError should have comment or be unexported (golint)
    • Line 82: warning: exported method TimeoutError.Timeout should have comment or be unexported (golint)
    • Line 83: warning: exported method TimeoutError.Temporary should have comment or be unexported (golint)
    • mint/syntax/decode.go
    • Line 10: warning: exported function Unmarshal should have comment or be unexported (golint)
    • Line 54: warning: receiver name e should be consistent with previous receiver name d for decodeState (golint)
    • mint/syntax/tags.go
    • Line 10: warning: comment on exported type Validator should be of the form "Validator ..." (with optional leading article) (golint)
    • mint/dtls.go
    • Line 20: warning: exported type SentHandshakeFragment should have comment or be unexported (golint)
    • Line 28: warning: exported type DtlsAck should have comment or be unexported (golint)
    • Line 131: warning: exported method Conn.GetDTLSTimeout should have comment or be unexported (golint)
    • mint/handshake-messages.go
    • Line 13: warning: exported type HandshakeMessageBody should have comment or be unexported (golint)
    • Line 19: warning: comment on exported type ClientHelloBody should be of the form "ClientHelloBody ..." (with optional leading article) (golint)
    • Line 54: warning: exported method ClientHelloBody.Type should have comment or be unexported (golint)
    • Line 58: warning: exported method ClientHelloBody.Marshal should have comment or be unexported (golint)
    • Line 68: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 81: warning: exported method ClientHelloBody.Unmarshal should have comment or be unexported (golint)
    • Line 127: warning: comment on exported method ClientHelloBody.Truncated should be of the form "Truncated ..." (golint)
    • Line 168: warning: comment on exported type ServerHelloBody should be of the form "ServerHelloBody ..." (with optional leading article) (golint)
    • Line 185: warning: exported method ServerHelloBody.Type should have comment or be unexported (golint)
    • Line 189: warning: exported method ServerHelloBody.Marshal should have comment or be unexported (golint)
    • Line 193: warning: exported method ServerHelloBody.Unmarshal should have comment or be unexported (golint)
    • Line 197: warning: comment on exported type FinishedBody should be of the form "FinishedBody ..." (with optional leading article) (golint)
    • Line 215: warning: exported method FinishedBody.Type should have comment or be unexported (golint)
    • Line 219: warning: exported method FinishedBody.Marshal should have comment or be unexported (golint)
    • Line 229: warning: exported method FinishedBody.Unmarshal should have comment or be unexported (golint)
    • Line 239: warning: comment on exported type EncryptedExtensionsBody should be of the form "EncryptedExtensionsBody ..." (with optional leading article) (golint)
    • Line 248: warning: exported method EncryptedExtensionsBody.Type should have comment or be unexported (golint)
    • Line 252: warning: exported method EncryptedExtensionsBody.Marshal should have comment or be unexported (golint)
    • Line 256: warning: exported method EncryptedExtensionsBody.Unmarshal should have comment or be unexported (golint)
    • Line 260: warning: comment on exported type CertificateEntry should be of the form "CertificateEntry ..." (with optional leading article) (golint)
    • Line 276: warning: exported type CertificateBody should have comment or be unexported (golint)
    • Line 291: warning: exported method CertificateBody.Type should have comment or be unexported (golint)
    • Line 295: warning: exported method CertificateBody.Marshal should have comment or be unexported (golint)
    • Line 311: warning: exported method CertificateBody.Unmarshal should have comment or be unexported (golint)
    • Line 333: warning: comment on exported type CertificateVerifyBody should be of the form "CertificateVerifyBody ..." (with optional leading article) (golint)
    • Line 342: warning: exported method CertificateVerifyBody.Type should have comment or be unexported (golint)
    • Line 346: warning: exported method CertificateVerifyBody.Marshal should have comment or be unexported (golint)
    • Line 350: warning: exported method CertificateVerifyBody.Unmarshal should have comment or be unexported (golint)
    • Line 354: warning: exported method CertificateVerifyBody.EncodeSignatureInput should have comment or be unexported (golint)
    • Line 365: warning: exported method CertificateVerifyBody.Sign should have comment or be unexported (golint)
    • Line 372: warning: exported method CertificateVerifyBody.Verify should have comment or be unexported (golint)
    • Line 378: warning: comment on exported type CertificateRequestBody should be of the form "CertificateRequestBody ..." (with optional leading article) (golint)
    • Line 387: warning: exported method CertificateRequestBody.Type should have comment or be unexported (golint)
    • Line 391: warning: exported method CertificateRequestBody.Marshal should have comment or be unexported (golint)
    • Line 395: warning: exported method CertificateRequestBody.Unmarshal should have comment or be unexported (golint)
    • Line 399: warning: comment on exported type NewSessionTicketBody should be of the form "NewSessionTicketBody ..." (with optional leading article) (golint)
    • Line 416: warning: exported function NewSessionTicket should have comment or be unexported (golint)
    • Line 433: warning: exported method NewSessionTicketBody.Type should have comment or be unexported (golint)
    • Line 437: warning: exported method NewSessionTicketBody.Marshal should have comment or be unexported (golint)
    • Line 441: warning: exported method NewSessionTicketBody.Unmarshal should have comment or be unexported (golint)
    • Line 445: warning: comment on exported type KeyUpdateBody should be of the form "KeyUpdateBody ..." (with optional leading article) (golint)
    • Line 456: warning: exported method KeyUpdateBody.Type should have comment or be unexported (golint)
    • Line 460: warning: exported method KeyUpdateBody.Marshal should have comment or be unexported (golint)
    • Line 464: warning: exported method KeyUpdateBody.Unmarshal should have comment or be unexported (golint)
    • Line 468: warning: comment on exported type EndOfEarlyDataBody should be of the form "EndOfEarlyDataBody ..." (with optional leading article) (golint)
    • Line 471: warning: exported method EndOfEarlyDataBody.Type should have comment or be unexported (golint)
    • Line 475: warning: exported method EndOfEarlyDataBody.Marshal should have comment or be unexported (golint)
    • Line 479: warning: exported method EndOfEarlyDataBody.Unmarshal should have comment or be unexported (golint)
    • mint/alert.go
    • Line 9: warning: exported type Alert should have comment or be unexported (golint)
    • Line 12: warning: comment on exported const AlertLevelWarning should be of the form "AlertLevelWarning ..." (golint)
    • Line 14: warning: exported const AlertLevelError should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported const AlertCloseNotify should have comment (or a comment on this block) or be unexported (golint)
    • mint/common.go
    • Line 21: warning: comment on exported type RecordType should be of the form "RecordType ..." (with optional leading article) (golint)
    • Line 25: warning: exported const RecordTypeAlert should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: comment on exported type HandshakeType should be of the form "HandshakeType ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported const HandshakeTypeClientHello should be of the form "HandshakeTypeClientHello ..." (golint)
    • Line 37: warning: exported const HandshakeTypeServerHello should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: comment on exported type CipherSuite should be of the form "CipherSuite ..." (with optional leading article) (golint)
    • Line 62: warning: comment on exported const CIPHER_SUITE_UNKNOWN should be of the form "CIPHER_SUITE_UNKNOWN ..." (golint)
    • Line 65: warning: exported const TLS_AES_128_GCM_SHA256 should have comment (or a comment on this block) or be unexported (golint)
    • Line 91: warning: comment on exported type SignatureScheme should be of the form "SignatureScheme ..." (with optional leading article) (golint)
    • Line 95: warning: comment on exported const RSA_PKCS1_SHA1 should be of the form "RSA_PKCS1_SHA1 ..." (golint)
    • Line 97: warning: exported const RSA_PKCS1_SHA256 should have comment (or a comment on this block) or be unexported (golint)
    • Line 100: warning: comment on exported const ECDSA_P256_SHA256 should be of the form "ECDSA_P256_SHA256 ..." (golint)
    • Line 104: warning: comment on exported const RSA_PSS_SHA256 should be of the form "RSA_PSS_SHA256 ..." (golint)
    • Line 108: warning: comment on exported const Ed25519 should be of the form "Ed25519 ..." (golint)
    • Line 113: warning: comment on exported type ExtensionType should be of the form "ExtensionType ..." (with optional leading article) (golint)
    • Line 117: warning: exported const ExtensionTypeServerName should have comment (or a comment on this block) or be unexported (golint)
    • Line 130: warning: comment on exported type NamedGroup should be of the form "NamedGroup ..." (with optional leading article) (golint)
    • Line 134: warning: comment on exported const P256 should be of the form "P256 ..." (golint)
    • Line 136: warning: exported const P384 should have comment (or a comment on this block) or be unexported (golint)
    • Line 138: warning: comment on exported const X25519 should be of the form "X25519 ..." (golint)
    • Line 141: warning: comment on exported const FFDHE2048 should be of the form "FFDHE2048 ..." (golint)
    • Line 149: warning: comment on exported type PSKKeyExchangeMode should be of the form "PSKKeyExchangeMode ..." (with optional leading article) (golint)
    • Line 153: warning: exported const PSKModeKE should have comment (or a comment on this block) or be unexported (golint)
    • Line 157: warning: comment on exported type KeyUpdateRequest should be of the form "KeyUpdateRequest ..." (with optional leading article) (golint)
    • Line 163: warning: exported const KeyUpdateNotRequested should have comment (or a comment on this block) or be unexported (golint)
    • Line 167: warning: exported type State should have comment or be unexported (golint)
    • Line 170: warning: exported const StateInit should have comment (or a comment on this block) or be unexported (golint)
    • Line 172: warning: comment on exported const StateClientStart should be of the form "StateClientStart ..." (golint)
    • Line 181: warning: comment on exported const StateServerStart should be of the form "StateServerStart ..." (golint)
    • Line 237: warning: comment on exported type Epoch should be of the form "Epoch ..." (with optional leading article) (golint)
    • Line 241: warning: exported const EpochClear should have comment (or a comment on this block) or be unexported (golint)
    • mint/handshake-layer.go
    • Line 15: warning: comment on exported type HandshakeMessage should be of the form "HandshakeMessage ..." (with optional leading article) (golint)
    • Line 41: warning: comment on exported method HandshakeMessage.Marshal should be of the form "Marshal ..." (golint)
    • Line 70: warning: exported method HandshakeMessage.ToBody should have comment or be unexported (golint)
    • Line 103: warning: exported method HandshakeLayer.HandshakeMessageFromBody should have comment or be unexported (golint)
    • Line 120: warning: exported type HandshakeLayer should have comment or be unexported (golint)
    • Line 156: warning: exported function NewHandshakeLayerTLS should have comment or be unexported (golint)
    • Line 166: warning: exported function NewHandshakeLayerDTLS should have comment or be unexported (golint)
    • Line 349: warning: exported method HandshakeLayer.ReadMessage should have comment or be unexported (golint)
    • Line 403: warning: exported method HandshakeLayer.QueueMessage should have comment or be unexported (golint)
    • Line 413: warning: exported method HandshakeLayer.SendQueuedMessages should have comment or be unexported (golint)
    • Line 422: warning: exported method HandshakeLayer.ClearQueuedMessages should have comment or be unexported (golint)
    • Line 496: warning: exported method HandshakeLayer.WriteMessage should have comment or be unexported (golint)
    • Line 524: warning: exported method HandshakeLayer.WriteMessages should have comment or be unexported (golint)
    • mint/extensions.go
    • Line 9: warning: exported type ExtensionBody should have comment or be unexported (golint)
    • Line 15: warning: comment on exported type Extension should be of the form "Extension ..." (with optional leading article) (golint)
    • Line 24: warning: exported method Extension.Marshal should have comment or be unexported (golint)
    • Line 28: warning: exported method Extension.Unmarshal should have comment or be unexported (golint)
    • Line 32: warning: exported type ExtensionList should have comment or be unexported (golint)
    • Line 38: warning: exported method ExtensionList.Marshal should have comment or be unexported (golint)
    • Line 42: warning: exported method ExtensionList.Unmarshal should have comment or be unexported (golint)
    • Line 53: warning: exported method ExtensionList.Add should have comment or be unexported (golint)
    • Line 79: warning: exported method ExtensionList.Parse should have comment or be unexported (golint)
    • Line 102: warning: exported method ExtensionList.Find should have comment or be unexported (golint)
    • Line 115: warning: comment on exported type ServerNameExtension should be of the form "ServerNameExtension ..." (with optional leading article) (golint)
    • Line 148: warning: exported method ServerNameExtension.Type should have comment or be unexported (golint)
    • Line 152: warning: exported method ServerNameExtension.Marshal should have comment or be unexported (golint)
    • Line 163: warning: exported method ServerNameExtension.Unmarshal should have comment or be unexported (golint)
    • Line 180: warning: comment on exported type KeyShareEntry should be of the form "KeyShareEntry ..." (with optional leading article) (golint)
    • Line 202: warning: exported method KeyShareEntry.SizeValid should have comment or be unexported (golint)
    • Line 206: warning: exported type KeyShareExtension should have comment or be unexported (golint)
    • Line 212: warning: exported type KeyShareClientHelloInner should have comment or be unexported (golint)
    • Line 215: warning: exported type KeyShareHelloRetryInner should have comment or be unexported (golint)
    • Line 218: warning: exported type KeyShareServerHelloInner should have comment or be unexported (golint)
    • Line 222: warning: exported method KeyShareExtension.Type should have comment or be unexported (golint)
    • Line 226: warning: exported method KeyShareExtension.Marshal should have comment or be unexported (golint)
    • Line 259: warning: exported method KeyShareExtension.Unmarshal should have comment or be unexported (golint)
    • Line 306: warning: comment on exported type SupportedGroupsExtension should be of the form "SupportedGroupsExtension ..." (with optional leading article) (golint)
    • Line 313: warning: exported method SupportedGroupsExtension.Type should have comment or be unexported (golint)
    • Line 317: warning: exported method SupportedGroupsExtension.Marshal should have comment or be unexported (golint)
    • Line 321: warning: exported method SupportedGroupsExtension.Unmarshal should have comment or be unexported (golint)
    • Line 325: warning: comment on exported type SignatureAlgorithmsExtension should be of the form "SignatureAlgorithmsExtension ..." (with optional leading article) (golint)
    • Line 332: warning: exported method SignatureAlgorithmsExtension.Type should have comment or be unexported (golint)
    • Line 336: warning: exported method SignatureAlgorithmsExtension.Marshal should have comment or be unexported (golint)
    • Line 340: warning: exported method SignatureAlgorithmsExtension.Unmarshal should have comment or be unexported (golint)
    • Line 344: warning: comment on exported type PSKIdentity should be of the form "PSKIdentity ..." (with optional leading article) (golint)
    • Line 367: warning: exported type PSKBinderEntry should have comment or be unexported (golint)
    • Line 371: warning: exported type PreSharedKeyExtension should have comment or be unexported (golint)
    • Line 387: warning: exported method PreSharedKeyExtension.Type should have comment or be unexported (golint)
    • Line 391: warning: exported method PreSharedKeyExtension.Marshal should have comment or be unexported (golint)
    • Line 410: warning: exported method PreSharedKeyExtension.Unmarshal should have comment or be unexported (golint)
    • Line 442: warning: exported method PreSharedKeyExtension.HasIdentity should have comment or be unexported (golint)
    • Line 451: warning: comment on exported type PSKKeyExchangeModesExtension should be of the form "PSKKeyExchangeModesExtension ..." (with optional leading article) (golint)
    • Line 460: warning: exported method PSKKeyExchangeModesExtension.Type should have comment or be unexported (golint)
    • Line 464: warning: exported method PSKKeyExchangeModesExtension.Marshal should have comment or be unexported (golint)
    • Line 468: warning: exported method PSKKeyExchangeModesExtension.Unmarshal should have comment or be unexported (golint)
    • Line 475: warning: exported type EarlyDataExtension should have comment or be unexported (golint)
    • Line 477: warning: exported method EarlyDataExtension.Type should have comment or be unexported (golint)
    • Line 481: warning: exported method EarlyDataExtension.Marshal should have comment or be unexported (golint)
    • Line 485: warning: exported method EarlyDataExtension.Unmarshal should have comment or be unexported (golint)
    • Line 493: warning: exported type TicketEarlyDataInfoExtension should have comment or be unexported (golint)
    • Line 497: warning: exported method TicketEarlyDataInfoExtension.Type should have comment or be unexported (golint)
    • Line 501: warning: exported method TicketEarlyDataInfoExtension.Marshal should have comment or be unexported (golint)
    • Line 505: warning: exported method TicketEarlyDataInfoExtension.Unmarshal should have comment or be unexported (golint)
    • Line 509: warning: comment on exported type ALPNExtension should be of the form "ALPNExtension ..." (with optional leading article) (golint)
    • Line 526: warning: exported method ALPNExtension.Type should have comment or be unexported (golint)
    • Line 530: warning: exported method ALPNExtension.Marshal should have comment or be unexported (golint)
    • Line 538: warning: exported method ALPNExtension.Unmarshal should have comment or be unexported (golint)
    • Line 553: warning: comment on exported type SupportedVersionsExtension should be of the form "SupportedVersionsExtension ..." (with optional leading article) (golint)
    • Line 561: warning: exported type SupportedVersionsClientHelloInner should have comment or be unexported (golint)
    • Line 565: warning: exported type SupportedVersionsServerHelloInner should have comment or be unexported (golint)
    • Line 569: warning: exported method SupportedVersionsExtension.Type should have comment or be unexported (golint)
    • Line 573: warning: exported method SupportedVersionsExtension.Marshal should have comment or be unexported (golint)
    • Line 584: warning: exported method SupportedVersionsExtension.Unmarshal should have comment or be unexported (golint)
    • Line 609: warning: comment on exported type CookieExtension should be of the form "CookieExtension ..." (with optional leading article) (golint)
    • Line 616: warning: exported method CookieExtension.Type should have comment or be unexported (golint)
    • Line 620: warning: exported method CookieExtension.Marshal should have comment or be unexported (golint)
    • Line 624: warning: exported method CookieExtension.Unmarshal should have comment or be unexported (golint)
    • mint/negotiation.go
    • Line 10: warning: exported function VersionNegotiation should have comment or be unexported (golint)
    • Line 25: warning: exported function DHNegotiation should have comment or be unexported (golint)
    • Line 55: warning: exported function PSKNegotiation should have comment or be unexported (golint)
    • Line 118: warning: exported function PSKModeNegotiation should have comment or be unexported (golint)
    • Line 137: warning: exported function CertificateSelection should have comment or be unexported (golint)
    • Line 171: warning: exported function EarlyDataNegotiation should have comment or be unexported (golint)
    • Line 178: warning: exported function CipherSuiteNegotiation should have comment or be unexported (golint)
    • Line 197: warning: exported function ALPNNegotiation should have comment or be unexported (golint)
    • mint/record-layer.go
    • Line 19: warning: exported type DecryptError should have comment or be unexported (golint)
    • Line 25: warning: exported type Direction should have comment or be unexported (golint)
    • Line 28: warning: exported const DirectionWrite should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: comment on exported type TLSPlaintext should be of the form "TLSPlaintext ..." (with optional leading article) (golint)
    • Line 47: warning: exported function NewTLSPlaintext should have comment or be unexported (golint)
    • Line 55: warning: exported method TLSPlaintext.Fragment should have comment or be unexported (golint)
    • Line 67: warning: exported type RecordLayerFactory should have comment or be unexported (golint)
    • Line 71: warning: exported type RecordLayer should have comment or be unexported (golint)
    • Line 85: warning: exported type DefaultRecordLayer should have comment or be unexported (golint)
    • Line 102: warning: exported method DefaultRecordLayer.Impl should have comment or be unexported (golint)
    • Line 138: warning: exported function NewRecordLayerTLS should have comment or be unexported (golint)
    • Line 149: warning: exported function NewRecordLayerDTLS should have comment or be unexported (golint)
    • Line 162: warning: exported method DefaultRecordLayer.SetVersion should have comment or be unexported (golint)
    • Line 166: warning: exported method DefaultRecordLayer.ResetClear should have comment or be unexported (golint)
    • Line 171: warning: exported method DefaultRecordLayer.Epoch should have comment or be unexported (golint)
    • Line 175: warning: exported method DefaultRecordLayer.SetLabel should have comment or be unexported (golint)
    • Line 179: warning: exported method DefaultRecordLayer.Rekey should have comment or be unexported (golint)
    • Line 191: warning: comment on exported method DefaultRecordLayer.DiscardReadKey should be of the form "DiscardReadKey ..." (golint)
    • Line 301: warning: exported method DefaultRecordLayer.PeekRecordType should have comment or be unexported (golint)
    • Line 317: warning: exported method DefaultRecordLayer.ReadRecord should have comment or be unexported (golint)
    • Line 327: warning: exported method DefaultRecordLayer.ReadRecordAnyEpoch should have comment or be unexported (golint)
    • Line 453: warning: exported method DefaultRecordLayer.WriteRecord should have comment or be unexported (golint)
    • Line 457: warning: exported method DefaultRecordLayer.WriteRecordWithPadding should have comment or be unexported (golint)
    • mint/crypto.go
    • Line 30: warning: exported type AEADFactory should have comment or be unexported (golint)
    • Line 32: warning: exported type CipherSuiteParams should have comment or be unexported (golint)
    • Line 43: warning: don't use underscores in Go names; const signatureAlgorithmRSA_PKCS1 should be signatureAlgorithmRSAPKCS1 (golint)
    • Line 44: warning: don't use underscores in Go names; const signatureAlgorithmRSA_PSS should be signatureAlgorithmRSAPSS (golint)
    • Line 503: warning: comment on exported function HkdfExtract should be of the form "HkdfExtract ..." (golint)
    • Line 562: warning: exported function HkdfExpand should have comment or be unexported (golint)
    • Line 580: warning: exported function HkdfExpandLabel should have comment or be unexported (golint)
    • Line 604: warning: exported type KeySet should have comment or be unexported (golint)
    • Line 618: warning: exported function MakeNewSelfSignedCert 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!


misspell95%

Misspell Finds commonly misspelled English words