Preparing report...

Report for github.com/deadsy/libusb

A    Great!    Found 3 issues across 5 files

Tweet

gofmt80%

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!


gocyclo60%

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.


golint40%

Golint is a linter for Go source code.

    • libusb/examples/xusb/xusb.go
    • Line 11: warning: don't use underscores in Go names; var extra_info should be extraInfo (golint)
    • Line 14: warning: exported const USE_GENERIC should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: don't use underscores in Go names; var test_mode should be testMode (golint)
    • Line 25: warning: comment on exported const HID_GET_REPORT should be of the form "HID_GET_REPORT ..." (golint)
    • Line 27: warning: exported const HID_GET_IDLE should have comment or be unexported (golint)
    • Line 28: warning: exported const HID_GET_PROTOCOL should have comment or be unexported (golint)
    • Line 29: warning: exported const HID_SET_REPORT should have comment or be unexported (golint)
    • Line 30: warning: exported const HID_SET_IDLE should have comment or be unexported (golint)
    • Line 31: warning: exported const HID_SET_PROTOCOL should have comment or be unexported (golint)
    • Line 32: warning: exported const HID_REPORT_TYPE_INPUT should have comment or be unexported (golint)
    • Line 33: warning: exported const HID_REPORT_TYPE_OUTPUT should have comment or be unexported (golint)
    • Line 34: warning: exported const HID_REPORT_TYPE_FEATURE should have comment or be unexported (golint)
    • Line 95: warning: don't use underscores in Go names; func test_hid should be testHid (golint)
    • Line 95: warning: don't use underscores in Go names; func parameter endpoint_in should be endpointIn (golint)
    • Line 97: warning: don't use underscores in Go names; var hid_report_descriptor should be hidReportDescriptor (golint)
    • Line 102: warning: don't use underscores in Go names; var hid_report_descriptor should be hidReportDescriptor (golint)
    • Line 191: warning: don't use underscores in Go names; func print_device_cap should be printDeviceCap (golint)
    • Line 191: warning: don't use underscores in Go names; func parameter dev_cap should be devCap (golint)
    • Line 231: warning: don't use underscores in Go names; func test_device should be testDevice (golint)
    • Line 232: warning: don't use underscores in Go names; var port_path should be portPath (golint)
    • Line 233: warning: don't use underscores in Go names; var speed_name should be speedName (golint)
    • Line 241: warning: don't use underscores in Go names; var string_index should be stringIndex (golint)
    • Line 243: warning: don't use underscores in Go names; var endpoint_in should be endpointIn (golint)
    • Line 244: warning: don't use underscores in Go names; var endpoint_out should be endpointOut (golint)
    • Line 257: warning: don't use underscores in Go names; var port_path should be portPath (golint)
    • Line 275: warning: don't use underscores in Go names; var dev_desc should be devDesc (golint)
    • Line 294: warning: don't use underscores in Go names; var bos_desc should be bosDesc (golint)
    • Line 306: warning: don't use underscores in Go names; var conf_desc should be confDesc (golint)
    • Line 312: warning: don't use underscores in Go names; var nb_ifaces should be nbIfaces (golint)
    • Line 350: warning: don't use underscores in Go names; var ep_comp should be epComp (golint)
    • libusb/examples/midi/midi.go
    • Line 24: warning: don't use underscores in Go names; type ep_info should be epInfo (golint)
    • Line 31: warning: exported const NOTES_IN_OCTAVE should have comment or be unexported (golint)
    • Line 33: warning: don't use underscores in Go names; func midi_note_name should be midiNoteName (golint)
    • Line 44: warning: don't use underscores in Go names; func midi_full_note_name should be midiFullNoteName (golint)
    • Line 45: warning: don't use underscores in Go names; var s_name should be sName (golint)
    • Line 46: warning: don't use underscores in Go names; var f_name should be fName (golint)
    • Line 53: warning: don't use underscores in Go names; func midi_event should be midiEvent (golint)
    • Line 76: warning: don't use underscores in Go names; func midi_device should be midiDevice (golint)
    • Line 94: warning: don't use underscores in Go names; var ep_in should be epIn (golint)
    • Line 95: warning: don't use underscores in Go names; var midi_found should be midiFound (golint)
    • Line 148: warning: don't use underscores in Go names; func midi_main should be midiMain (golint)
    • libusb/libusb.go
    • Line 45: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 52: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 58: warning: comment on exported function Extra_str should be of the form "Extra_str ..." (golint)
    • Line 59: warning: don't use underscores in Go names; func Extra_str should be ExtraStr (golint)
    • Line 69: warning: comment on exported const API_VERSION should be of the form "API_VERSION ..." (golint)
    • Line 112: warning: comment on exported const DT_DEVICE_SIZE should be of the form "DT_DEVICE_SIZE ..." (golint)
    • Line 114: warning: exported const DT_CONFIG_SIZE should have comment or be unexported (golint)
    • Line 115: warning: exported const DT_INTERFACE_SIZE should have comment or be unexported (golint)
    • Line 116: warning: exported const DT_ENDPOINT_SIZE should have comment or be unexported (golint)
    • Line 117: warning: exported const DT_ENDPOINT_AUDIO_SIZE should have comment or be unexported (golint)
    • Line 118: warning: exported const DT_HUB_NONVAR_SIZE should have comment or be unexported (golint)
    • Line 119: warning: exported const DT_SS_ENDPOINT_COMPANION_SIZE should have comment or be unexported (golint)
    • Line 120: warning: exported const DT_BOS_SIZE should have comment or be unexported (golint)
    • Line 121: warning: exported const DT_DEVICE_CAPABILITY_SIZE should have comment or be unexported (golint)
    • Line 123: warning: comment on exported const BT_USB_2_0_EXTENSION_SIZE should be of the form "BT_USB_2_0_EXTENSION_SIZE ..." (golint)
    • Line 125: warning: exported const BT_SS_USB_DEVICE_CAPABILITY_SIZE should have comment or be unexported (golint)
    • Line 126: warning: exported const BT_CONTAINER_ID_SIZE should have comment or be unexported (golint)
    • Line 127: warning: exported const DT_BOS_MAX_SIZE should have comment or be unexported (golint)
    • Line 128: warning: exported const ENDPOINT_ADDRESS_MASK should have comment or be unexported (golint)
    • Line 129: warning: exported const ENDPOINT_DIR_MASK should have comment or be unexported (golint)
    • Line 137: warning: comment on exported const TRANSFER_TYPE_MASK should be of the form "TRANSFER_TYPE_MASK ..." (golint)
    • Line 183: warning: exported const ISO_SYNC_TYPE_MASK should have comment or be unexported (golint)
    • Line 194: warning: exported const ISO_USAGE_TYPE_MASK should have comment or be unexported (golint)
    • Line 204: warning: exported const CONTROL_SETUP_SIZE should have comment or be unexported (golint)
    • Line 259: warning: comment on exported const ERROR_COUNT should be of the form "ERROR_COUNT ..." (golint)
    • Line 311: warning: comment on exported const HOTPLUG_MATCH_ANY should be of the form "HOTPLUG_MATCH_ANY ..." (golint)
    • Line 316: warning: comment on exported type Endpoint_Descriptor should be of the form "Endpoint_Descriptor ..." (with optional leading article) (golint)
    • Line 319: warning: don't use underscores in Go names; type Endpoint_Descriptor should be EndpointDescriptor (golint)
    • Line 364: warning: comment on exported type Interface_Descriptor should be of the form "Interface_Descriptor ..." (with optional leading article) (golint)
    • Line 367: warning: don't use underscores in Go names; type Interface_Descriptor should be InterfaceDescriptor (golint)
    • Line 389: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 430: warning: comment on exported type Interface should be of the form "Interface ..." (with optional leading article) (golint)
    • Line 433: warning: don't use underscores in Go names; struct field Num_altsetting should be NumAltsetting (golint)
    • Line 444: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 454: warning: comment on exported function Interface_str should be of the form "Interface_str ..." (golint)
    • Line 455: warning: don't use underscores in Go names; func Interface_str should be InterfaceStr (golint)
    • Line 467: warning: comment on exported type Config_Descriptor should be of the form "Config_Descriptor ..." (with optional leading article) (golint)
    • Line 470: warning: don't use underscores in Go names; type Config_Descriptor should be ConfigDescriptor (golint)
    • Line 491: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 530: warning: comment on exported type SS_Endpoint_Companion_Descriptor should be of the form "SS_Endpoint_Companion_Descriptor ..." (with optional leading article) (golint)
    • Line 533: warning: don't use underscores in Go names; type SS_Endpoint_Companion_Descriptor should be SSEndpointCompanionDescriptor (golint)
    • Line 555: warning: comment on exported type BOS_Dev_Capability_Descriptor should be of the form "BOS_Dev_Capability_Descriptor ..." (with optional leading article) (golint)
    • Line 558: warning: don't use underscores in Go names; type BOS_Dev_Capability_Descriptor should be BOSDevCapabilityDescriptor (golint)
    • Line 563: warning: don't use underscores in Go names; struct field Dev_capability_data should be DevCapabilityData (golint)
    • Line 578: warning: comment on exported type BOS_Descriptor should be of the form "BOS_Descriptor ..." (with optional leading article) (golint)
    • Line 581: warning: don't use underscores in Go names; type BOS_Descriptor should be BOSDescriptor (golint)
    • Line 586: warning: don't use underscores in Go names; struct field Dev_capability should be DevCapability (golint)
    • Line 595: warning: don't use underscores in Go names; var dev_capability should be devCapability (golint)
    • Line 596: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 610: warning: comment on exported type USB_2_0_Extension_Descriptor should be of the form "USB_2_0_Extension_Descriptor ..." (with optional leading article) (golint)
    • Line 613: warning: don't use underscores in Go names; type USB_2_0_Extension_Descriptor should be USB2_0ExtensionDescriptor (golint)
    • Line 633: warning: comment on exported type SS_USB_Device_Capability_Descriptor should be of the form "SS_USB_Device_Capability_Descriptor ..." (with optional leading article) (golint)
    • Line 636: warning: don't use underscores in Go names; type SS_USB_Device_Capability_Descriptor should be SSUSBDeviceCapabilityDescriptor (golint)
    • Line 664: warning: comment on exported type Container_ID_Descriptor should be of the form "Container_ID_Descriptor ..." (with optional leading article) (golint)
    • Line 667: warning: don't use underscores in Go names; type Container_ID_Descriptor should be ContainerIDDescriptor (golint)
    • Line 702: warning: comment on exported type Device_Descriptor should be of the form "Device_Descriptor ..." (with optional leading article) (golint)
    • Line 705: warning: don't use underscores in Go names; type Device_Descriptor should be DeviceDescriptor (golint)
    • Line 785: warning: comment on exported type Transfer should be of the form "Transfer ..." (with optional leading article) (golint)
    • Line 811: warning: comment on exported type Version should be of the form "Version ..." (with optional leading article) (golint)
    • Line 836: warning: comment on exported type Context should be of the form "Context ..." (with optional leading article) (golint)
    • Line 839: warning: comment on exported type Device should be of the form "Device ..." (with optional leading article) (golint)
    • Line 842: warning: comment on exported type Device_Handle should be of the form "Device_Handle ..." (with optional leading article) (golint)
    • Line 843: warning: don't use underscores in Go names; type Device_Handle should be DeviceHandle (golint)
    • Line 850: warning: don't use underscores in Go names; type libusb_error should be libusbError (golint)
    • Line 861: warning: exported function Set_Debug should have comment or be unexported (golint)
    • Line 861: warning: don't use underscores in Go names; func Set_Debug should be SetDebug (golint)
    • Line 865: warning: exported function Init should have comment or be unexported (golint)
    • Line 873: warning: exported function Exit should have comment or be unexported (golint)
    • Line 880: warning: exported function Get_Device_List should have comment or be unexported (golint)
    • Line 880: warning: don't use underscores in Go names; func Get_Device_List should be GetDeviceList (golint)
    • Line 895: warning: exported function Free_Device_List should have comment or be unexported (golint)
    • Line 895: warning: don't use underscores in Go names; func Free_Device_List should be FreeDeviceList (golint)
    • Line 895: warning: don't use underscores in Go names; func parameter unref_devices should be unrefDevices (golint)
    • Line 905: warning: exported function Get_Bus_Number should have comment or be unexported (golint)
    • Line 905: warning: don't use underscores in Go names; func Get_Bus_Number should be GetBusNumber (golint)
    • Line 909: warning: exported function Get_Port_Number should have comment or be unexported (golint)
    • Line 909: warning: don't use underscores in Go names; func Get_Port_Number should be GetPortNumber (golint)
    • Line 913: warning: exported function Get_Port_Numbers should have comment or be unexported (golint)
    • Line 913: warning: don't use underscores in Go names; func Get_Port_Numbers should be GetPortNumbers (golint)
    • Line 921: warning: exported function Get_Parent should have comment or be unexported (golint)
    • Line 921: warning: don't use underscores in Go names; func Get_Parent should be GetParent (golint)
    • Line 925: warning: exported function Get_Device_Address should have comment or be unexported (golint)
    • Line 925: warning: don't use underscores in Go names; func Get_Device_Address should be GetDeviceAddress (golint)
    • Line 929: warning: exported function Get_Device_Speed should have comment or be unexported (golint)
    • Line 929: warning: don't use underscores in Go names; func Get_Device_Speed should be GetDeviceSpeed (golint)
    • Line 933: warning: exported function Get_Max_Packet_Size should have comment or be unexported (golint)
    • Line 933: warning: don't use underscores in Go names; func Get_Max_Packet_Size should be GetMaxPacketSize (golint)
    • Line 937: warning: exported function Get_Max_ISO_Packet_Size should have comment or be unexported (golint)
    • Line 937: warning: don't use underscores in Go names; func Get_Max_ISO_Packet_Size should be GetMaxISOPacketSize (golint)
    • Line 941: warning: exported function Ref_Device should have comment or be unexported (golint)
    • Line 941: warning: don't use underscores in Go names; func Ref_Device should be RefDevice (golint)
    • Line 945: warning: exported function Unref_Device should have comment or be unexported (golint)
    • Line 945: warning: don't use underscores in Go names; func Unref_Device should be UnrefDevice (golint)
    • Line 949: warning: exported function Open should have comment or be unexported (golint)
    • Line 958: warning: exported function Open_Device_With_VID_PID should have comment or be unexported (golint)
    • Line 958: warning: don't use underscores in Go names; func Open_Device_With_VID_PID should be OpenDeviceWithVIDPID (golint)
    • Line 958: warning: don't use underscores in Go names; func parameter vendor_id should be vendorID (golint)
    • Line 958: warning: don't use underscores in Go names; func parameter product_id should be productID (golint)
    • Line 962: warning: exported function Close should have comment or be unexported (golint)
    • Line 966: warning: exported function Get_Device should have comment or be unexported (golint)
    • Line 966: warning: don't use underscores in Go names; func Get_Device should be GetDevice (golint)
    • Line 970: warning: exported function Get_Configuration should have comment or be unexported (golint)
    • Line 970: warning: don't use underscores in Go names; func Get_Configuration should be GetConfiguration (golint)
    • Line 979: warning: exported function Set_Configuration should have comment or be unexported (golint)
    • Line 979: warning: don't use underscores in Go names; func Set_Configuration should be SetConfiguration (golint)
    • Line 987: warning: exported function Claim_Interface should have comment or be unexported (golint)
    • Line 987: warning: don't use underscores in Go names; func Claim_Interface should be ClaimInterface (golint)
    • Line 987: warning: don't use underscores in Go names; func parameter interface_number should be interfaceNumber (golint)
    • Line 995: warning: exported function Release_Interface should have comment or be unexported (golint)
    • Line 995: warning: don't use underscores in Go names; func Release_Interface should be ReleaseInterface (golint)
    • Line 995: warning: don't use underscores in Go names; func parameter interface_number should be interfaceNumber (golint)
    • Line 1003: warning: exported function Set_Interface_Alt_Setting should have comment or be unexported (golint)
    • Line 1003: warning: don't use underscores in Go names; func Set_Interface_Alt_Setting should be SetInterfaceAltSetting (golint)
    • Line 1003: warning: don't use underscores in Go names; func parameter interface_number should be interfaceNumber (golint)
    • Line 1003: warning: don't use underscores in Go names; func parameter alternate_setting should be alternateSetting (golint)
    • Line 1011: warning: exported function Clear_Halt should have comment or be unexported (golint)
    • Line 1011: warning: don't use underscores in Go names; func Clear_Halt should be ClearHalt (golint)
    • Line 1019: warning: exported function Reset_Device should have comment or be unexported (golint)
    • Line 1019: warning: don't use underscores in Go names; func Reset_Device should be ResetDevice (golint)
    • Line 1027: warning: exported function Kernel_Driver_Active should have comment or be unexported (golint)
    • Line 1027: warning: don't use underscores in Go names; func Kernel_Driver_Active should be KernelDriverActive (golint)
    • Line 1027: warning: don't use underscores in Go names; func parameter interface_number should be interfaceNumber (golint)
    • Line 1035: warning: exported function Detach_Kernel_Driver should have comment or be unexported (golint)
    • Line 1035: warning: don't use underscores in Go names; func Detach_Kernel_Driver should be DetachKernelDriver (golint)
    • Line 1035: warning: don't use underscores in Go names; func parameter interface_number should be interfaceNumber (golint)
    • Line 1043: warning: exported function Attach_Kernel_Driver should have comment or be unexported (golint)
    • Line 1043: warning: don't use underscores in Go names; func Attach_Kernel_Driver should be AttachKernelDriver (golint)
    • Line 1043: warning: don't use underscores in Go names; func parameter interface_number should be interfaceNumber (golint)
    • Line 1051: warning: exported function Set_Auto_Detach_Kernel_Driver should have comment or be unexported (golint)
    • Line 1051: warning: don't use underscores in Go names; func Set_Auto_Detach_Kernel_Driver should be SetAutoDetachKernelDriver (golint)
    • Line 1052: warning: don't use underscores in Go names; var enable_int should be enableInt (golint)
    • Line 1066: warning: exported function Has_Capability should have comment or be unexported (golint)
    • Line 1066: warning: don't use underscores in Go names; func Has_Capability should be HasCapability (golint)
    • Line 1071: warning: exported function Error_Name should have comment or be unexported (golint)
    • Line 1071: warning: don't use underscores in Go names; func Error_Name should be ErrorName (golint)
    • Line 1075: warning: exported function Get_Version should have comment or be unexported (golint)
    • Line 1075: warning: don't use underscores in Go names; func Get_Version should be GetVersion (golint)
    • Line 1080: warning: exported function CPU_To_LE16 should have comment or be unexported (golint)
    • Line 1080: warning: don't use underscores in Go names; func CPU_To_LE16 should be CPUToLE16 (golint)
    • Line 1084: warning: exported function Setlocale should have comment or be unexported (golint)
    • Line 1093: warning: exported function Strerror should have comment or be unexported (golint)
    • Line 1100: warning: exported function Get_Device_Descriptor should have comment or be unexported (golint)
    • Line 1100: warning: don't use underscores in Go names; func Get_Device_Descriptor should be GetDeviceDescriptor (golint)
    • Line 1109: warning: exported function Get_Active_Config_Descriptor should have comment or be unexported (golint)
    • Line 1109: warning: don't use underscores in Go names; func Get_Active_Config_Descriptor should be GetActiveConfigDescriptor (golint)
    • Line 1118: warning: exported function Get_Config_Descriptor should have comment or be unexported (golint)
    • Line 1118: warning: don't use underscores in Go names; func Get_Config_Descriptor should be GetConfigDescriptor (golint)
    • Line 1118: warning: don't use underscores in Go names; func parameter config_index should be configIndex (golint)
    • Line 1127: warning: exported function Get_Config_Descriptor_By_Value should have comment or be unexported (golint)
    • Line 1127: warning: don't use underscores in Go names; func Get_Config_Descriptor_By_Value should be GetConfigDescriptorByValue (golint)
    • Line 1136: warning: exported function Free_Config_Descriptor should have comment or be unexported (golint)
    • Line 1136: warning: don't use underscores in Go names; func Free_Config_Descriptor should be FreeConfigDescriptor (golint)
    • Line 1140: warning: exported function Get_SS_Endpoint_Companion_Descriptor should have comment or be unexported (golint)
    • Line 1140: warning: don't use underscores in Go names; func Get_SS_Endpoint_Companion_Descriptor should be GetSSEndpointCompanionDescriptor (golint)
    • Line 1149: warning: exported function Free_SS_Endpoint_Companion_Descriptor should have comment or be unexported (golint)
    • Line 1149: warning: don't use underscores in Go names; func Free_SS_Endpoint_Companion_Descriptor should be FreeSSEndpointCompanionDescriptor (golint)
    • Line 1149: warning: don't use underscores in Go names; func parameter ep_comp should be epComp (golint)
    • Line 1153: warning: exported function Get_BOS_Descriptor should have comment or be unexported (golint)
    • Line 1153: warning: don't use underscores in Go names; func Get_BOS_Descriptor should be GetBOSDescriptor (golint)
    • Line 1162: warning: exported function Free_BOS_Descriptor should have comment or be unexported (golint)
    • Line 1162: warning: don't use underscores in Go names; func Free_BOS_Descriptor should be FreeBOSDescriptor (golint)
    • Line 1166: warning: exported function Get_USB_2_0_Extension_Descriptor should have comment or be unexported (golint)
    • Line 1166: warning: don't use underscores in Go names; func Get_USB_2_0_Extension_Descriptor should be GetUSB2_0ExtensionDescriptor (golint)
    • Line 1166: warning: don't use underscores in Go names; func parameter dev_cap should be devCap (golint)
    • Line 1175: warning: exported function Free_USB_2_0_Extension_Descriptor should have comment or be unexported (golint)
    • Line 1175: warning: don't use underscores in Go names; func Free_USB_2_0_Extension_Descriptor should be FreeUSB2_0ExtensionDescriptor (golint)
    • Line 1175: warning: don't use underscores in Go names; func parameter usb_2_0_extension should be usb2_0Extension (golint)
    • Line 1179: warning: exported function Get_SS_USB_Device_Capability_Descriptor should have comment or be unexported (golint)
    • Line 1179: warning: don't use underscores in Go names; func Get_SS_USB_Device_Capability_Descriptor should be GetSSUSBDeviceCapabilityDescriptor (golint)
    • Line 1179: warning: don't use underscores in Go names; func parameter dev_cap should be devCap (golint)
    • Line 1188: warning: exported function Free_SS_USB_Device_Capability_Descriptor should have comment or be unexported (golint)
    • Line 1188: warning: don't use underscores in Go names; func Free_SS_USB_Device_Capability_Descriptor should be FreeSSUSBDeviceCapabilityDescriptor (golint)
    • Line 1188: warning: don't use underscores in Go names; func parameter ss_usb_device_cap should be ssUsbDeviceCap (golint)
    • Line 1192: warning: exported function Get_Container_ID_Descriptor should have comment or be unexported (golint)
    • Line 1192: warning: don't use underscores in Go names; func Get_Container_ID_Descriptor should be GetContainerIDDescriptor (golint)
    • Line 1192: warning: don't use underscores in Go names; func parameter dev_cap should be devCap (golint)
    • Line 1201: warning: exported function Free_Container_ID_Descriptor should have comment or be unexported (golint)
    • Line 1201: warning: don't use underscores in Go names; func Free_Container_ID_Descriptor should be FreeContainerIDDescriptor (golint)
    • Line 1201: warning: don't use underscores in Go names; func parameter container_id should be containerID (golint)
    • Line 1205: warning: exported function Get_String_Descriptor_ASCII should have comment or be unexported (golint)
    • Line 1205: warning: don't use underscores in Go names; func Get_String_Descriptor_ASCII should be GetStringDescriptorASCII (golint)
    • Line 1205: warning: don't use underscores in Go names; func parameter desc_index should be descIndex (golint)
    • Line 1213: warning: exported function Get_Descriptor should have comment or be unexported (golint)
    • Line 1213: warning: don't use underscores in Go names; func Get_Descriptor should be GetDescriptor (golint)
    • Line 1213: warning: don't use underscores in Go names; func parameter desc_type should be descType (golint)
    • Line 1213: warning: don't use underscores in Go names; func parameter desc_index should be descIndex (golint)
    • Line 1221: warning: exported function Get_String_Descriptor should have comment or be unexported (golint)
    • Line 1221: warning: don't use underscores in Go names; func Get_String_Descriptor should be GetStringDescriptor (golint)
    • Line 1221: warning: don't use underscores in Go names; func parameter desc_index should be descIndex (golint)
    • Line 1238: warning: exported function Alloc_Streams should have comment or be unexported (golint)
    • Line 1238: warning: don't use underscores in Go names; func Alloc_Streams should be AllocStreams (golint)
    • Line 1238: warning: don't use underscores in Go names; func parameter num_streams should be numStreams (golint)
    • Line 1246: warning: exported function Free_Streams should have comment or be unexported (golint)
    • Line 1246: warning: don't use underscores in Go names; func Free_Streams should be FreeStreams (golint)
    • Line 1254: warning: exported function Alloc_Transfer should have comment or be unexported (golint)
    • Line 1254: warning: don't use underscores in Go names; func Alloc_Transfer should be AllocTransfer (golint)
    • Line 1254: warning: don't use underscores in Go names; func parameter iso_packets should be isoPackets (golint)
    • Line 1262: warning: exported function Free_Transfer should have comment or be unexported (golint)
    • Line 1262: warning: don't use underscores in Go names; func Free_Transfer should be FreeTransfer (golint)
    • Line 1266: warning: exported function Submit_Transfer should have comment or be unexported (golint)
    • Line 1266: warning: don't use underscores in Go names; func Submit_Transfer should be SubmitTransfer (golint)
    • Line 1274: warning: exported function Cancel_Transfer should have comment or be unexported (golint)
    • Line 1274: warning: don't use underscores in Go names; func Cancel_Transfer should be CancelTransfer (golint)
    • Line 1282: warning: exported function Transfer_Set_Stream_ID should have comment or be unexported (golint)
    • Line 1282: warning: don't use underscores in Go names; func Transfer_Set_Stream_ID should be TransferSetStreamID (golint)
    • Line 1282: warning: don't use underscores in Go names; func parameter stream_id should be streamID (golint)
    • Line 1286: warning: exported function Transfer_Get_Stream_ID should have comment or be unexported (golint)
    • Line 1286: warning: don't use underscores in Go names; func Transfer_Get_Stream_ID should be TransferGetStreamID (golint)
    • Line 1290: warning: exported function Control_Transfer_Get_Data should have comment or be unexported (golint)
    • Line 1290: warning: don't use underscores in Go names; func Control_Transfer_Get_Data should be ControlTransferGetData (golint)
    • Line 1331: warning: exported function Control_Transfer should have comment or be unexported (golint)
    • Line 1331: warning: don't use underscores in Go names; func Control_Transfer should be ControlTransfer (golint)
    • Line 1340: warning: exported function Bulk_Transfer should have comment or be unexported (golint)
    • Line 1340: warning: don't use underscores in Go names; func Bulk_Transfer should be BulkTransfer (golint)
    • Line 1349: warning: exported function Interrupt_Transfer should have comment or be unexported (golint)
    • Line 1349: warning: don't use underscores in Go names; func Interrupt_Transfer should be InterruptTransfer (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!