Preparing report...

Report for github.com/fako1024/gatt

A+    Excellent!    Found 23 issues across 55 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!


gocyclo92%

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.

    • gatt/adv.go
    • Line 79: warning: cyclomatic complexity 20 of function (*Advertisement).unmarshall() is high (> 15) (gocyclo)
    • Line 196: warning: cyclomatic complexity 17 of function (*AdvPacket).AppendUUIDFit() is high (> 15) (gocyclo)
    • gatt/device_darwin.go
    • Line 149: warning: cyclomatic complexity 17 of function (*device).AddService() is high (> 15) (gocyclo)
    • Line 367: warning: cyclomatic complexity 16 of function (*device).HandleXpcEvent() is high (> 15) (gocyclo)

golint63%

Golint is a linter for Go source code.

    • gatt/common.go
    • Line 25: warning: exported type Property should have comment or be unexported (golint)
    • Line 119: warning: comment on exported method Service.Characteristics should be of the form "Characteristics ..." (golint)
    • gatt/device.go
    • Line 5: warning: error var notImplemented should have name of the form errFoo (golint)
    • Line 7: warning: exported type State should have comment or be unexported (golint)
    • Line 10: warning: exported const StateUnknown should have comment (or a comment on this block) or be unexported (golint)
    • gatt/linux/cmd/cmd.go
    • Line 14: warning: exported type CmdParam should have comment or be unexported (golint)
    • Line 20: warning: exported function NewCmd should have comment or be unexported (golint)
    • Line 47: warning: exported type Cmd should have comment or be unexported (golint)
    • Line 56: warning: exported method Cmd.HandleComplete should have comment or be unexported (golint)
    • Line 65: warning: exported method Cmd.HandleStatus should have comment or be unexported (golint)
    • Line 74: warning: exported method Cmd.Send should have comment or be unexported (golint)
    • Line 88: warning: exported method Cmd.SendAndCheckResp should have comment or be unexported (golint)
    • Line 353: warning: exported method Disconnect.Opcode should have comment or be unexported (golint)
    • Line 354: warning: exported method Disconnect.Len should have comment or be unexported (golint)
    • Line 355: warning: exported method Disconnect.Marshal should have comment or be unexported (golint)
    • Line 360: warning: comment on exported type DisconnectRP should be of the form "DisconnectRP ..." (with optional leading article) (golint)
    • Line 365: warning: comment on exported type WriteDefaultLinkPolicy should be of the form "WriteDefaultLinkPolicy ..." (with optional leading article) (golint)
    • Line 368: warning: exported method WriteDefaultLinkPolicy.Opcode should have comment or be unexported (golint)
    • Line 369: warning: exported method WriteDefaultLinkPolicy.Len should have comment or be unexported (golint)
    • Line 370: warning: exported method WriteDefaultLinkPolicy.Marshal should have comment or be unexported (golint)
    • Line 372: warning: exported type WriteDefaultLinkPolicyRP should have comment or be unexported (golint)
    • Line 376: warning: comment on exported type SetEventMask should be of the form "SetEventMask ..." (with optional leading article) (golint)
    • Line 379: warning: exported method SetEventMask.Opcode should have comment or be unexported (golint)
    • Line 380: warning: exported method SetEventMask.Len should have comment or be unexported (golint)
    • Line 381: warning: exported method SetEventMask.Marshal should have comment or be unexported (golint)
    • Line 383: warning: exported type SetEventMaskRP should have comment or be unexported (golint)
    • Line 388: warning: exported method Reset.Opcode should have comment or be unexported (golint)
    • Line 389: warning: exported method Reset.Len should have comment or be unexported (golint)
    • Line 390: warning: exported method Reset.Marshal should have comment or be unexported (golint)
    • Line 392: warning: exported type ResetRP should have comment or be unexported (golint)
    • Line 408: warning: exported type SetEventFltRP should have comment or be unexported (golint)
    • Line 413: warning: exported method Flush.Opcode should have comment or be unexported (golint)
    • Line 414: warning: exported method Flush.Len should have comment or be unexported (golint)
    • Line 415: warning: exported method Flush.Marshal should have comment or be unexported (golint)
    • Line 419: warning: comment on exported type WritePageTimeout should be of the form "WritePageTimeout ..." (with optional leading article) (golint)
    • Line 422: warning: exported method WritePageTimeout.Opcode should have comment or be unexported (golint)
    • Line 423: warning: exported method WritePageTimeout.Len should have comment or be unexported (golint)
    • Line 424: warning: exported method WritePageTimeout.Marshal should have comment or be unexported (golint)
    • Line 426: warning: exported type WritePageTimeoutRP should have comment or be unexported (golint)
    • Line 428: warning: comment on exported type WriteClassOfDevice should be of the form "WriteClassOfDevice ..." (with optional leading article) (golint)
    • Line 431: warning: exported method WriteClassOfDevice.Opcode should have comment or be unexported (golint)
    • Line 432: warning: exported method WriteClassOfDevice.Len should have comment or be unexported (golint)
    • Line 433: warning: exported method WriteClassOfDevice.Marshal should have comment or be unexported (golint)
    • Line 435: warning: exported type WriteClassOfDevRP should have comment or be unexported (golint)
    • Line 437: warning: comment on exported type HostBufferSize should be of the form "HostBufferSize ..." (with optional leading article) (golint)
    • Line 445: warning: exported method HostBufferSize.Opcode should have comment or be unexported (golint)
    • Line 446: warning: exported method HostBufferSize.Len should have comment or be unexported (golint)
    • Line 447: warning: exported method HostBufferSize.Marshal should have comment or be unexported (golint)
    • Line 454: warning: exported type HostBufferSizeRP should have comment or be unexported (golint)
    • Line 456: warning: comment on exported type WriteInquiryScanType should be of the form "WriteInquiryScanType ..." (with optional leading article) (golint)
    • Line 459: warning: exported method WriteInquiryScanType.Opcode should have comment or be unexported (golint)
    • Line 460: warning: exported method WriteInquiryScanType.Len should have comment or be unexported (golint)
    • Line 461: warning: exported method WriteInquiryScanType.Marshal should have comment or be unexported (golint)
    • Line 463: warning: exported type WriteInquiryScanTypeRP should have comment or be unexported (golint)
    • Line 465: warning: comment on exported type WriteInquiryMode should be of the form "WriteInquiryMode ..." (with optional leading article) (golint)
    • Line 470: warning: exported method WriteInquiryMode.Opcode should have comment or be unexported (golint)
    • Line 471: warning: exported method WriteInquiryMode.Len should have comment or be unexported (golint)
    • Line 472: warning: exported method WriteInquiryMode.Marshal should have comment or be unexported (golint)
    • Line 474: warning: exported type WriteInquiryModeRP should have comment or be unexported (golint)
    • Line 476: warning: comment on exported type WritePageScanType should be of the form "WritePageScanType ..." (with optional leading article) (golint)
    • Line 479: warning: exported method WritePageScanType.Opcode should have comment or be unexported (golint)
    • Line 480: warning: exported method WritePageScanType.Len should have comment or be unexported (golint)
    • Line 481: warning: exported method WritePageScanType.Marshal should have comment or be unexported (golint)
    • Line 483: warning: exported type WritePageScanTypeRP should have comment or be unexported (golint)
    • Line 485: warning: comment on exported type WriteSimplePairingMode should be of the form "WriteSimplePairingMode ..." (with optional leading article) (golint)
    • Line 488: warning: exported method WriteSimplePairingMode.Opcode should have comment or be unexported (golint)
    • Line 489: warning: exported method WriteSimplePairingMode.Len should have comment or be unexported (golint)
    • Line 490: warning: exported method WriteSimplePairingMode.Marshal should have comment or be unexported (golint)
    • Line 492: warning: exported type WriteSimplePairingModeRP should have comment or be unexported (golint)
    • Line 494: warning: comment on exported type SetEventMaskPage2 should be of the form "SetEventMaskPage2 ..." (with optional leading article) (golint)
    • Line 497: warning: exported method SetEventMaskPage2.Opcode should have comment or be unexported (golint)
    • Line 498: warning: exported method SetEventMaskPage2.Len should have comment or be unexported (golint)
    • Line 499: warning: exported method SetEventMaskPage2.Marshal should have comment or be unexported (golint)
    • Line 501: warning: exported type SetEventMaskPage2RP should have comment or be unexported (golint)
    • Line 503: warning: comment on exported type WriteLEHostSupported should be of the form "WriteLEHostSupported ..." (with optional leading article) (golint)
    • Line 509: warning: exported method WriteLEHostSupported.Opcode should have comment or be unexported (golint)
    • Line 510: warning: exported method WriteLEHostSupported.Len should have comment or be unexported (golint)
    • Line 511: warning: exported method WriteLEHostSupported.Marshal should have comment or be unexported (golint)
    • Line 513: warning: exported type WriteLeHostSupportedRP should have comment or be unexported (golint)
    • Line 517: warning: comment on exported type LESetEventMask should be of the form "LESetEventMask ..." (with optional leading article) (golint)
    • Line 520: warning: exported method LESetEventMask.Opcode should have comment or be unexported (golint)
    • Line 521: warning: exported method LESetEventMask.Len should have comment or be unexported (golint)
    • Line 522: warning: exported method LESetEventMask.Marshal should have comment or be unexported (golint)
    • Line 524: warning: exported type LESetEventMaskRP should have comment or be unexported (golint)
    • Line 526: warning: comment on exported type LEReadBufferSize should be of the form "LEReadBufferSize ..." (with optional leading article) (golint)
    • Line 529: warning: exported method LEReadBufferSize.Opcode should have comment or be unexported (golint)
    • Line 530: warning: exported method LEReadBufferSize.Len should have comment or be unexported (golint)
    • Line 531: warning: exported method LEReadBufferSize.Marshal should have comment or be unexported (golint)
    • Line 533: warning: exported type LEReadBufferSizeRP should have comment or be unexported (golint)
    • Line 539: warning: comment on exported type LEReadLocalSupportedFeatures should be of the form "LEReadLocalSupportedFeatures ..." (with optional leading article) (golint)
    • Line 542: warning: exported method LEReadLocalSupportedFeatures.Opcode should have comment or be unexported (golint)
    • Line 543: warning: exported method LEReadLocalSupportedFeatures.Len should have comment or be unexported (golint)
    • Line 544: warning: exported method LEReadLocalSupportedFeatures.Marshal should have comment or be unexported (golint)
    • Line 546: warning: exported type LEReadLocalSupportedFeaturesRP should have comment or be unexported (golint)
    • Line 551: warning: comment on exported type LESetRandomAddress should be of the form "LESetRandomAddress ..." (with optional leading article) (golint)
    • Line 554: warning: exported method LESetRandomAddress.Opcode should have comment or be unexported (golint)
    • Line 555: warning: exported method LESetRandomAddress.Len should have comment or be unexported (golint)
    • Line 556: warning: exported method LESetRandomAddress.Marshal should have comment or be unexported (golint)
    • Line 558: warning: exported type LESetRandomAddressRP should have comment or be unexported (golint)
    • Line 560: warning: comment on exported type LESetAdvertisingParameters should be of the form "LESetAdvertisingParameters ..." (with optional leading article) (golint)
    • Line 572: warning: exported method LESetAdvertisingParameters.Opcode should have comment or be unexported (golint)
    • Line 573: warning: exported method LESetAdvertisingParameters.Len should have comment or be unexported (golint)
    • Line 574: warning: exported method LESetAdvertisingParameters.Marshal should have comment or be unexported (golint)
    • Line 585: warning: exported type LESetAdvertisingParametersRP should have comment or be unexported (golint)
    • Line 587: warning: comment on exported type LEReadAdvertisingChannelTxPower should be of the form "LEReadAdvertisingChannelTxPower ..." (with optional leading article) (golint)
    • Line 590: warning: exported method LEReadAdvertisingChannelTxPower.Opcode should have comment or be unexported (golint)
    • Line 591: warning: exported method LEReadAdvertisingChannelTxPower.Len should have comment or be unexported (golint)
    • Line 592: warning: exported method LEReadAdvertisingChannelTxPower.Marshal should have comment or be unexported (golint)
    • Line 594: warning: exported type LEReadAdvertisingChannelTxPowerRP should have comment or be unexported (golint)
    • Line 599: warning: comment on exported type LESetAdvertisingData should be of the form "LESetAdvertisingData ..." (with optional leading article) (golint)
    • Line 605: warning: exported method LESetAdvertisingData.Opcode should have comment or be unexported (golint)
    • Line 606: warning: exported method LESetAdvertisingData.Len should have comment or be unexported (golint)
    • Line 607: warning: exported method LESetAdvertisingData.Marshal should have comment or be unexported (golint)
    • Line 612: warning: exported type LESetAdvertisingDataRP should have comment or be unexported (golint)
    • Line 614: warning: comment on exported type LESetScanResponseData should be of the form "LESetScanResponseData ..." (with optional leading article) (golint)
    • Line 620: warning: exported method LESetScanResponseData.Opcode should have comment or be unexported (golint)
    • Line 621: warning: exported method LESetScanResponseData.Len should have comment or be unexported (golint)
    • Line 622: warning: exported method LESetScanResponseData.Marshal should have comment or be unexported (golint)
    • Line 627: warning: exported type LESetScanResponseDataRP should have comment or be unexported (golint)
    • Line 629: warning: comment on exported type LESetAdvertiseEnable should be of the form "LESetAdvertiseEnable ..." (with optional leading article) (golint)
    • Line 632: warning: exported method LESetAdvertiseEnable.Opcode should have comment or be unexported (golint)
    • Line 633: warning: exported method LESetAdvertiseEnable.Len should have comment or be unexported (golint)
    • Line 634: warning: exported method LESetAdvertiseEnable.Marshal should have comment or be unexported (golint)
    • Line 636: warning: exported type LESetAdvertiseEnableRP should have comment or be unexported (golint)
    • Line 638: warning: comment on exported type LESetScanParameters should be of the form "LESetScanParameters ..." (with optional leading article) (golint)
    • Line 647: warning: exported method LESetScanParameters.Opcode should have comment or be unexported (golint)
    • Line 648: warning: exported method LESetScanParameters.Len should have comment or be unexported (golint)
    • Line 649: warning: exported method LESetScanParameters.Marshal should have comment or be unexported (golint)
    • Line 657: warning: exported type LESetScanParametersRP should have comment or be unexported (golint)
    • Line 659: warning: comment on exported type LESetScanEnable should be of the form "LESetScanEnable ..." (with optional leading article) (golint)
    • Line 665: warning: exported method LESetScanEnable.Opcode should have comment or be unexported (golint)
    • Line 666: warning: exported method LESetScanEnable.Len should have comment or be unexported (golint)
    • Line 667: warning: exported method LESetScanEnable.Marshal should have comment or be unexported (golint)
    • Line 669: warning: exported type LESetScanEnableRP should have comment or be unexported (golint)
    • Line 671: warning: comment on exported type LECreateConn should be of the form "LECreateConn ..." (with optional leading article) (golint)
    • Line 687: warning: exported method LECreateConn.Opcode should have comment or be unexported (golint)
    • Line 688: warning: exported method LECreateConn.Len should have comment or be unexported (golint)
    • Line 689: warning: exported method LECreateConn.Marshal should have comment or be unexported (golint)
    • Line 704: warning: exported type LECreateConnRP should have comment or be unexported (golint)
    • Line 706: warning: comment on exported type LECreateConnCancel should be of the form "LECreateConnCancel ..." (with optional leading article) (golint)
    • Line 709: warning: exported method LECreateConnCancel.Opcode should have comment or be unexported (golint)
    • Line 710: warning: exported method LECreateConnCancel.Len should have comment or be unexported (golint)
    • Line 711: warning: exported method LECreateConnCancel.Marshal should have comment or be unexported (golint)
    • Line 713: warning: exported type LECreateConnCancelRP should have comment or be unexported (golint)
    • Line 715: warning: comment on exported type LEReadWhiteListSize should be of the form "LEReadWhiteListSize ..." (with optional leading article) (golint)
    • Line 718: warning: exported method LEReadWhiteListSize.Opcode should have comment or be unexported (golint)
    • Line 719: warning: exported method LEReadWhiteListSize.Len should have comment or be unexported (golint)
    • Line 720: warning: exported method LEReadWhiteListSize.Marshal should have comment or be unexported (golint)
    • Line 722: warning: exported type LEReadWhiteListSizeRP should have comment or be unexported (golint)
    • Line 727: warning: comment on exported type LEClearWhiteList should be of the form "LEClearWhiteList ..." (with optional leading article) (golint)
    • Line 730: warning: exported method LEClearWhiteList.Opcode should have comment or be unexported (golint)
    • Line 731: warning: exported method LEClearWhiteList.Len should have comment or be unexported (golint)
    • Line 732: warning: exported method LEClearWhiteList.Marshal should have comment or be unexported (golint)
    • Line 734: warning: exported type LEClearWhiteListRP should have comment or be unexported (golint)
    • Line 736: warning: comment on exported type LEAddDeviceToWhiteList should be of the form "LEAddDeviceToWhiteList ..." (with optional leading article) (golint)
    • Line 742: warning: exported method LEAddDeviceToWhiteList.Opcode should have comment or be unexported (golint)
    • Line 743: warning: exported method LEAddDeviceToWhiteList.Len should have comment or be unexported (golint)
    • Line 744: warning: exported method LEAddDeviceToWhiteList.Marshal should have comment or be unexported (golint)
    • Line 749: warning: exported type LEAddDeviceToWhiteListRP should have comment or be unexported (golint)
    • Line 751: warning: comment on exported type LERemoveDeviceFromWhiteList should be of the form "LERemoveDeviceFromWhiteList ..." (with optional leading article) (golint)
    • Line 757: warning: exported method LERemoveDeviceFromWhiteList.Opcode should have comment or be unexported (golint)
    • Line 758: warning: exported method LERemoveDeviceFromWhiteList.Len should have comment or be unexported (golint)
    • Line 759: warning: exported method LERemoveDeviceFromWhiteList.Marshal should have comment or be unexported (golint)
    • Line 764: warning: exported type LERemoveDeviceFromWhiteListRP should have comment or be unexported (golint)
    • Line 766: warning: comment on exported type LEConnUpdate should be of the form "LEConnUpdate ..." (with optional leading article) (golint)
    • Line 777: warning: exported method LEConnUpdate.Opcode should have comment or be unexported (golint)
    • Line 778: warning: exported method LEConnUpdate.Len should have comment or be unexported (golint)
    • Line 779: warning: exported method LEConnUpdate.Marshal should have comment or be unexported (golint)
    • Line 789: warning: exported type LEConnUpdateRP should have comment or be unexported (golint)
    • Line 791: warning: comment on exported type LESetHostChannelClassification should be of the form "LESetHostChannelClassification ..." (with optional leading article) (golint)
    • Line 794: warning: exported method LESetHostChannelClassification.Opcode should have comment or be unexported (golint)
    • Line 795: warning: exported method LESetHostChannelClassification.Len should have comment or be unexported (golint)
    • Line 796: warning: exported method LESetHostChannelClassification.Marshal should have comment or be unexported (golint)
    • Line 798: warning: exported type LESetHostChannelClassificationRP should have comment or be unexported (golint)
    • Line 800: warning: comment on exported type LEReadChannelMap should be of the form "LEReadChannelMap ..." (with optional leading article) (golint)
    • Line 803: warning: exported method LEReadChannelMap.Opcode should have comment or be unexported (golint)
    • Line 804: warning: exported method LEReadChannelMap.Len should have comment or be unexported (golint)
    • Line 805: warning: exported method LEReadChannelMap.Marshal should have comment or be unexported (golint)
    • Line 807: warning: exported type LEReadChannelMapRP should have comment or be unexported (golint)
    • Line 813: warning: comment on exported type LEReadRemoteUsedFeatures should be of the form "LEReadRemoteUsedFeatures ..." (with optional leading article) (golint)
    • Line 816: warning: exported method LEReadRemoteUsedFeatures.Opcode should have comment or be unexported (golint)
    • Line 817: warning: exported method LEReadRemoteUsedFeatures.Len should have comment or be unexported (golint)
    • Line 818: warning: exported method LEReadRemoteUsedFeatures.Marshal should have comment or be unexported (golint)
    • Line 820: warning: exported type LEReadRemoteUsedFeaturesRP should have comment or be unexported (golint)
    • Line 822: warning: comment on exported type LEEncrypt should be of the form "LEEncrypt ..." (with optional leading article) (golint)
    • Line 828: warning: exported method LEEncrypt.Opcode should have comment or be unexported (golint)
    • Line 829: warning: exported method LEEncrypt.Len should have comment or be unexported (golint)
    • Line 830: warning: exported method LEEncrypt.Marshal should have comment or be unexported (golint)
    • Line 835: warning: exported type LEEncryptRP should have comment or be unexported (golint)
    • Line 840: warning: comment on exported type LERand should be of the form "LERand ..." (with optional leading article) (golint)
    • Line 843: warning: exported method LERand.Opcode should have comment or be unexported (golint)
    • Line 844: warning: exported method LERand.Len should have comment or be unexported (golint)
    • Line 845: warning: exported method LERand.Marshal should have comment or be unexported (golint)
    • Line 847: warning: exported type LERandRP should have comment or be unexported (golint)
    • Line 852: warning: comment on exported type LEStartEncryption should be of the form "LEStartEncryption ..." (with optional leading article) (golint)
    • Line 860: warning: exported method LEStartEncryption.Opcode should have comment or be unexported (golint)
    • Line 861: warning: exported method LEStartEncryption.Len should have comment or be unexported (golint)
    • Line 862: warning: exported method LEStartEncryption.Marshal should have comment or be unexported (golint)
    • Line 869: warning: exported type LEStartEncryptionRP should have comment or be unexported (golint)
    • Line 871: warning: comment on exported type LELTKReply should be of the form "LELTKReply ..." (with optional leading article) (golint)
    • Line 877: warning: exported method LELTKReply.Opcode should have comment or be unexported (golint)
    • Line 878: warning: exported method LELTKReply.Len should have comment or be unexported (golint)
    • Line 879: warning: exported method LELTKReply.Marshal should have comment or be unexported (golint)
    • Line 884: warning: exported type LELTKReplyRP should have comment or be unexported (golint)
    • Line 889: warning: comment on exported type LELTKNegReply should be of the form "LELTKNegReply ..." (with optional leading article) (golint)
    • Line 892: warning: exported method LELTKNegReply.Opcode should have comment or be unexported (golint)
    • Line 893: warning: exported method LELTKNegReply.Len should have comment or be unexported (golint)
    • Line 894: warning: exported method LELTKNegReply.Marshal should have comment or be unexported (golint)
    • Line 896: warning: exported type LELTKNegReplyRP should have comment or be unexported (golint)
    • Line 901: warning: comment on exported type LEReadSupportedStates should be of the form "LEReadSupportedStates ..." (with optional leading article) (golint)
    • Line 904: warning: exported method LEReadSupportedStates.Opcode should have comment or be unexported (golint)
    • Line 905: warning: exported method LEReadSupportedStates.Len should have comment or be unexported (golint)
    • Line 906: warning: exported method LEReadSupportedStates.Marshal should have comment or be unexported (golint)
    • Line 908: warning: exported type LEReadSupportedStatesRP should have comment or be unexported (golint)
    • Line 913: warning: comment on exported type LEReceiverTest should be of the form "LEReceiverTest ..." (with optional leading article) (golint)
    • Line 916: warning: exported method LEReceiverTest.Opcode should have comment or be unexported (golint)
    • Line 917: warning: exported method LEReceiverTest.Len should have comment or be unexported (golint)
    • Line 918: warning: exported method LEReceiverTest.Marshal should have comment or be unexported (golint)
    • Line 920: warning: exported type LEReceiverTestRP should have comment or be unexported (golint)
    • Line 922: warning: comment on exported type LETransmitterTest should be of the form "LETransmitterTest ..." (with optional leading article) (golint)
    • Line 929: warning: exported method LETransmitterTest.Opcode should have comment or be unexported (golint)
    • Line 930: warning: exported method LETransmitterTest.Len should have comment or be unexported (golint)
    • Line 931: warning: exported method LETransmitterTest.Marshal should have comment or be unexported (golint)
    • Line 935: warning: exported type LETransmitterTestRP should have comment or be unexported (golint)
    • Line 937: warning: comment on exported type LETestEnd should be of the form "LETestEnd ..." (with optional leading article) (golint)
    • Line 940: warning: exported method LETestEnd.Opcode should have comment or be unexported (golint)
    • Line 941: warning: exported method LETestEnd.Len should have comment or be unexported (golint)
    • Line 942: warning: exported method LETestEnd.Marshal should have comment or be unexported (golint)
    • Line 944: warning: exported type LETestEndRP should have comment or be unexported (golint)
    • Line 949: warning: comment on exported type LERemoteConnectionParameterReply should be of the form "LERemoteConnectionParameterReply ..." (with optional leading article) (golint)
    • Line 960: warning: exported method LERemoteConnectionParameterReply.Opcode should have comment or be unexported (golint)
    • Line 961: warning: exported method LERemoteConnectionParameterReply.Len should have comment or be unexported (golint)
    • Line 962: warning: exported method LERemoteConnectionParameterReply.Marshal should have comment or be unexported (golint)
    • Line 972: warning: exported type LERemoteConnectionParameterReplyRP should have comment or be unexported (golint)
    • Line 977: warning: comment on exported type LERemoteConnectionParameterNegReply should be of the form "LERemoteConnectionParameterNegReply ..." (with optional leading article) (golint)
    • Line 983: warning: exported method LERemoteConnectionParameterNegReply.Opcode should have comment or be unexported (golint)
    • Line 986: warning: exported method LERemoteConnectionParameterNegReply.Len should have comment or be unexported (golint)
    • Line 987: warning: exported method LERemoteConnectionParameterNegReply.Marshal should have comment or be unexported (golint)
    • Line 992: warning: exported type LERemoteConnectionParameterNegReplyRP should have comment or be unexported (golint)
    • gatt/linux/doc.go
    • Line 4: warning: package comment is detached; there should be no blank lines between it and the package statement (golint)
    • gatt/xpc/doc.go
    • Line 7: warning: package comment is detached; there should be no blank lines between it and the package statement (golint)
    • gatt/linux/socket/socket.go
    • Line 5: warning: package comment is detached; there should be no blank lines between it and the package statement (golint)
    • Line 28: warning: exported const HCI_CHANNEL_RAW should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported var ErrSocketOpenFailed should have comment or be unexported (golint)
    • Line 41: warning: exported type Sockaddr should have comment or be unexported (golint)
    • Line 51: warning: exported type SockaddrHCI should have comment or be unexported (golint)
    • Line 72: warning: exported function Socket should have comment or be unexported (golint)
    • Line 82: warning: exported function Bind should have comment or be unexported (golint)
    • Line 113: warning: exported type HCIFilter should have comment or be unexported (golint)
    • Line 119: warning: exported function SetsockoptFilter should have comment or be unexported (golint)
    • gatt/linux/hci.go
    • Line 12: warning: exported type HCI should have comment or be unexported (golint)
    • Line 37: warning: exported type PlatData should have comment or be unexported (golint)
    • Line 48: warning: exported function NewHCI should have comment or be unexported (golint)
    • Line 85: warning: exported method HCI.Close should have comment or be unexported (golint)
    • Line 92: warning: exported method HCI.SetAdvertiseEnable should have comment or be unexported (golint)
    • Line 111: warning: exported method HCI.SendCmdWithAdvOff should have comment or be unexported (golint)
    • Line 120: warning: exported method HCI.SetScanEnable should have comment or be unexported (golint)
    • Line 128: warning: exported method HCI.Connect should have comment or be unexported (golint)
    • Line 147: warning: exported method HCI.CancelConnection should have comment or be unexported (golint)
    • Line 151: warning: exported method HCI.SendRawCommand should have comment or be unexported (golint)
    • gatt/central.go
    • Line 17: warning: exported type ResponseWriter should have comment or be unexported (golint)
    • gatt/linux/evt/evt.go
    • Line 11: warning: exported type EventHandler should have comment or be unexported (golint)
    • Line 15: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 17: warning: exported method HandlerFunc.HandleEvent should have comment or be unexported (golint)
    • Line 21: warning: exported type Evt should have comment or be unexported (golint)
    • Line 25: warning: exported function NewEvt should have comment or be unexported (golint)
    • Line 31: warning: exported method Evt.HandleEvent should have comment or be unexported (golint)
    • Line 35: warning: exported method Evt.Dispatch should have comment or be unexported (golint)
    • Line 52: warning: exported const InquiryComplete should have comment (or a comment on this block) or be unexported (golint)
    • Line 128: warning: exported type LEEventCode should have comment or be unexported (golint)
    • Line 131: warning: exported const LEConnectionComplete should have comment (or a comment on this block) or be unexported (golint)
    • Line 139: warning: exported type EventHeader should have comment or be unexported (golint)
    • Line 144: warning: exported method EventHeader.Unmarshal should have comment or be unexported (golint)
    • Line 160: warning: exported type InquiryCompleteEP should have comment or be unexported (golint)
    • Line 164: warning: exported type InquiryResultEP should have comment or be unexported (golint)
    • Line 174: warning: exported type ConnectionCompleteEP should have comment or be unexported (golint)
    • Line 182: warning: exported type ConnectionRequestEP should have comment or be unexported (golint)
    • Line 188: warning: exported type DisconnectionCompleteEP should have comment or be unexported (golint)
    • Line 194: warning: exported method DisconnectionCompleteEP.Unmarshal should have comment or be unexported (golint)
    • Line 201: warning: exported type CommandCompleteEP should have comment or be unexported (golint)
    • Line 207: warning: exported method CommandCompleteEP.Unmarshal should have comment or be unexported (golint)
    • Line 219: warning: exported type CommandStatusEP should have comment or be unexported (golint)
    • Line 225: warning: exported method CommandStatusEP.Unmarshal should have comment or be unexported (golint)
    • Line 232: warning: exported type NumOfCompletedPkt should have comment or be unexported (golint)
    • Line 237: warning: exported type NumberOfCompletedPktsEP should have comment or be unexported (golint)
    • Line 242: warning: exported method NumberOfCompletedPktsEP.Unmarshal should have comment or be unexported (golint)
    • Line 256: warning: comment on exported type LEConnectionCompleteEP should be of the form "LEConnectionCompleteEP ..." (with optional leading article) (golint)
    • Line 270: warning: exported method LEConnectionCompleteEP.Unmarshal should have comment or be unexported (golint)
    • Line 284: warning: exported type LEAdvertisingReportEP should have comment or be unexported (golint)
    • Line 295: warning: exported method LEAdvertisingReportEP.Unmarshal should have comment or be unexported (golint)
    • Line 336: warning: exported type LEConnectionUpdateCompleteEP should have comment or be unexported (golint)
    • Line 345: warning: exported method LEConnectionUpdateCompleteEP.Unmarshal should have comment or be unexported (golint)
    • Line 349: warning: exported type LEReadRemoteUsedFeaturesCompleteEP should have comment or be unexported (golint)
    • Line 356: warning: exported method LEReadRemoteUsedFeaturesCompleteEP.Unmarshal should have comment or be unexported (golint)
    • Line 360: warning: exported type LELTKRequestEP should have comment or be unexported (golint)
    • Line 367: warning: exported method LELTKRequestEP.Unmarshal should have comment or be unexported (golint)
    • Line 371: warning: exported type LERemoteConnectionParameterRequestEP should have comment or be unexported (golint)
    • Line 380: warning: exported method LERemoteConnectionParameterRequestEP.Unmarshal should have comment or be unexported (golint)
    • gatt/adv.go
    • Line 59: warning: comment on exported type ServiceData should be of the form "ServiceData ..." (with optional leading article) (golint)
    • Line 65: warning: comment on exported type Advertisement should be of the form "Advertisement ..." (with optional leading article) (golint)
    • Line 178: warning: comment on exported method AdvPacket.AppendName should be of the form "AppendName ..." (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!