Preparing report...

Report for github.com/evilsocket/bettercap-ng

D    Needs lots of improvement    Found 185 issues across 241 files

Tweet

gofmt0%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

An error occurred while running this test (AddError: could not parse "_repos/src/github.com/evilsocket/bettercap-ng/network/stat meta.go: no such file or directory:1::warning: file is not gofmted with -s (gofmt)" - strconv.Atoi: parsing " no such file or directory": invalid syntax)


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!


gocyclo89%

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.


golint26%

Golint is a linter for Go source code.

    • bettercap-ng/modules/http_proxy/http_proxy_base.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 37: warning: exported type HTTPProxy should have comment or be unexported (golint)
    • Line 75: warning: exported function NewHTTPProxy should have comment or be unexported (golint)
    • Line 109: warning: exported method HTTPProxy.Debug should have comment or be unexported (golint)
    • Line 113: warning: exported method HTTPProxy.Info should have comment or be unexported (golint)
    • Line 117: warning: exported method HTTPProxy.Warning should have comment or be unexported (golint)
    • Line 125: warning: exported method HTTPProxy.Fatal should have comment or be unexported (golint)
    • Line 172: warning: exported method HTTPProxy.Configure should have comment or be unexported (golint)
    • Line 205: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 220: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 263: warning: exported method HTTPProxy.TLSConfigFromCA should have comment or be unexported (golint)
    • Line 298: warning: exported method HTTPProxy.ConfigureTLS should have comment or be unexported (golint)
    • Line 411: warning: exported method HTTPProxy.Start should have comment or be unexported (golint)
    • Line 434: warning: exported method HTTPProxy.Stop should have comment or be unexported (golint)
    • Line 449: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bettercap-ng/modules/net_sniff/net_sniff_context.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 17: warning: exported type SnifferContext should have comment or be unexported (golint)
    • Line 30: warning: error should be the last type when returning multiple items (golint)
    • Line 30: warning: exported method Sniffer.GetContext should have comment or be unexported (golint)
    • Line 93: warning: exported function NewSnifferContext should have comment or be unexported (golint)
    • Line 116: warning: exported method SnifferContext.Log should have comment or be unexported (golint)
    • Line 124: warning: exported method SnifferContext.Close should have comment or be unexported (golint)
    • bettercap-ng/network/meta.go
    • Line 13: warning: exported type Meta should have comment or be unexported (golint)
    • Line 25: warning: exported function NewMeta should have comment or be unexported (golint)
    • Line 31: warning: exported method Meta.MarshalJSON should have comment or be unexported (golint)
    • Line 37: warning: exported method Meta.Set should have comment or be unexported (golint)
    • Line 43: warning: exported method Meta.Get should have comment or be unexported (golint)
    • Line 53: warning: exported method Meta.GetIntsWith should have comment or be unexported (golint)
    • Line 67: warning: exported method Meta.SetInts should have comment or be unexported (golint)
    • Line 76: warning: exported method Meta.GetOr should have comment or be unexported (golint)
    • Line 86: warning: exported method Meta.Each should have comment or be unexported (golint)
    • Line 95: warning: exported method Meta.Empty should have comment or be unexported (golint)
    • bettercap-ng/packets/wsd.go
    • Line 8: warning: exported const WSDPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported var WSDDestIP should have comment or be unexported (golint)
    • bettercap-ng/modules/https_proxy/https_proxy.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 12: warning: exported type HttpsProxy should have comment or be unexported (golint)
    • Line 17: warning: exported function NewHttpsProxy should have comment or be unexported (golint)
    • Line 89: warning: exported method HttpsProxy.Name should have comment or be unexported (golint)
    • Line 93: warning: exported method HttpsProxy.Description should have comment or be unexported (golint)
    • Line 97: warning: exported method HttpsProxy.Author should have comment or be unexported (golint)
    • Line 101: warning: exported method HttpsProxy.Configure should have comment or be unexported (golint)
    • Line 174: warning: exported method HttpsProxy.Start should have comment or be unexported (golint)
    • Line 184: warning: exported method HttpsProxy.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/dns_spoof/dns_spoof.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type DNSSpoofer should have comment or be unexported (golint)
    • Line 31: warning: exported function NewDNSSpoofer should have comment or be unexported (golint)
    • Line 82: warning: exported method DNSSpoofer.Name should have comment or be unexported (golint)
    • Line 86: warning: exported method DNSSpoofer.Description should have comment or be unexported (golint)
    • Line 90: warning: exported method DNSSpoofer.Author should have comment or be unexported (golint)
    • Line 94: warning: exported method DNSSpoofer.Configure should have comment or be unexported (golint)
    • Line 128: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 152: warning: exported function DnsReply should have comment or be unexported (golint)
    • Line 304: warning: exported method DNSSpoofer.Start should have comment or be unexported (golint)
    • Line 325: warning: exported method DNSSpoofer.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/wifi/wifi_show_sort.go
    • Line 8: warning: exported type ByRSSISorter should have comment or be unexported (golint)
    • Line 19: warning: exported type ByChannelSorter should have comment or be unexported (golint)
    • Line 27: warning: exported type ByEncryptionSorter should have comment or be unexported (golint)
    • Line 38: warning: exported type ByBssidSorter should have comment or be unexported (golint)
    • Line 46: warning: exported type ByEssidSorter should have comment or be unexported (golint)
    • Line 57: warning: exported type ByWiFiSeenSorter should have comment or be unexported (golint)
    • Line 65: warning: exported type ByWiFiSentSorter should have comment or be unexported (golint)
    • Line 73: warning: exported type ByWiFiRcvdSorter should have comment or be unexported (golint)
    • Line 81: warning: exported type ByClientsSorter should have comment or be unexported (golint)
    • bettercap-ng/packets/arp.go
    • Line 9: warning: exported function NewARPTo should have comment or be unexported (golint)
    • Line 9: warning: don't use underscores in Go names; func parameter from_hw should be fromHw (golint)
    • Line 9: warning: don't use underscores in Go names; func parameter to_hw should be toHw (golint)
    • Line 30: warning: exported function NewARP should have comment or be unexported (golint)
    • Line 30: warning: don't use underscores in Go names; func parameter from_hw should be fromHw (golint)
    • Line 34: warning: error should be the last type when returning multiple items (golint)
    • Line 34: warning: exported function NewARPRequest should have comment or be unexported (golint)
    • Line 34: warning: don't use underscores in Go names; func parameter from_hw should be fromHw (golint)
    • Line 39: warning: error should be the last type when returning multiple items (golint)
    • Line 39: warning: exported function NewARPReply should have comment or be unexported (golint)
    • Line 39: warning: don't use underscores in Go names; func parameter from_hw should be fromHw (golint)
    • Line 39: warning: don't use underscores in Go names; func parameter to_hw should be toHw (golint)
    • bettercap-ng/network/wifi.go
    • Line 19: warning: exported function Dot11Freq2Chan should have comment or be unexported (golint)
    • Line 30: warning: exported function Dot11Chan2Freq should have comment or be unexported (golint)
    • Line 42: warning: exported type APNewCallback should have comment or be unexported (golint)
    • Line 43: warning: exported type APLostCallback should have comment or be unexported (golint)
    • Line 45: warning: exported type WiFi should have comment or be unexported (golint)
    • Line 59: warning: exported function NewWiFi should have comment or be unexported (golint)
    • Line 69: warning: exported method WiFi.MarshalJSON should have comment or be unexported (golint)
    • Line 83: warning: exported method WiFi.EachAccessPoint should have comment or be unexported (golint)
    • Line 92: warning: exported method WiFi.Stations should have comment or be unexported (golint)
    • Line 104: warning: exported method WiFi.List should have comment or be unexported (golint)
    • Line 116: warning: exported method WiFi.Remove should have comment or be unexported (golint)
    • Line 140: warning: exported method WiFi.AddIfNew should have comment or be unexported (golint)
    • Line 173: warning: exported method WiFi.Get should have comment or be unexported (golint)
    • Line 182: warning: exported method WiFi.GetClient should have comment or be unexported (golint)
    • Line 196: warning: exported method WiFi.Clear should have comment or be unexported (golint)
    • Line 202: warning: exported method WiFi.NumHandshakes should have comment or be unexported (golint)
    • Line 218: warning: exported method WiFi.SaveHandshakesTo should have comment or be unexported (golint)
    • bettercap-ng/packets/nbns.go
    • Line 13: warning: exported const NBNSPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: comment on exported var NBNSRequest should be of the form "NBNSRequest ..." (golint)
    • Line 29: warning: exported function NBNSGetMeta should have comment or be unexported (golint)
    • bettercap-ng/packets/upnp.go
    • Line 18: warning: exported const UPNPPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported var UPNPDestMac should have comment or be unexported (golint)
    • Line 32: warning: exported function UPNPGetMeta should have comment or be unexported (golint)
    • bettercap-ng/caplets/env.go
    • Line 13: warning: exported const EnvVarName should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported var InstallBase should have comment or be unexported (golint)
    • Line 38: warning: exported function Setup should have comment or be unexported (golint)
    • bettercap-ng/modules/http_server/http_server.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 15: warning: exported type HttpServer should have comment or be unexported (golint)
    • Line 20: warning: exported function NewHttpServer should have comment or be unexported (golint)
    • Line 55: warning: exported method HttpServer.Name should have comment or be unexported (golint)
    • Line 59: warning: exported method HttpServer.Description should have comment or be unexported (golint)
    • Line 63: warning: exported method HttpServer.Author should have comment or be unexported (golint)
    • Line 67: warning: exported method HttpServer.Configure should have comment or be unexported (golint)
    • Line 107: warning: exported method HttpServer.Start should have comment or be unexported (golint)
    • Line 122: warning: exported method HttpServer.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/http_proxy/http_proxy.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported type HttpProxy should have comment or be unexported (golint)
    • Line 14: warning: exported function NewHttpProxy should have comment or be unexported (golint)
    • Line 74: warning: exported method HttpProxy.Name should have comment or be unexported (golint)
    • Line 78: warning: exported method HttpProxy.Description should have comment or be unexported (golint)
    • Line 82: warning: exported method HttpProxy.Author should have comment or be unexported (golint)
    • Line 86: warning: exported method HttpProxy.Configure should have comment or be unexported (golint)
    • Line 131: warning: exported method HttpProxy.Start should have comment or be unexported (golint)
    • Line 141: warning: exported method HttpProxy.Stop should have comment or be unexported (golint)
    • bettercap-ng/network/net_linux.go
    • Line 19: warning: exported function SetInterfaceChannel should have comment or be unexported (golint)
    • Line 116: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 125: warning: exported function GetSupportedFrequencies should have comment or be unexported (golint)
    • bettercap-ng/modules/gps/gps.go
    • Line 17: warning: exported type GPS should have comment or be unexported (golint)
    • Line 27: warning: exported var ModeInfo should have comment or be unexported (golint)
    • Line 34: warning: exported function NewGPS should have comment or be unexported (golint)
    • Line 71: warning: exported method GPS.Name should have comment or be unexported (golint)
    • Line 75: warning: exported method GPS.Description should have comment or be unexported (golint)
    • Line 79: warning: exported method GPS.Author should have comment or be unexported (golint)
    • Line 83: warning: exported method GPS.Configure should have comment or be unexported (golint)
    • Line 117: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 124: warning: exported method GPS.Show should have comment or be unexported (golint)
    • Line 183: warning: exported method GPS.Start should have comment or be unexported (golint)
    • Line 203: warning: exported method GPS.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/ndp_spoof/ndp_spoof.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 14: warning: exported type NDPSpoofer should have comment or be unexported (golint)
    • Line 23: warning: exported function NewNDPSpoofer should have comment or be unexported (golint)
    • Line 59: warning: exported method NDPSpoofer.Name should have comment or be unexported (golint)
    • Line 63: warning: exported method NDPSpoofer.Description should have comment or be unexported (golint)
    • Line 67: warning: exported method NDPSpoofer.Author should have comment or be unexported (golint)
    • Line 71: warning: exported method NDPSpoofer.Configure should have comment or be unexported (golint)
    • Line 115: warning: exported method NDPSpoofer.Start should have comment or be unexported (golint)
    • Line 164: warning: exported method NDPSpoofer.Stop should have comment or be unexported (golint)
    • bettercap-ng/packets/arp_test.go
    • Line 11: warning: don't use underscores in Go names; var from_hw should be fromHw (golint)
    • Line 13: warning: don't use underscores in Go names; var to_hw should be toHw (golint)
    • Line 41: warning: don't use underscores in Go names; var from_hw should be fromHw (golint)
    • Line 42: warning: don't use underscores in Go names; var to_hw should be toHw (golint)
    • Line 71: warning: don't use underscores in Go names; var from_hw should be fromHw (golint)
    • Line 86: warning: don't use underscores in Go names; var from_hw should be fromHw (golint)
    • Line 88: warning: don't use underscores in Go names; var to_hw should be toHw (golint)
    • bettercap-ng/modules/net_recon/net_show.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 20: warning: exported const AliveTimeInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type ProtoPair should have comment or be unexported (golint)
    • Line 30: warning: exported type ProtoPairList should have comment or be unexported (golint)
    • Line 137: warning: error should be the last type when returning multiple items (golint)
    • Line 230: warning: exported method Discovery.Show should have comment or be unexported (golint)
    • bettercap-ng/modules/hid/hid.go
    • Line 15: warning: exported type HIDRecon should have comment or be unexported (golint)
    • Line 43: warning: exported function NewHIDRecon should have comment or be unexported (golint)
    • Line 155: warning: exported method HIDRecon.Name should have comment or be unexported (golint)
    • Line 159: warning: exported method HIDRecon.Description should have comment or be unexported (golint)
    • Line 163: warning: exported method HIDRecon.Author should have comment or be unexported (golint)
    • Line 167: warning: exported method HIDRecon.Configure should have comment or be unexported (golint)
    • Line 185: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 191: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 197: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 225: warning: exported method HIDRecon.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/hid/hid_show.go
    • Line 15: warning: exported var AliveTimeInterval should have comment or be unexported (golint)
    • Line 46: warning: error should be the last type when returning multiple items (golint)
    • Line 99: warning: exported method HIDRecon.Show should have comment or be unexported (golint)
    • bettercap-ng/routing/tables.go
    • Line 10: warning: exported function Table should have comment or be unexported (golint)
    • Line 16: warning: exported function Update should have comment or be unexported (golint)
    • Line 22: warning: exported function Gateway should have comment or be unexported (golint)
    • bettercap-ng/modules/syn_scan/syn_scan_parsers.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 18: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 24: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • bettercap-ng/modules/http_proxy/http_proxy_js_response.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported type JSResponse should have comment or be unexported (golint)
    • Line 25: warning: exported function NewJSResponse should have comment or be unexported (golint)
    • Line 56: warning: exported method JSResponse.NewHash should have comment or be unexported (golint)
    • Line 60: warning: exported method JSResponse.UpdateHash should have comment or be unexported (golint)
    • Line 64: warning: exported method JSResponse.WasModified should have comment or be unexported (golint)
    • Line 79: warning: exported method JSResponse.GetHeader should have comment or be unexported (golint)
    • Line 83: warning: don't use underscores in Go names; var header_parts should be headerParts (golint)
    • Line 85: warning: don't use underscores in Go names; var header_name should be headerName (golint)
    • Line 86: warning: don't use underscores in Go names; var header_value should be headerValue (golint)
    • Line 97: warning: exported method JSResponse.SetHeader should have comment or be unexported (golint)
    • Line 108: warning: don't use underscores in Go names; var header_parts should be headerParts (golint)
    • Line 110: warning: don't use underscores in Go names; var header_name should be headerName (golint)
    • Line 111: warning: don't use underscores in Go names; var header_value should be headerValue (golint)
    • Line 114: warning: don't use underscores in Go names; var old_header should be oldHeader (golint)
    • Line 115: warning: don't use underscores in Go names; var new_header should be newHeader (golint)
    • Line 125: warning: exported method JSResponse.RemoveHeader should have comment or be unexported (golint)
    • Line 129: warning: don't use underscores in Go names; var header_parts should be headerParts (golint)
    • Line 131: warning: don't use underscores in Go names; var header_name should be headerName (golint)
    • Line 132: warning: don't use underscores in Go names; var header_value should be headerValue (golint)
    • Line 135: warning: don't use underscores in Go names; var removed_header should be removedHeader (golint)
    • Line 144: warning: exported method JSResponse.ClearBody should have comment or be unexported (golint)
    • Line 149: warning: exported method JSResponse.ToResponse should have comment or be unexported (golint)
    • Line 155: warning: don't use underscores in Go names; var header_parts should be headerParts (golint)
    • Line 157: warning: don't use underscores in Go names; var header_name should be headerName (golint)
    • Line 158: warning: don't use underscores in Go names; var header_value should be headerValue (golint)
    • Line 168: warning: exported method JSResponse.ReadBody should have comment or be unexported (golint)
    • bettercap-ng/modules/ble/ble_recon.go
    • Line 20: warning: exported type BLERecon should have comment or be unexported (golint)
    • Line 35: warning: exported function NewBLERecon should have comment or be unexported (golint)
    • Line 131: warning: exported method BLERecon.Name should have comment or be unexported (golint)
    • Line 135: warning: exported method BLERecon.Description should have comment or be unexported (golint)
    • Line 139: warning: exported method BLERecon.Author should have comment or be unexported (golint)
    • Line 156: warning: exported method BLERecon.Configure should have comment or be unexported (golint)
    • Line 192: warning: exported method BLERecon.Start should have comment or be unexported (golint)
    • Line 222: warning: exported method BLERecon.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/events_stream/events_stream.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 27: warning: exported type EventsStream should have comment or be unexported (golint)
    • Line 43: warning: exported function NewEventsStream should have comment or be unexported (golint)
    • Line 226: warning: exported method EventsStream.Name should have comment or be unexported (golint)
    • Line 230: warning: exported method EventsStream.Description should have comment or be unexported (golint)
    • Line 234: warning: exported method EventsStream.Author should have comment or be unexported (golint)
    • Line 238: warning: exported method EventsStream.Configure should have comment or be unexported (golint)
    • Line 277: warning: exported method EventsStream.Start should have comment or be unexported (golint)
    • Line 310: warning: exported method EventsStream.Show should have comment or be unexported (golint)
    • Line 353: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 360: warning: exported method EventsStream.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/net_sniff/net_sniff.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported type Sniffer should have comment or be unexported (golint)
    • Line 26: warning: exported function NewSniffer should have comment or be unexported (golint)
    • Line 118: warning: exported method Sniffer.Name should have comment or be unexported (golint)
    • Line 122: warning: exported method Sniffer.Description should have comment or be unexported (golint)
    • Line 126: warning: exported method Sniffer.Author should have comment or be unexported (golint)
    • Line 155: warning: exported method Sniffer.Configure should have comment or be unexported (golint)
    • Line 171: warning: exported method Sniffer.Start should have comment or be unexported (golint)
    • Line 221: warning: exported method Sniffer.Stop should have comment or be unexported (golint)
    • bettercap-ng/network/hid.go
    • Line 11: warning: exported type HIDDevNewCallback should have comment or be unexported (golint)
    • Line 12: warning: exported type HIDDevLostCallback should have comment or be unexported (golint)
    • Line 14: warning: exported type HID should have comment or be unexported (golint)
    • Line 26: warning: exported function NewHID should have comment or be unexported (golint)
    • Line 35: warning: exported method HID.MarshalJSON should have comment or be unexported (golint)
    • Line 47: warning: exported method HID.Get should have comment or be unexported (golint)
    • Line 47: warning: receiver name b should be consistent with previous receiver name h for HID (golint)
    • Line 54: warning: exported method HID.AddIfNew should have comment or be unexported (golint)
    • Line 54: warning: receiver name b should be consistent with previous receiver name h for HID (golint)
    • Line 82: warning: exported method HID.Remove should have comment or be unexported (golint)
    • Line 82: warning: receiver name b should be consistent with previous receiver name h for HID (golint)
    • Line 94: warning: exported method HID.Devices should have comment or be unexported (golint)
    • Line 94: warning: receiver name b should be consistent with previous receiver name h for HID (golint)
    • Line 105: warning: exported method HID.EachDevice should have comment or be unexported (golint)
    • Line 105: warning: receiver name b should be consistent with previous receiver name h for HID (golint)
    • Line 114: warning: exported method HID.Clear should have comment or be unexported (golint)
    • Line 114: warning: receiver name b should be consistent with previous receiver name h for HID (golint)
    • bettercap-ng/network/wifi_station.go
    • Line 14: warning: exported type Station should have comment or be unexported (golint)
    • Line 40: warning: exported function NewStation should have comment or be unexported (golint)
    • Line 51: warning: exported method Station.BSSID should have comment or be unexported (golint)
    • Line 55: warning: exported method Station.ESSID should have comment or be unexported (golint)
    • Line 59: warning: exported method Station.HasWPS should have comment or be unexported (golint)
    • Line 63: warning: exported method Station.IsOpen should have comment or be unexported (golint)
    • Line 67: warning: exported method Station.PathFriendlyName should have comment or be unexported (golint)
    • bettercap-ng/modules/hid/keymaps.go
    • Line 7: warning: exported type KeyMap should have comment or be unexported (golint)
    • Line 9: warning: exported var BaseMap should have comment or be unexported (golint)
    • Line 49: warning: exported var KeyMaps should have comment or be unexported (golint)
    • Line 2102: warning: exported function KeyMapFor should have comment or be unexported (golint)
    • Line 2116: warning: exported function SupportedLayouts should have comment or be unexported (golint)
    • bettercap-ng/modules/net_sniff/net_sniff_http.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 20: warning: exported type HTTPRequest should have comment or be unexported (golint)
    • Line 30: warning: exported method HTTPRequest.IsType should have comment or be unexported (golint)
    • Line 34: warning: exported type HTTPResponse should have comment or be unexported (golint)
    • Line 45: warning: exported method HTTPResponse.IsType should have comment or be unexported (golint)
    • bettercap-ng/modules/events_stream/trigger_list.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 19: warning: exported type Trigger should have comment or be unexported (golint)
    • Line 24: warning: exported type TriggerList should have comment or be unexported (golint)
    • Line 29: warning: exported function NewTriggerList should have comment or be unexported (golint)
    • Line 35: warning: error should be the last type when returning multiple items (golint)
    • Line 35: warning: exported method TriggerList.Add should have comment or be unexported (golint)
    • Line 60: warning: exported method TriggerList.Del should have comment or be unexported (golint)
    • Line 71: warning: exported method TriggerList.Each should have comment or be unexported (golint)
    • Line 79: warning: exported method TriggerList.Completer should have comment or be unexported (golint)
    • Line 89: warning: error should be the last type when returning multiple items (golint)
    • Line 89: warning: exported method TriggerList.Dispatch should have comment or be unexported (golint)
    • bettercap-ng/js/init.go
    • Line 10: warning: exported var NullValue should have comment or be unexported (golint)
    • Line 12: warning: exported function ReportError should have comment or be unexported (golint)
    • bettercap-ng/modules/mac_changer/mac_changer.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 16: warning: exported type MacChanger should have comment or be unexported (golint)
    • Line 23: warning: exported function NewMacChanger should have comment or be unexported (golint)
    • Line 53: warning: exported method MacChanger.Name should have comment or be unexported (golint)
    • Line 57: warning: exported method MacChanger.Description should have comment or be unexported (golint)
    • Line 61: warning: exported method MacChanger.Author should have comment or be unexported (golint)
    • Line 65: warning: exported method MacChanger.Configure should have comment or be unexported (golint)
    • Line 104: warning: exported method MacChanger.Start should have comment or be unexported (golint)
    • Line 118: warning: exported method MacChanger.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/utils/view_selector.go
    • Line 14: warning: exported type ViewSelector should have comment or be unexported (golint)
    • Line 34: warning: exported function ViewSelectorFor should have comment or be unexported (golint)
    • Line 98: warning: exported method ViewSelector.Update should have comment or be unexported (golint)
    • bettercap-ng/packets/krb5.go
    • Line 14: warning: exported const Krb5AsRequestType should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported var ErrNoCrypt should have comment or be unexported (golint)
    • Line 29: warning: exported type Krb5PrincipalName should have comment or be unexported (golint)
    • Line 34: warning: exported type Krb5EncryptedData should have comment or be unexported (golint)
    • Line 40: warning: exported type Krb5Ticket should have comment or be unexported (golint)
    • Line 47: warning: exported type Krb5Address should have comment or be unexported (golint)
    • Line 52: warning: exported type Krb5PnData should have comment or be unexported (golint)
    • Line 57: warning: exported type Krb5ReqBody should have comment or be unexported (golint)
    • Line 72: warning: exported type Krb5Request should have comment or be unexported (golint)
    • bettercap-ng/session/environment.go
    • Line 14: warning: exported type EnvironmentChangedCallback should have comment or be unexported (golint)
    • Line 16: warning: exported type Environment should have comment or be unexported (golint)
    • Line 22: warning: exported function NewEnvironment should have comment or be unexported (golint)
    • Line 40: warning: exported method Environment.Load should have comment or be unexported (golint)
    • Line 55: warning: exported method Environment.Save should have comment or be unexported (golint)
    • Line 67: warning: exported method Environment.Has should have comment or be unexported (golint)
    • Line 82: warning: exported method Environment.WithCallback should have comment or be unexported (golint)
    • Line 88: warning: exported method Environment.Set should have comment or be unexported (golint)
    • Line 103: warning: exported method Environment.GetUnlocked should have comment or be unexported (golint)
    • Line 110: warning: exported method Environment.Get should have comment or be unexported (golint)
    • Line 116: warning: error should be the last type when returning multiple items (golint)
    • Line 116: warning: exported method Environment.GetInt should have comment or be unexported (golint)
    • Line 120: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 128: warning: exported method Environment.Sorted should have comment or be unexported (golint)
    • bettercap-ng/network/arp.go
    • Line 11: warning: exported type ArpTable should have comment or be unexported (golint)
    • Line 19: warning: exported function ArpUpdate should have comment or be unexported (golint)
    • Line 59: warning: exported function ArpLookup should have comment or be unexported (golint)
    • Line 78: warning: exported function ArpInverseLookup should have comment or be unexported (golint)
    • Line 97: warning: exported function ArpParsed should have comment or be unexported (golint)
    • bettercap-ng/modules/net_recon/net_recon.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 11: warning: exported type Discovery should have comment or be unexported (golint)
    • Line 16: warning: exported function NewDiscovery should have comment or be unexported (golint)
    • Line 68: warning: exported method Discovery.Name should have comment or be unexported (golint)
    • Line 72: warning: exported method Discovery.Description should have comment or be unexported (golint)
    • Line 76: warning: exported method Discovery.Author should have comment or be unexported (golint)
    • Line 100: warning: exported method Discovery.Configure should have comment or be unexported (golint)
    • Line 104: warning: exported method Discovery.Start should have comment or be unexported (golint)
    • Line 123: warning: exported method Discovery.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/http_proxy/http_proxy_base_sslstriper.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 31: warning: exported type SSLStripper should have comment or be unexported (golint)
    • Line 40: warning: exported function NewSSLStripper should have comment or be unexported (golint)
    • Line 52: warning: exported method SSLStripper.Enabled should have comment or be unexported (golint)
    • Line 80: warning: exported method SSLStripper.Enable should have comment or be unexported (golint)
    • Line 131: warning: comment on exported method SSLStripper.Preprocess should be of the form "Preprocess ..." (golint)
    • Line 206: warning: exported method SSLStripper.Process should have comment or be unexported (golint)
    • bettercap-ng/network/arp_parser_linux.go
    • Line 5: warning: exported var ArpTableParser should have comment or be unexported (golint)
    • Line 6: warning: exported var ArpTableTokens should have comment or be unexported (golint)
    • Line 7: warning: exported var ArpTableTokenIndex should have comment or be unexported (golint)
    • Line 8: warning: exported var ArpCmd should have comment or be unexported (golint)
    • Line 9: warning: exported var ArpCmdOpts should have comment or be unexported (golint)
    • bettercap-ng/session/module.go
    • Line 16: warning: exported type Module should have comment or be unexported (golint)
    • Line 30: warning: exported type ModuleList should have comment or be unexported (golint)
    • Line 42: warning: exported method ModuleList.MarshalJSON should have comment or be unexported (golint)
    • Line 59: warning: exported type SessionModule should have comment or be unexported (golint)
    • Line 72: warning: exported function AsTag should have comment or be unexported (golint)
    • Line 76: warning: exported function NewSessionModule should have comment or be unexported (golint)
    • Line 93: warning: exported method SessionModule.Extra should have comment or be unexported (golint)
    • Line 102: warning: exported method SessionModule.InitState should have comment or be unexported (golint)
    • Line 108: warning: exported method SessionModule.ResetState should have comment or be unexported (golint)
    • Line 115: warning: exported method SessionModule.Debug should have comment or be unexported (golint)
    • Line 119: warning: exported method SessionModule.Info should have comment or be unexported (golint)
    • Line 123: warning: exported method SessionModule.Warning should have comment or be unexported (golint)
    • Line 131: warning: exported method SessionModule.Fatal should have comment or be unexported (golint)
    • Line 135: warning: exported method SessionModule.Printf should have comment or be unexported (golint)
    • Line 139: warning: exported method SessionModule.Requires should have comment or be unexported (golint)
    • Line 143: warning: exported method SessionModule.Required should have comment or be unexported (golint)
    • Line 147: warning: exported method SessionModule.Handlers should have comment or be unexported (golint)
    • Line 151: warning: exported method SessionModule.Parameters should have comment or be unexported (golint)
    • Line 155: warning: exported method SessionModule.Param should have comment or be unexported (golint)
    • Line 159: warning: error should be the last type when returning multiple items (golint)
    • Line 159: warning: exported method SessionModule.ListParam should have comment or be unexported (golint)
    • Line 164: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 176: warning: error should be the last type when returning multiple items (golint)
    • Line 176: warning: exported method SessionModule.StringParam should have comment or be unexported (golint)
    • Line 180: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 188: warning: error should be the last type when returning multiple items (golint)
    • Line 188: warning: exported method SessionModule.IPParam should have comment or be unexported (golint)
    • Line 191: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 196: warning: error should be the last type when returning multiple items (golint)
    • Line 196: warning: exported method SessionModule.IntParam should have comment or be unexported (golint)
    • Line 200: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 209: warning: error should be the last type when returning multiple items (golint)
    • Line 209: warning: exported method SessionModule.DecParam should have comment or be unexported (golint)
    • Line 213: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 222: warning: error should be the last type when returning multiple items (golint)
    • Line 222: warning: exported method SessionModule.BoolParam should have comment or be unexported (golint)
    • Line 225: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 230: warning: exported method SessionModule.AddHandler should have comment or be unexported (golint)
    • Line 234: warning: exported method SessionModule.AddParam should have comment or be unexported (golint)
    • Line 240: warning: exported method SessionModule.AddObservableParam should have comment or be unexported (golint)
    • Line 246: warning: exported method SessionModule.Running should have comment or be unexported (golint)
    • Line 252: warning: exported method SessionModule.SetRunning should have comment or be unexported (golint)
    • Line 256: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bettercap-ng/session/prompt.go
    • Line 13: warning: exported const PromptVariable should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported var PromptCallbacks should have comment or be unexported (golint)
    • Line 45: warning: exported type Prompt should have comment or be unexported (golint)
    • Line 48: warning: exported function NewPrompt should have comment or be unexported (golint)
    • Line 70: warning: exported method Prompt.Render should have comment or be unexported (golint)
    • bettercap-ng/modules/net_recon/net_show_sort.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported type ByAddressSorter should have comment or be unexported (golint)
    • Line 20: warning: exported type ByIpSorter should have comment or be unexported (golint)
    • Line 28: warning: exported type ByMacSorter should have comment or be unexported (golint)
    • Line 36: warning: exported type BySeenSorter should have comment or be unexported (golint)
    • Line 42: warning: exported type BySentSorter should have comment or be unexported (golint)
    • Line 47: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 60: warning: exported type ByRcvdSorter should have comment or be unexported (golint)
    • bettercap-ng/packets/serialize.go
    • Line 7: warning: exported var SerializationOptions should have comment or be unexported (golint)
    • Line 12: warning: error should be the last type when returning multiple items (golint)
    • Line 12: warning: exported function Serialize should have comment or be unexported (golint)
    • bettercap-ng/session/events.go
    • Line 14: warning: exported type Event should have comment or be unexported (golint)
    • Line 20: warning: exported type LogMessage should have comment or be unexported (golint)
    • Line 25: warning: exported function NewEvent should have comment or be unexported (golint)
    • Line 33: warning: exported method Event.Label should have comment or be unexported (golint)
    • Line 40: warning: exported type EventBus should have comment or be unexported (golint)
    • Line 42: warning: exported type PrintCallback should have comment or be unexported (golint)
    • Line 44: warning: exported type PrintWriter should have comment or be unexported (golint)
    • Line 53: warning: exported type EventPool should have comment or be unexported (golint)
    • Line 65: warning: exported function NewEventPool should have comment or be unexported (golint)
    • Line 82: warning: exported method EventPool.OnPrint should have comment or be unexported (golint)
    • Line 88: warning: exported method EventPool.Listen should have comment or be unexported (golint)
    • Line 108: warning: exported method EventPool.Unlisten should have comment or be unexported (golint)
    • Line 121: warning: exported method EventPool.SetSilent should have comment or be unexported (golint)
    • Line 127: warning: exported method EventPool.SetDebug should have comment or be unexported (golint)
    • Line 133: warning: exported method EventPool.Add should have comment or be unexported (golint)
    • Line 155: warning: exported method EventPool.Printf should have comment or be unexported (golint)
    • Line 165: warning: exported method EventPool.Log should have comment or be unexported (golint)
    • Line 185: warning: exported method EventPool.Clear should have comment or be unexported (golint)
    • Line 191: warning: exported method EventPool.Sorted should have comment or be unexported (golint)
    • bettercap-ng/packets/icmp6.go
    • Line 8: warning: error should be the last type when returning multiple items (golint)
    • Line 8: warning: exported function ICMP6NeighborAdvertisement should have comment or be unexported (golint)
    • Line 43: warning: error should be the last type when returning multiple items (golint)
    • Line 43: warning: exported function ICMP6RouterAdvertisement should have comment or be unexported (golint)
    • bettercap-ng/log/log.go
    • Line 9: warning: exported function Debug should have comment or be unexported (golint)
    • Line 13: warning: exported function Info should have comment or be unexported (golint)
    • Line 17: warning: exported function Warning should have comment or be unexported (golint)
    • Line 21: warning: exported function Error should have comment or be unexported (golint)
    • Line 25: warning: exported function Fatal should have comment or be unexported (golint)
    • bettercap-ng/firewall/redirection.go
    • Line 5: warning: exported type Redirection should have comment or be unexported (golint)
    • Line 14: warning: exported function NewRedirection should have comment or be unexported (golint)
    • Line 14: warning: don't use underscores in Go names; func parameter port_from should be portFrom (golint)
    • Line 14: warning: don't use underscores in Go names; func parameter addr_to should be addrTo (golint)
    • Line 14: warning: don't use underscores in Go names; func parameter port_to should be portTo (golint)
    • bettercap-ng/modules/mysql_server/mysql_server.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 17: warning: exported type MySQLServer should have comment or be unexported (golint)
    • Line 25: warning: exported function NewMySQLServer should have comment or be unexported (golint)
    • Line 64: warning: exported method MySQLServer.Name should have comment or be unexported (golint)
    • Line 68: warning: exported method MySQLServer.Description should have comment or be unexported (golint)
    • Line 72: warning: exported method MySQLServer.Author should have comment or be unexported (golint)
    • Line 76: warning: exported method MySQLServer.Configure should have comment or be unexported (golint)
    • Line 99: warning: exported method MySQLServer.Start should have comment or be unexported (golint)
    • Line 178: warning: exported method MySQLServer.Stop should have comment or be unexported (golint)
    • bettercap-ng/packets/queue.go
    • Line 17: warning: exported type Activity should have comment or be unexported (golint)
    • Line 24: warning: exported type Traffic should have comment or be unexported (golint)
    • Line 29: warning: exported type Stats should have comment or be unexported (golint)
    • Line 36: warning: exported type Queue should have comment or be unexported (golint)
    • Line 59: warning: exported function NewQueue should have comment or be unexported (golint)
    • Line 84: warning: exported method Queue.MarshalJSON should have comment or be unexported (golint)
    • Line 150: warning: exported method Queue.TrackPacket should have comment or be unexported (golint)
    • Line 159: warning: exported method Queue.TrackSent should have comment or be unexported (golint)
    • Line 163: warning: exported method Queue.TrackError should have comment or be unexported (golint)
    • Line 230: warning: exported method Queue.Send should have comment or be unexported (golint)
    • Line 244: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 251: warning: exported method Queue.Stop should have comment or be unexported (golint)
    • bettercap-ng/network/wifi_ap.go
    • Line 11: warning: exported type AccessPoint should have comment or be unexported (golint)
    • Line 26: warning: exported function NewAccessPoint should have comment or be unexported (golint)
    • Line 34: warning: exported method AccessPoint.MarshalJSON should have comment or be unexported (golint)
    • Line 51: warning: exported method AccessPoint.Get should have comment or be unexported (golint)
    • Line 62: warning: exported method AccessPoint.RemoveClient should have comment or be unexported (golint)
    • Line 70: warning: exported method AccessPoint.AddClientIfNew should have comment or be unexported (golint)
    • Line 97: warning: exported method AccessPoint.NumClients should have comment or be unexported (golint)
    • Line 103: warning: exported method AccessPoint.Clients should have comment or be unexported (golint)
    • Line 114: warning: exported method AccessPoint.EachClient should have comment or be unexported (golint)
    • Line 123: warning: exported method AccessPoint.WithKeyMaterial should have comment or be unexported (golint)
    • Line 130: warning: exported method AccessPoint.HasKeyMaterial should have comment or be unexported (golint)
    • Line 137: warning: exported method AccessPoint.NumHandshakes should have comment or be unexported (golint)
    • Line 152: warning: exported method AccessPoint.HasHandshakes should have comment or be unexported (golint)
    • Line 156: warning: exported method AccessPoint.HasPMKID should have comment or be unexported (golint)
    • bettercap-ng/packets/mysql.go
    • Line 4: warning: exported var MySQLGreeting should have comment or be unexported (golint)
    • Line 28: warning: exported function MySQLGetFile should have comment or be unexported (golint)
    • bettercap-ng/session/script.go
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 19: warning: exported type Script should have comment or be unexported (golint)
    • Line 67: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 75: warning: exported function LoadScript should have comment or be unexported (golint)
    • bettercap-ng/modules/ui/ui.go
    • Line 24: warning: exported type UIModule should have comment or be unexported (golint)
    • Line 32: warning: exported function NewUIModule should have comment or be unexported (golint)
    • Line 63: warning: exported method UIModule.Name should have comment or be unexported (golint)
    • Line 67: warning: exported method UIModule.Description should have comment or be unexported (golint)
    • Line 71: warning: exported method UIModule.Author should have comment or be unexported (golint)
    • Line 75: warning: exported method UIModule.Configure should have comment or be unexported (golint)
    • Line 78: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 89: warning: exported method UIModule.Stop should have comment or be unexported (golint)
    • Line 168: warning: exported method UIModule.Start should have comment or be unexported (golint)
    • bettercap-ng/packets/dhcp6.go
    • Line 10: warning: exported const DHCP6OptDNSServers should have comment or be unexported (golint)
    • Line 11: warning: exported const DHCP6OptDNSDomains should have comment or be unexported (golint)
    • Line 12: warning: exported const DHCP6OptClientFQDN should have comment or be unexported (golint)
    • Line 14: warning: comment on exported const IPv6Prefix should be of the form "IPv6Prefix ..." (golint)
    • Line 18: warning: exported var ErrNoCID should have comment or be unexported (golint)
    • Line 21: warning: exported function DHCP6EncodeList should have comment or be unexported (golint)
    • Line 33: warning: error should be the last type when returning multiple items (golint)
    • Line 33: warning: exported function DHCP6For should have comment or be unexported (golint)
    • Line 43: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • bettercap-ng/routing/route.go
    • Line 3: warning: exported type RouteType should have comment or be unexported (golint)
    • Line 6: warning: exported const IPv4 should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported type Route should have comment or be unexported (golint)
    • bettercap-ng/modules/http_proxy/http_proxy_js_request.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 15: warning: exported type JSRequest should have comment or be unexported (golint)
    • Line 33: warning: don't use underscores in Go names; var header_regexp should be headerRegexp (golint)
    • Line 35: warning: exported function NewJSRequest should have comment or be unexported (golint)
    • Line 49: warning: don't use underscores in Go names; var client_ip should be clientIP (golint)
    • Line 50: warning: don't use underscores in Go names; var client_mac should be clientMac (golint)
    • Line 51: warning: don't use underscores in Go names; var client_alias should be clientAlias (golint)
    • Line 77: warning: exported method JSRequest.NewHash should have comment or be unexported (golint)
    • Line 93: warning: exported method JSRequest.UpdateHash should have comment or be unexported (golint)
    • Line 97: warning: exported method JSRequest.WasModified should have comment or be unexported (golint)
    • Line 106: warning: exported method JSRequest.GetHeader should have comment or be unexported (golint)
    • Line 110: warning: don't use underscores in Go names; var header_parts should be headerParts (golint)
    • Line 112: warning: don't use underscores in Go names; var header_name should be headerName (golint)
    • Line 113: warning: don't use underscores in Go names; var header_value should be headerValue (golint)
    • Line 124: warning: exported method JSRequest.SetHeader should have comment or be unexported (golint)
    • Line 135: warning: don't use underscores in Go names; var header_parts should be headerParts (golint)
    • Line 137: warning: don't use underscores in Go names; var header_name should be headerName (golint)
    • Line 138: warning: don't use underscores in Go names; var header_value should be headerValue (golint)
    • Line 141: warning: don't use underscores in Go names; var old_header should be oldHeader (golint)
    • Line 142: warning: don't use underscores in Go names; var new_header should be newHeader (golint)
    • Line 152: warning: exported method JSRequest.RemoveHeader should have comment or be unexported (golint)
    • Line 156: warning: don't use underscores in Go names; var header_parts should be headerParts (golint)
    • Line 158: warning: don't use underscores in Go names; var header_name should be headerName (golint)
    • Line 159: warning: don't use underscores in Go names; var header_value should be headerValue (golint)
    • Line 162: warning: don't use underscores in Go names; var removed_header should be removedHeader (golint)
    • Line 171: warning: exported method JSRequest.ReadBody should have comment or be unexported (golint)
    • Line 185: warning: exported method JSRequest.ParseForm should have comment or be unexported (golint)
    • Line 208: warning: exported method JSRequest.ToRequest should have comment or be unexported (golint)
    • Line 224: warning: don't use underscores in Go names; var header_parts should be headerParts (golint)
    • Line 226: warning: don't use underscores in Go names; var header_name should be headerName (golint)
    • Line 227: warning: don't use underscores in Go names; var header_value should be headerValue (golint)
    • bettercap-ng/modules/net_sniff/net_sniff_fuzz.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 76: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 95: warning: exported method Sniffer.StartFuzzing should have comment or be unexported (golint)
    • Line 115: warning: exported method Sniffer.StopFuzzing should have comment or be unexported (golint)
    • bettercap-ng/modules/wifi/wifi.go
    • Line 27: warning: exported type WiFiModule should have comment or be unexported (golint)
    • Line 69: warning: exported function NewWiFiModule should have comment or be unexported (golint)
    • Line 307: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 372: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 375: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 417: warning: exported method WiFiModule.Name should have comment or be unexported (golint)
    • Line 421: warning: exported method WiFiModule.Description should have comment or be unexported (golint)
    • Line 425: warning: exported method WiFiModule.Author should have comment or be unexported (golint)
    • Line 430: warning: comment on exported const ErrIfaceNotUp should be of the form "ErrIfaceNotUp ..." (golint)
    • Line 446: warning: exported method WiFiModule.Configure should have comment or be unexported (golint)
    • Line 498: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 550: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 572: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 637: warning: exported method WiFiModule.Start should have comment or be unexported (golint)
    • Line 702: warning: exported method WiFiModule.Stop should have comment or be unexported (golint)
    • bettercap-ng/session/session_completers.go
    • Line 19: warning: exported method Session.LANCompleter should have comment or be unexported (golint)
    • Line 27: warning: exported method Session.WiFiCompleter should have comment or be unexported (golint)
    • Line 35: warning: exported method Session.WiFiCompleterFull should have comment or be unexported (golint)
    • Line 46: warning: exported method Session.BLECompleter should have comment or be unexported (golint)
    • Line 54: warning: exported method Session.HIDCompleter should have comment or be unexported (golint)
    • Line 62: warning: exported method Session.EventsCompleter should have comment or be unexported (golint)
    • bettercap-ng/network/net_wifi.go
    • Line 7: warning: exported const NO_CHANNEL should have comment or be unexported (golint)
    • Line 14: warning: exported function GetInterfaceChannel should have comment or be unexported (golint)
    • Line 23: warning: exported function SetInterfaceCurrentChannel should have comment or be unexported (golint)
    • bettercap-ng/modules/any_proxy/any_proxy.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 12: warning: exported type AnyProxy should have comment or be unexported (golint)
    • Line 19: warning: exported function NewAnyProxy should have comment or be unexported (golint)
    • Line 69: warning: exported method AnyProxy.Name should have comment or be unexported (golint)
    • Line 73: warning: exported method AnyProxy.Description should have comment or be unexported (golint)
    • Line 77: warning: exported method AnyProxy.Author should have comment or be unexported (golint)
    • Line 81: warning: exported method AnyProxy.Configure should have comment or be unexported (golint)
    • Line 106: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 172: warning: exported method AnyProxy.Start should have comment or be unexported (golint)
    • Line 180: warning: exported method AnyProxy.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/dhcp6_spoof/dhcp6_spoof.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 27: warning: exported type DHCP6Spoofer should have comment or be unexported (golint)
    • Line 38: warning: exported function NewDHCP6Spoofer should have comment or be unexported (golint)
    • Line 67: warning: exported method DHCP6Spoofer.Name should have comment or be unexported (golint)
    • Line 71: warning: exported method DHCP6Spoofer.Description should have comment or be unexported (golint)
    • Line 75: warning: exported method DHCP6Spoofer.Author should have comment or be unexported (golint)
    • Line 79: warning: exported method DHCP6Spoofer.Configure should have comment or be unexported (golint)
    • Line 115: warning: error should be the last type when returning multiple items (golint)
    • Line 361: warning: exported method DHCP6Spoofer.Start should have comment or be unexported (golint)
    • Line 382: warning: exported method DHCP6Spoofer.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/api_rest/api_rest.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported type RestAPI should have comment or be unexported (golint)
    • Line 45: warning: exported function NewRestAPI should have comment or be unexported (golint)
    • Line 161: warning: exported type JSSessionRequest should have comment or be unexported (golint)
    • Line 165: warning: exported type JSSessionResponse should have comment or be unexported (golint)
    • Line 169: warning: exported method RestAPI.Name should have comment or be unexported (golint)
    • Line 173: warning: exported method RestAPI.Description should have comment or be unexported (golint)
    • Line 177: warning: exported method RestAPI.Author should have comment or be unexported (golint)
    • Line 185: warning: exported method RestAPI.Configure should have comment or be unexported (golint)
    • Line 269: warning: exported method RestAPI.Start should have comment or be unexported (golint)
    • Line 295: warning: exported method RestAPI.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/wol/wol.go
    • Line 21: warning: exported type WOL should have comment or be unexported (golint)
    • Line 25: warning: exported function NewWOL should have comment or be unexported (golint)
    • Line 35: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 45: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 60: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 69: warning: exported method WOL.Name should have comment or be unexported (golint)
    • Line 73: warning: exported method WOL.Description should have comment or be unexported (golint)
    • Line 77: warning: exported method WOL.Author should have comment or be unexported (golint)
    • Line 81: warning: exported method WOL.Configure should have comment or be unexported (golint)
    • Line 85: warning: exported method WOL.Start should have comment or be unexported (golint)
    • Line 89: warning: exported method WOL.Stop should have comment or be unexported (golint)
    • bettercap-ng/firewall/firewall_linux.go
    • Line 15: warning: exported type LinuxFirewall should have comment or be unexported (golint)
    • Line 22: warning: exported const IPV4ForwardingFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported function Make should have comment or be unexported (golint)
    • Line 56: warning: exported method LinuxFirewall.IsForwardingEnabled should have comment or be unexported (golint)
    • Line 60: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 65: warning: exported method LinuxFirewall.EnableForwarding should have comment or be unexported (golint)
    • Line 106: warning: exported method LinuxFirewall.EnableRedirection should have comment or be unexported (golint)
    • Line 139: warning: exported method LinuxFirewall.Restore should have comment or be unexported (golint)
    • bettercap-ng/modules/http_proxy/http_proxy_base_hosttracker.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported type Host should have comment or be unexported (golint)
    • Line 14: warning: exported function NewHost should have comment or be unexported (golint)
    • Line 35: warning: exported type HostTracker should have comment or be unexported (golint)
    • Line 41: warning: exported function NewHostTracker should have comment or be unexported (golint)
    • Line 48: warning: exported method HostTracker.Track should have comment or be unexported (golint)
    • Line 55: warning: exported method HostTracker.Unstrip should have comment or be unexported (golint)
    • Line 65: warning: exported method HostTracker.Strip should have comment or be unexported (golint)
    • bettercap-ng/tls/cert.go
    • Line 17: warning: exported type CertConfig should have comment or be unexported (golint)
    • Line 27: warning: exported var DefaultLegitConfig should have comment or be unexported (golint)
    • Line 45: warning: exported function CertConfigToModule should have comment or be unexported (golint)
    • Line 60: warning: exported function CertConfigFromModule should have comment or be unexported (golint)
    • Line 77: warning: exported function CreateCertificate should have comment or be unexported (golint)
    • Line 117: warning: exported function Generate should have comment or be unexported (golint)
    • bettercap-ng/core/options.go
    • Line 5: warning: exported type Options should have comment or be unexported (golint)
    • Line 23: warning: exported function ParseOptions should have comment or be unexported (golint)
    • bettercap-ng/modules/dns_spoof/dns_spoof_hosts.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 17: warning: exported type HostEntry should have comment or be unexported (golint)
    • Line 24: warning: exported method HostEntry.Matches should have comment or be unexported (golint)
    • Line 29: warning: exported type Hosts should have comment or be unexported (golint)
    • Line 31: warning: exported function NewHostEntry should have comment or be unexported (golint)
    • Line 50: warning: error should be the last type when returning multiple items (golint)
    • Line 50: warning: exported function HostsFromFile should have comment or be unexported (golint)
    • Line 76: warning: exported method Hosts.Resolve should have comment or be unexported (golint)
    • bettercap-ng/modules/hid/duckyparser.go
    • Line 11: warning: exported type DuckyParser should have comment or be unexported (golint)
    • Line 73: warning: exported method DuckyParser.Parse should have comment or be unexported (golint)
    • Line 80: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bettercap-ng/modules/wifi/wifi_events.go
    • Line 7: warning: exported type ClientEvent should have comment or be unexported (golint)
    • Line 12: warning: exported type DeauthEvent should have comment or be unexported (golint)
    • Line 21: warning: exported type ProbeEvent should have comment or be unexported (golint)
    • Line 29: warning: exported type HandshakeEvent should have comment or be unexported (golint)
    • bettercap-ng/modules/packet_proxy/packet_proxy_linux.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 20: warning: exported type PacketProxy should have comment or be unexported (golint)
    • Line 37: warning: exported function NewPacketProxy should have comment or be unexported (golint)
    • Line 81: warning: exported method PacketProxy.Name should have comment or be unexported (golint)
    • Line 85: warning: exported method PacketProxy.Description should have comment or be unexported (golint)
    • Line 89: warning: exported method PacketProxy.Author should have comment or be unexported (golint)
    • Line 130: warning: exported method PacketProxy.Configure should have comment or be unexported (golint)
    • Line 168: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 203: warning: exported method PacketProxy.Start should have comment or be unexported (golint)
    • Line 221: warning: exported method PacketProxy.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/syn_scan/syn_scan_event.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported type SynScanEvent should have comment or be unexported (golint)
    • Line 14: warning: exported function NewSynScanEvent should have comment or be unexported (golint)
    • Line 22: warning: exported method SynScanEvent.Push should have comment or be unexported (golint)
    • bettercap-ng/packets/teamviewer.go
    • Line 8: warning: exported const TeamViewerPort should have comment or be unexported (golint)
    • Line 93: warning: exported type TeamViewerPacket should have comment or be unexported (golint)
    • Line 100: warning: exported function ParseTeamViewer should have comment or be unexported (golint)
    • Line 120: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • bettercap-ng/network/ble.go
    • Line 15: warning: exported const BLEMacValidator should have comment or be unexported (golint)
    • Line 17: warning: exported type BLEDevNewCallback should have comment or be unexported (golint)
    • Line 18: warning: exported type BLEDevLostCallback should have comment or be unexported (golint)
    • Line 20: warning: exported type BLE should have comment or be unexported (golint)
    • Line 32: warning: exported function NewBLE should have comment or be unexported (golint)
    • Line 41: warning: exported method BLE.MarshalJSON should have comment or be unexported (golint)
    • Line 48: warning: exported method BLE.Get should have comment or be unexported (golint)
    • Line 56: warning: exported method BLE.AddIfNew should have comment or be unexported (golint)
    • Line 83: warning: exported method BLE.Remove should have comment or be unexported (golint)
    • Line 96: warning: exported method BLE.Devices should have comment or be unexported (golint)
    • Line 107: warning: exported method BLE.EachDevice should have comment or be unexported (golint)
    • Line 116: warning: exported method BLE.Clear should have comment or be unexported (golint)
    • bettercap-ng/network/hid_device.go
    • Line 15: warning: exported type HIDType should have comment or be unexported (golint)
    • Line 18: warning: exported const HIDTypeUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type HIDPayload should have comment or be unexported (golint)
    • Line 41: warning: exported type HIDDevice should have comment or be unexported (golint)
    • Line 63: warning: exported function NormalizeHIDAddress should have comment or be unexported (golint)
    • Line 74: warning: exported function HIDAddress should have comment or be unexported (golint)
    • Line 82: warning: exported function NewHIDDevice should have comment or be unexported (golint)
    • Line 99: warning: exported method HIDDevice.MarshalJSON should have comment or be unexported (golint)
    • Line 125: warning: exported method HIDDevice.AddChannel should have comment or be unexported (golint)
    • Line 142: warning: exported method HIDDevice.ChannelsList should have comment or be unexported (golint)
    • Line 148: warning: exported method HIDDevice.Channels should have comment or be unexported (golint)
    • Line 187: warning: exported method HIDDevice.AddPayload should have comment or be unexported (golint)
    • Line 199: warning: exported method HIDDevice.EachPayload should have comment or be unexported (golint)
    • Line 210: warning: exported method HIDDevice.NumPayloads should have comment or be unexported (golint)
    • Line 216: warning: exported method HIDDevice.PayloadsSize should have comment or be unexported (golint)
    • bettercap-ng/modules/arp_spoof/arp_spoof.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 17: warning: exported type ArpSpoofer should have comment or be unexported (golint)
    • Line 30: warning: exported function NewArpSpoofer should have comment or be unexported (golint)
    • Line 100: warning: exported method ArpSpoofer.Name should have comment or be unexported (golint)
    • Line 104: warning: exported method ArpSpoofer.Description should have comment or be unexported (golint)
    • Line 108: warning: exported method ArpSpoofer.Author should have comment or be unexported (golint)
    • Line 112: warning: exported method ArpSpoofer.Configure should have comment or be unexported (golint)
    • Line 144: warning: exported method ArpSpoofer.Start should have comment or be unexported (golint)
    • Line 214: warning: exported method ArpSpoofer.Stop should have comment or be unexported (golint)
    • Line 265: warning: don't use underscores in Go names; method parameter check_running should be checkRunning (golint)
    • bettercap-ng/modules/https_server/https_server.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 17: warning: exported type HttpsServer should have comment or be unexported (golint)
    • Line 24: warning: exported function NewHttpsServer should have comment or be unexported (golint)
    • Line 71: warning: exported method HttpsServer.Name should have comment or be unexported (golint)
    • Line 75: warning: exported method HttpsServer.Description should have comment or be unexported (golint)
    • Line 79: warning: exported method HttpsServer.Author should have comment or be unexported (golint)
    • Line 83: warning: exported method HttpsServer.Configure should have comment or be unexported (golint)
    • Line 154: warning: exported method HttpsServer.Start should have comment or be unexported (golint)
    • Line 168: warning: exported method HttpsServer.Stop should have comment or be unexported (golint)
    • bettercap-ng/network/ble_device.go
    • Line 12: warning: exported type BLECharacteristic should have comment or be unexported (golint)
    • Line 20: warning: exported type BLEService should have comment or be unexported (golint)
    • Line 28: warning: exported type BLEDevice should have comment or be unexported (golint)
    • Line 51: warning: exported function NewBLEDevice should have comment or be unexported (golint)
    • Line 66: warning: exported method BLEDevice.Name should have comment or be unexported (golint)
    • Line 80: warning: exported method BLEDevice.MarshalJSON should have comment or be unexported (golint)
    • bettercap-ng/modules/mdns_server/mdns_server.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 18: warning: exported type MDNSServer should have comment or be unexported (golint)
    • Line 26: warning: exported function NewMDNSServer should have comment or be unexported (golint)
    • Line 82: warning: exported method MDNSServer.Name should have comment or be unexported (golint)
    • Line 86: warning: exported method MDNSServer.Description should have comment or be unexported (golint)
    • Line 90: warning: exported method MDNSServer.Author should have comment or be unexported (golint)
    • Line 94: warning: exported method MDNSServer.Configure should have comment or be unexported (golint)
    • Line 141: warning: exported method MDNSServer.Start should have comment or be unexported (golint)
    • Line 156: warning: exported method MDNSServer.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/net_sniff/net_sniff_stats.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported type SnifferStats should have comment or be unexported (golint)
    • Line 18: warning: exported function NewSnifferStats should have comment or be unexported (golint)
    • Line 30: warning: exported method SnifferStats.Print should have comment or be unexported (golint)
    • bettercap-ng/modules/wifi/wifi_show.go
    • Line 94: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 146: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 174: warning: error should be the last type when returning multiple items (golint)
    • Line 317: warning: exported method WiFiModule.Show should have comment or be unexported (golint)
    • Line 349: warning: exported method WiFiModule.ShowWPS should have comment or be unexported (golint)
    • bettercap-ng/core/core.go
    • Line 10: warning: exported function UniqueInts should have comment or be unexported (golint)
    • Line 29: warning: exported function HasBinary should have comment or be unexported (golint)
    • Line 36: warning: exported function Exec should have comment or be unexported (golint)
    • Line 45: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bettercap-ng/packets/dhcp6_layer.go
    • Line 8: warning: exported type DHCPv6Layer should have comment or be unexported (golint)
    • Line 12: warning: exported method DHCPv6Layer.LayerType should have comment or be unexported (golint)
    • Line 14: warning: exported method DHCPv6Layer.SerializeTo should have comment or be unexported (golint)
    • bettercap-ng/packets/dot11_types.go
    • Line 8: warning: exported type Dot11CipherType should have comment or be unexported (golint)
    • Line 11: warning: exported const Dot11CipherWep should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type Dot11AuthType should have comment or be unexported (golint)
    • Line 38: warning: exported const Dot11AuthMgt should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported type CipherSuite should have comment or be unexported (golint)
    • Line 58: warning: exported type AuthSuite should have comment or be unexported (golint)
    • Line 63: warning: exported type CipherSuiteSelector should have comment or be unexported (golint)
    • Line 68: warning: exported type AuthSuiteSelector should have comment or be unexported (golint)
    • Line 73: warning: exported type RSNInfo should have comment or be unexported (golint)
    • Line 80: warning: exported type VendorInfo should have comment or be unexported (golint)
    • Line 111: warning: exported function Dot11InformationElementVendorInfoDecode should have comment or be unexported (golint)
    • Line 163: warning: exported function Dot11InformationElementRSNInfoDecode should have comment or be unexported (golint)
    • Line 215: warning: exported function Dot11InformationElementIDDSSetDecode should have comment or be unexported (golint)
    • bettercap-ng/network/lan_endpoint.go
    • Line 14: warning: exported type OnHostResolvedCallback should have comment or be unexported (golint)
    • Line 16: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 36: warning: exported function NewEndpointNoResolve should have comment or be unexported (golint)
    • Line 63: warning: exported function NewEndpoint should have comment or be unexported (golint)
    • Line 78: warning: exported function NewEndpointWithAlias should have comment or be unexported (golint)
    • Line 91: warning: exported method Endpoint.SetNetwork should have comment or be unexported (golint)
    • Line 100: warning: exported method Endpoint.SetIPv6 should have comment or be unexported (golint)
    • Line 111: warning: exported method Endpoint.SetIP should have comment or be unexported (golint)
    • Line 118: warning: exported method Endpoint.SetBits should have comment or be unexported (golint)
    • Line 124: warning: exported method Endpoint.Name should have comment or be unexported (golint)
    • Line 128: warning: exported method Endpoint.CIDR should have comment or be unexported (golint)
    • Line 138: warning: exported method Endpoint.IsMonitor should have comment or be unexported (golint)
    • Line 164: warning: exported method Endpoint.OnMeta should have comment or be unexported (golint)
    • bettercap-ng/modules/ticker/ticker.go
    • Line 9: warning: exported type Ticker should have comment or be unexported (golint)
    • Line 15: warning: exported function NewTicker should have comment or be unexported (golint)
    • Line 44: warning: exported method Ticker.Name should have comment or be unexported (golint)
    • Line 48: warning: exported method Ticker.Description should have comment or be unexported (golint)
    • Line 52: warning: exported method Ticker.Author should have comment or be unexported (golint)
    • Line 56: warning: exported method Ticker.Configure should have comment or be unexported (golint)
    • Line 75: warning: exported type TickEvent should have comment or be unexported (golint)
    • Line 77: warning: exported method Ticker.Start should have comment or be unexported (golint)
    • Line 101: warning: exported method Ticker.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/tcp_proxy/tcp_proxy_script.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 15: warning: exported type TcpProxyScript should have comment or be unexported (golint)
    • Line 20: warning: error should be the last type when returning multiple items (golint)
    • Line 20: warning: exported function LoadTcpProxyScript should have comment or be unexported (golint)
    • Line 49: warning: exported method TcpProxyScript.OnData should have comment or be unexported (golint)
    • bettercap-ng/session/events_ignore_list.go
    • Line 14: warning: exported var ErrEmptyExpression should have comment or be unexported (golint)
    • Line 23: warning: exported type EventsIgnoreList should have comment or be unexported (golint)
    • Line 28: warning: exported function NewEventsIgnoreList should have comment or be unexported (golint)
    • Line 34: warning: exported method EventsIgnoreList.MarshalJSON should have comment or be unexported (golint)
    • Line 49: warning: exported method EventsIgnoreList.Add should have comment or be unexported (golint)
    • Line 70: warning: exported method EventsIgnoreList.Remove should have comment or be unexported (golint)
    • Line 97: warning: exported method EventsIgnoreList.Clear should have comment or be unexported (golint)
    • Line 103: warning: exported method EventsIgnoreList.Ignored should have comment or be unexported (golint)
    • Line 116: warning: exported method EventsIgnoreList.Empty should have comment or be unexported (golint)
    • Line 122: warning: exported method EventsIgnoreList.Filters should have comment or be unexported (golint)
    • bettercap-ng/modules/http_proxy/http_proxy_script.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 14: warning: exported type HttpProxyScript should have comment or be unexported (golint)
    • Line 22: warning: error should be the last type when returning multiple items (golint)
    • Line 22: warning: exported function LoadHttpProxyScript should have comment or be unexported (golint)
    • Line 53: warning: exported method HttpProxyScript.OnRequest should have comment or be unexported (golint)
    • Line 73: warning: exported method HttpProxyScript.OnResponse should have comment or be unexported (golint)
    • Line 90: warning: exported method HttpProxyScript.OnCommand should have comment or be unexported (golint)
    • bettercap-ng/packets/ntlm.go
    • Line 14: warning: exported const NTLM_SIG_OFFSET should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported type NTLMChallengeResponse should have comment or be unexported (golint)
    • Line 55: warning: exported type NTLMChallengeResponseParsed should have comment or be unexported (golint)
    • Line 65: warning: exported type NTLMResponseHeader should have comment or be unexported (golint)
    • Line 85: warning: exported type NTLMState should have comment or be unexported (golint)
    • Line 92: warning: exported method NTLMState.AddServerResponse should have comment or be unexported (golint)
    • Line 98: warning: exported method NTLMState.AddClientResponse should have comment or be unexported (golint)
    • Line 115: warning: exported function NewNTLMState should have comment or be unexported (golint)
    • Line 137: warning: exported method NTLMChallengeResponse.Parsed should have comment or be unexported (golint)
    • Line 144: warning: exported method NTLMChallengeResponse.ParsedNtLMv2 should have comment or be unexported (golint)
    • Line 167: warning: exported method NTLMChallengeResponse.ParsedNtLMv1 should have comment or be unexported (golint)
    • Line 183: warning: don't use underscores in Go names; func is_le should be isLe (golint)
    • Line 231: warning: exported method NTLMChallengeResponseParsed.LcString should have comment or be unexported (golint)
    • bettercap-ng/caplets/caplet.go
    • Line 11: warning: exported type Script should have comment or be unexported (golint)
    • Line 25: warning: exported type Caplet should have comment or be unexported (golint)
    • Line 31: warning: exported function NewCaplet should have comment or be unexported (golint)
    • Line 39: warning: exported method Caplet.Eval should have comment or be unexported (golint)
    • bettercap-ng/modules/caplets/caplets.go
    • Line 19: warning: exported type CapletsModule should have comment or be unexported (golint)
    • Line 23: warning: exported function NewCapletsModule should have comment or be unexported (golint)
    • Line 49: warning: exported method CapletsModule.Name should have comment or be unexported (golint)
    • Line 53: warning: exported method CapletsModule.Description should have comment or be unexported (golint)
    • Line 57: warning: exported method CapletsModule.Author should have comment or be unexported (golint)
    • Line 61: warning: exported method CapletsModule.Configure should have comment or be unexported (golint)
    • Line 65: warning: exported method CapletsModule.Stop should have comment or be unexported (golint)
    • Line 69: warning: exported method CapletsModule.Start should have comment or be unexported (golint)
    • Line 73: warning: exported method CapletsModule.Show should have comment or be unexported (golint)
    • Line 99: warning: exported method CapletsModule.Paths should have comment or be unexported (golint)
    • Line 115: warning: exported method CapletsModule.Update should have comment or be unexported (golint)
    • bettercap-ng/modules/hid/command.go
    • Line 7: warning: exported type Frame should have comment or be unexported (golint)
    • Line 12: warning: exported function NewFrame should have comment or be unexported (golint)
    • Line 19: warning: exported type Command should have comment or be unexported (golint)
    • Line 26: warning: exported method Command.AddFrame should have comment or be unexported (golint)
    • Line 33: warning: exported method Command.IsHID should have comment or be unexported (golint)
    • Line 37: warning: exported method Command.IsSleep should have comment or be unexported (golint)
    • bettercap-ng/session/command_handler.go
    • Line 10: warning: exported type CommandHandler should have comment or be unexported (golint)
    • Line 19: warning: exported function NewCommandHandler should have comment or be unexported (golint)
    • Line 30: warning: exported method CommandHandler.Parse should have comment or be unexported (golint)
    • Line 34: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 39: warning: exported method CommandHandler.Exec should have comment or be unexported (golint)
    • bettercap-ng/packets/mdns.go
    • Line 13: warning: exported const MDNSPort should have comment or be unexported (golint)
    • Line 16: warning: exported var MDNSDestMac should have comment or be unexported (golint)
    • Line 20: warning: exported function MDNSGetMeta should have comment or be unexported (golint)
    • Line 62: warning: error should be the last type when returning multiple items (golint)
    • Line 62: warning: exported function NewMDNSProbe should have comment or be unexported (golint)
    • Line 62: warning: don't use underscores in Go names; func parameter from_hw should be fromHw (golint)
    • bettercap-ng/packets/udp.go
    • Line 8: warning: error should be the last type when returning multiple items (golint)
    • Line 8: warning: exported function NewUDPProbe should have comment or be unexported (golint)
    • Line 8: warning: don't use underscores in Go names; func parameter from_hw should be fromHw (golint)
    • Line 33: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bettercap-ng/session/module_param.go
    • Line 15: warning: exported type ParamType should have comment or be unexported (golint)
    • Line 18: warning: exported const STRING should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type ModuleParam should have comment or be unexported (golint)
    • Line 33: warning: exported function NewModuleParameter should have comment or be unexported (golint)
    • Line 33: warning: don't use underscores in Go names; func parameter def_value should be defValue (golint)
    • Line 49: warning: exported function NewStringParameter should have comment or be unexported (golint)
    • Line 49: warning: don't use underscores in Go names; func parameter def_value should be defValue (golint)
    • Line 53: warning: exported function NewBoolParameter should have comment or be unexported (golint)
    • Line 53: warning: don't use underscores in Go names; func parameter def_value should be defValue (golint)
    • Line 57: warning: exported function NewIntParameter should have comment or be unexported (golint)
    • Line 57: warning: don't use underscores in Go names; func parameter def_value should be defValue (golint)
    • Line 61: warning: exported function NewDecimalParameter should have comment or be unexported (golint)
    • Line 61: warning: don't use underscores in Go names; func parameter def_value should be defValue (golint)
    • Line 65: warning: error should be the last type when returning multiple items (golint)
    • Line 95: warning: exported const ParamIfaceName should have comment or be unexported (golint)
    • Line 96: warning: exported const ParamIfaceAddress should have comment or be unexported (golint)
    • Line 97: warning: exported const ParamIfaceAddress6 should have comment or be unexported (golint)
    • Line 98: warning: exported const ParamIfaceMac should have comment or be unexported (golint)
    • Line 99: warning: exported const ParamSubnet should have comment or be unexported (golint)
    • Line 100: warning: exported const ParamRandomMAC should have comment or be unexported (golint)
    • Line 102: warning: exported var ParamIfaceNameParser should have comment or be unexported (golint)
    • Line 162: warning: error should be the last type when returning multiple items (golint)
    • Line 162: warning: exported method ModuleParam.Get should have comment or be unexported (golint)
    • Line 168: warning: exported method ModuleParam.Help should have comment or be unexported (golint)
    • Line 174: warning: exported method ModuleParam.Register should have comment or be unexported (golint)
    • Line 178: warning: exported method ModuleParam.RegisterObserver should have comment or be unexported (golint)
    • Line 182: warning: exported type JSONModuleParam should have comment or be unexported (golint)
    • Line 191: warning: exported method ModuleParam.MarshalJSON should have comment or be unexported (golint)
    • bettercap-ng/network/lan.go
    • Line 12: warning: exported const LANDefaultttl should have comment or be unexported (golint)
    • Line 14: warning: exported type EndpointNewCallback should have comment or be unexported (golint)
    • Line 15: warning: exported type EndpointLostCallback should have comment or be unexported (golint)
    • Line 17: warning: exported type LAN should have comment or be unexported (golint)
    • Line 32: warning: exported function NewLAN should have comment or be unexported (golint)
    • Line 44: warning: exported method LAN.MarshalJSON should have comment or be unexported (golint)
    • Line 56: warning: exported method LAN.Get should have comment or be unexported (golint)
    • Line 56: warning: receiver name lan should be consistent with previous receiver name l for LAN (golint)
    • Line 74: warning: exported method LAN.GetByIp should have comment or be unexported (golint)
    • Line 74: warning: receiver name lan should be consistent with previous receiver name l for LAN (golint)
    • Line 93: warning: exported method LAN.List should have comment or be unexported (golint)
    • Line 93: warning: receiver name lan should be consistent with previous receiver name l for LAN (golint)
    • Line 104: warning: exported method LAN.Aliases should have comment or be unexported (golint)
    • Line 104: warning: receiver name lan should be consistent with previous receiver name l for LAN (golint)
    • Line 108: warning: exported method LAN.WasMissed should have comment or be unexported (golint)
    • Line 108: warning: receiver name lan should be consistent with previous receiver name l for LAN (golint)
    • Line 122: warning: exported method LAN.Remove should have comment or be unexported (golint)
    • Line 122: warning: receiver name lan should be consistent with previous receiver name l for LAN (golint)
    • Line 137: warning: receiver name lan should be consistent with previous receiver name l for LAN (golint)
    • Line 159: warning: exported method LAN.Has should have comment or be unexported (golint)
    • Line 159: warning: receiver name lan should be consistent with previous receiver name l for LAN (golint)
    • Line 172: warning: exported method LAN.EachHost should have comment or be unexported (golint)
    • Line 172: warning: receiver name lan should be consistent with previous receiver name l for LAN (golint)
    • Line 181: warning: exported method LAN.AddIfNew should have comment or be unexported (golint)
    • Line 181: warning: receiver name lan should be consistent with previous receiver name l for LAN (golint)
    • Line 206: warning: exported method LAN.GetAlias should have comment or be unexported (golint)
    • Line 206: warning: receiver name lan should be consistent with previous receiver name l for LAN (golint)
    • Line 210: warning: exported method LAN.Clear should have comment or be unexported (golint)
    • Line 210: warning: receiver name lan should be consistent with previous receiver name l for LAN (golint)
    • bettercap-ng/modules/tcp_proxy/tcp_proxy.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 15: warning: exported type TcpProxy should have comment or be unexported (golint)
    • Line 25: warning: exported function NewTcpProxy should have comment or be unexported (golint)
    • Line 77: warning: exported method TcpProxy.Name should have comment or be unexported (golint)
    • Line 81: warning: exported method TcpProxy.Description should have comment or be unexported (golint)
    • Line 85: warning: exported method TcpProxy.Author should have comment or be unexported (golint)
    • Line 89: warning: exported method TcpProxy.Configure should have comment or be unexported (golint)
    • Line 128: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 223: warning: exported method TcpProxy.Start should have comment or be unexported (golint)
    • Line 243: warning: exported method TcpProxy.Stop should have comment or be unexported (golint)
    • bettercap-ng/packets/dot11.go
    • Line 39: warning: exported type Dot11ApConfig should have comment or be unexported (golint)
    • Line 46: warning: exported function Dot11Info should have comment or be unexported (golint)
    • Line 54: warning: error should be the last type when returning multiple items (golint)
    • Line 54: warning: exported function NewDot11Beacon should have comment or be unexported (golint)
    • Line 92: warning: error should be the last type when returning multiple items (golint)
    • Line 92: warning: exported function NewDot11ProbeRequest should have comment or be unexported (golint)
    • Line 118: warning: error should be the last type when returning multiple items (golint)
    • Line 118: warning: exported function NewDot11Deauth should have comment or be unexported (golint)
    • Line 134: warning: error should be the last type when returning multiple items (golint)
    • Line 134: warning: exported function NewDot11Auth should have comment or be unexported (golint)
    • Line 154: warning: error should be the last type when returning multiple items (golint)
    • Line 154: warning: exported function NewDot11AssociationRequest should have comment or be unexported (golint)
    • Line 185: warning: exported function Dot11Parse should have comment or be unexported (golint)
    • Line 209: warning: exported function Dot11ParseIDSSID should have comment or be unexported (golint)
    • Line 225: warning: exported function Dot11ParseEncryption should have comment or be unexported (golint)
    • Line 277: warning: exported function Dot11IsDataFor should have comment or be unexported (golint)
    • Line 286: warning: exported function Dot11ParseDSSet should have comment or be unexported (golint)
    • Line 303: warning: exported function Dot11ParseEAPOL should have comment or be unexported (golint)
    • bettercap-ng/network/net.go
    • Line 19: warning: exported var ErrNoIfaces should have comment or be unexported (golint)
    • Line 20: warning: exported var ErrNoGateway should have comment or be unexported (golint)
    • Line 23: warning: exported const MonitorModeAddress should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported var BroadcastHw should have comment or be unexported (golint)
    • Line 40: warning: exported function IsZeroMac should have comment or be unexported (golint)
    • Line 49: warning: exported function IsBroadcastMac should have comment or be unexported (golint)
    • Line 58: warning: exported function NormalizeMac should have comment or be unexported (golint)
    • Line 74: warning: exported function ParseMACs should have comment or be unexported (golint)
    • Line 94: warning: exported function ParseTargets should have comment or be unexported (golint)
    • Line 151: warning: exported function ParseEndpoints should have comment or be unexported (golint)
    • Line 238: warning: exported function FindInterface should have comment or be unexported (golint)
    • Line 269: warning: exported function SetWiFiRegion should have comment or be unexported (golint)
    • Line 280: warning: exported function ActivateInterface should have comment or be unexported (golint)
    • Line 284: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 293: warning: exported function SetInterfaceTxPower should have comment or be unexported (golint)
    • Line 310: warning: exported function GatewayProvidedByUser should have comment or be unexported (golint)
    • Line 316: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 324: warning: exported function ColorRSSI should have comment or be unexported (golint)
    • bettercap-ng/network/wifi_handshake.go
    • Line 10: warning: exported type Handshake should have comment or be unexported (golint)
    • Line 21: warning: exported function NewHandshake should have comment or be unexported (golint)
    • Line 30: warning: exported method Handshake.SetBeacon should have comment or be unexported (golint)
    • Line 40: warning: exported method Handshake.AddAndGetPMKID should have comment or be unexported (golint)
    • Line 66: warning: exported method Handshake.AddFrame should have comment or be unexported (golint)
    • Line 82: warning: exported method Handshake.AddExtra should have comment or be unexported (golint)
    • Line 88: warning: exported method Handshake.Complete should have comment or be unexported (golint)
    • Line 99: warning: exported method Handshake.Half should have comment or be unexported (golint)
    • Line 118: warning: exported method Handshake.HasPMKID should have comment or be unexported (golint)
    • Line 124: warning: exported method Handshake.Any should have comment or be unexported (golint)
    • Line 128: warning: exported method Handshake.NumUnsaved should have comment or be unexported (golint)
    • Line 134: warning: exported method Handshake.EachUnsavedPacket should have comment or be unexported (golint)
    • bettercap-ng/modules/c2/c2.go
    • Line 32: warning: exported type C2 should have comment or be unexported (golint)
    • Line 49: warning: exported function NewC2 should have comment or be unexported (golint)
    • Line 202: warning: exported method C2.Name should have comment or be unexported (golint)
    • Line 206: warning: exported method C2.Description should have comment or be unexported (golint)
    • Line 210: warning: exported method C2.Author should have comment or be unexported (golint)
    • Line 214: warning: exported method C2.Configure should have comment or be unexported (golint)
    • Line 356: warning: exported method C2.Start should have comment or be unexported (golint)
    • Line 378: warning: exported method C2.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/net_probe/net_probe.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported type Probes should have comment or be unexported (golint)
    • Line 20: warning: exported type Prober should have comment or be unexported (golint)
    • Line 27: warning: exported function NewProber should have comment or be unexported (golint)
    • Line 70: warning: exported method Prober.Name should have comment or be unexported (golint)
    • Line 74: warning: exported method Prober.Description should have comment or be unexported (golint)
    • Line 78: warning: exported method Prober.Author should have comment or be unexported (golint)
    • Line 82: warning: exported method Prober.Configure should have comment or be unexported (golint)
    • Line 100: warning: exported method Prober.Start should have comment or be unexported (golint)
    • Line 161: warning: exported method Prober.Stop should have comment or be unexported (golint)
    • bettercap-ng/modules/net_sniff/net_sniff_event.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: exported type SniffData should have comment or be unexported (golint)
    • Line 12: warning: exported type SnifferEvent should have comment or be unexported (golint)
    • Line 21: warning: exported function NewSnifferEvent should have comment or be unexported (golint)
    • Line 32: warning: exported method SnifferEvent.Push should have comment or be unexported (golint)
    • bettercap-ng/session/session.go
    • Line 33: warning: exported const HistoryFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported var I should have comment or be unexported (golint)
    • Line 45: warning: exported function ErrAlreadyStarted should have comment or be unexported (golint)
    • Line 49: warning: exported function ErrAlreadyStopped should have comment or be unexported (golint)
    • Line 53: warning: exported type UnknownCommandCallback should have comment or be unexported (golint)
    • Line 55: warning: exported type GPS should have comment or be unexported (golint)
    • Line 66: warning: exported const AliasesFile should have comment or be unexported (golint)
    • Line 70: warning: exported type Session should have comment or be unexported (golint)
    • Line 97: warning: exported function New should have comment or be unexported (golint)
    • Line 149: warning: exported method Session.Lock should have comment or be unexported (golint)
    • Line 155: warning: exported method Session.Unlock should have comment or be unexported (golint)
    • Line 161: warning: error should be the last type when returning multiple items (golint)
    • Line 161: warning: exported method Session.Module should have comment or be unexported (golint)
    • Line 170: warning: exported method Session.Close should have comment or be unexported (golint)
    • Line 213: warning: exported method Session.Register should have comment or be unexported (golint)
    • Line 218: warning: exported method Session.Start should have comment or be unexported (golint)
    • Line 327: warning: exported method Session.Skip should have comment or be unexported (golint)
    • Line 338: warning: exported method Session.FindMAC should have comment or be unexported (golint)
    • Line 347: warning: don't use underscores in Go names; var from_hw should be fromHw (golint)
    • Line 375: warning: exported method Session.IsOn should have comment or be unexported (golint)
    • Line 384: warning: exported method Session.Refresh should have comment or be unexported (golint)
    • Line 390: warning: exported method Session.ReadLine should have comment or be unexported (golint)
    • Line 395: warning: exported method Session.RunCaplet should have comment or be unexported (golint)
    • Line 424: warning: exported method Session.Run should have comment or be unexported (golint)
    • bettercap-ng/modules/update/update.go
    • Line 17: warning: exported type UpdateModule should have comment or be unexported (golint)
    • Line 22: warning: exported function NewUpdateModule should have comment or be unexported (golint)
    • Line 37: warning: exported method UpdateModule.Name should have comment or be unexported (golint)
    • Line 41: warning: exported method UpdateModule.Description should have comment or be unexported (golint)
    • Line 45: warning: exported method UpdateModule.Author should have comment or be unexported (golint)
    • Line 49: warning: exported method UpdateModule.Configure should have comment or be unexported (golint)
    • Line 53: warning: exported method UpdateModule.Stop should have comment or be unexported (golint)
    • Line 80: warning: exported method UpdateModule.Start should have comment or be unexported (golint)
    • bettercap-ng/packets/tcp.go
    • Line 8: warning: error should be the last type when returning multiple items (golint)
    • Line 8: warning: exported function NewTCPSyn should have comment or be unexported (golint)
    • Line 8: warning: don't use underscores in Go names; func parameter from_hw should be fromHw (golint)
    • Line 8: warning: don't use underscores in Go names; func parameter to_hw should be toHw (golint)
    • Line 33: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • bettercap-ng/session/module_handler.go
    • Line 17: warning: exported const IPv4Validator should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type ModuleHandler should have comment or be unexported (golint)
    • Line 32: warning: exported function NewModuleHandler should have comment or be unexported (golint)
    • Line 48: warning: exported method ModuleHandler.Complete should have comment or be unexported (golint)
    • Line 55: warning: exported method ModuleHandler.Help should have comment or be unexported (golint)
    • Line 59: warning: exported method ModuleHandler.Parse should have comment or be unexported (golint)
    • Line 73: warning: exported method ModuleHandler.Exec should have comment or be unexported (golint)
    • Line 79: warning: exported type JSONModuleHandler should have comment or be unexported (golint)
    • Line 85: warning: exported method ModuleHandler.MarshalJSON should have comment or be unexported (golint)
    • bettercap-ng/caplets/manager.go
    • Line 20: warning: exported function List should have comment or be unexported (golint)
    • Line 47: warning: exported function Load should have comment or be unexported (golint)
    • Line 80: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • bettercap-ng/js/log.go
    • Line 15: warning: don't use underscores in Go names; func log_debug should be logDebug (golint)
    • Line 22: warning: don't use underscores in Go names; func log_info should be logInfo (golint)
    • Line 29: warning: don't use underscores in Go names; func log_warn should be logWarn (golint)
    • Line 36: warning: don't use underscores in Go names; func log_error should be logError (golint)
    • Line 43: warning: don't use underscores in Go names; func log_fatal should be logFatal (golint)
    • bettercap-ng/modules/http_proxy/http_proxy_base_cookietracker.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported type CookieTracker should have comment or be unexported (golint)
    • Line 18: warning: exported function NewCookieTracker should have comment or be unexported (golint)
    • Line 27: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 38: warning: exported method CookieTracker.IsClean should have comment or be unexported (golint)
    • Line 62: warning: exported method CookieTracker.Track should have comment or be unexported (golint)
    • Line 68: warning: exported method CookieTracker.Expire should have comment or be unexported (golint)
    • bettercap-ng/session/session_core_handlers.go
    • Line 173: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 181: warning: don't use underscores in Go names; var prev_ns should be prevNs (golint)
    • bettercap-ng/modules/ble/ble_show_sort.go
    • Line 9: warning: exported type ByBLERSSISorter should have comment or be unexported (golint)
    • Line 20: warning: exported type ByBLEMacSorter should have comment or be unexported (golint)
    • Line 28: warning: exported type ByBLESeenSorter should have comment or be unexported (golint)
    • bettercap-ng/modules/syn_scan/syn_scan.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 30: warning: exported type SynScanner should have comment or be unexported (golint)
    • Line 44: warning: exported function NewSynScanner should have comment or be unexported (golint)
    • Line 101: warning: exported method SynScanner.Name should have comment or be unexported (golint)
    • Line 105: warning: exported method SynScanner.Description should have comment or be unexported (golint)
    • Line 109: warning: exported method SynScanner.Author should have comment or be unexported (golint)
    • Line 113: warning: exported method SynScanner.Configure should have comment or be unexported (golint)
    • Line 128: warning: exported method SynScanner.Start should have comment or be unexported (golint)
    • Line 154: warning: exported method SynScanner.Stop should have comment or be unexported (golint)

ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 2)