Preparing report...

Report for github.com/v-byte-cpu/sx

A+    Excellent!    Found 41 issues across 74 files

Tweet

gofmt100%

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

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

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.

No problems detected. Good job!


golint62%

Golint is a linter for Go source code.

    • sx/pkg/packet/receiver.go
    • Line 16: warning: exported type Processor should have comment or be unexported (golint)
    • Line 20: warning: exported type Reader should have comment or be unexported (golint)
    • Line 24: warning: exported type Receiver should have comment or be unexported (golint)
    • Line 28: warning: exported function NewReceiver should have comment or be unexported (golint)
    • sx/pkg/scan/socks5/socks5.go
    • Line 14: warning: exported const ScanType should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type ScanResult should have comment or be unexported (golint)
    • Line 33: warning: exported method ScanResult.ID should have comment or be unexported (golint)
    • Line 37: warning: exported method ScanResult.MarshalJSON should have comment or be unexported (golint)
    • Line 44: warning: exported type Scanner should have comment or be unexported (golint)
    • Line 52: warning: exported type ScannerOption should have comment or be unexported (golint)
    • Line 54: warning: exported function WithDialTimeout should have comment or be unexported (golint)
    • Line 60: warning: exported function WithDataTimeout should have comment or be unexported (golint)
    • Line 66: warning: exported function NewScanner should have comment or be unexported (golint)
    • Line 79: warning: exported method Scanner.Scan should have comment or be unexported (golint)
    • sx/pkg/packet/readwriter.go
    • Line 5: warning: exported type ReadWriter should have comment or be unexported (golint)
    • Line 10: warning: exported type Limiter should have comment or be unexported (golint)
    • Line 20: warning: exported function NewRateLimitReadWriter should have comment or be unexported (golint)
    • sx/pkg/scan/tcp/bpf.go
    • Line 10: warning: comment on exported const MaxPacketLength should be of the form "MaxPacketLength ..." (golint)
    • Line 14: warning: exported function BPFFilter should have comment or be unexported (golint)
    • Line 33: warning: exported function SYNACKBPFFilter should have comment or be unexported (golint)
    • sx/command/log/logger.go
    • Line 13: warning: exported type Logger should have comment or be unexported (golint)
    • Line 18: warning: exported type FlushWriter should have comment or be unexported (golint)
    • Line 23: warning: exported type ResultWriter should have comment or be unexported (golint)
    • Line 36: warning: exported type LoggerOption should have comment or be unexported (golint)
    • Line 38: warning: exported function JSON should have comment or be unexported (golint)
    • Line 44: warning: exported function Plain should have comment or be unexported (golint)
    • Line 50: warning: exported function FlushInterval should have comment or be unexported (golint)
    • Line 56: warning: exported function NewLogger should have comment or be unexported (golint)
    • sx/pkg/scan/icmp/bpf.go
    • Line 9: warning: comment on exported const MaxPacketLength should be of the form "MaxPacketLength ..." (golint)
    • Line 13: warning: exported function BPFFilter should have comment or be unexported (golint)
    • sx/pkg/scan/icmp/icmp.go
    • Line 15: warning: exported const ScanType should have comment or be unexported (golint)
    • Line 17: warning: exported type Response should have comment or be unexported (golint)
    • Line 22: warning: comment on exported type ScanResult should be of the form "ScanResult ..." (with optional leading article) (golint)
    • Line 34: warning: exported method ScanResult.ID should have comment or be unexported (golint)
    • Line 38: warning: exported type ScanMethod should have comment or be unexported (golint)
    • Line 47: warning: exported function NewScanMethod should have comment or be unexported (golint)
    • Line 56: warning: exported type PacketProcessor should have comment or be unexported (golint)
    • Line 67: warning: exported function NewPacketProcessor should have comment or be unexported (golint)
    • Line 80: warning: exported method PacketProcessor.Results should have comment or be unexported (golint)
    • Line 84: warning: exported method PacketProcessor.ProcessPacketData should have comment or be unexported (golint)
    • Line 108: warning: exported type PacketFiller should have comment or be unexported (golint)
    • Line 122: warning: exported type PacketFillerOption should have comment or be unexported (golint)
    • Line 124: warning: exported function WithTTL should have comment or be unexported (golint)
    • Line 130: warning: exported function WithIPTotalLength should have comment or be unexported (golint)
    • Line 136: warning: exported function WithIPProtocol should have comment or be unexported (golint)
    • Line 142: warning: exported function WithIPFlags should have comment or be unexported (golint)
    • Line 148: warning: exported function WithType should have comment or be unexported (golint)
    • Line 154: warning: exported function WithCode should have comment or be unexported (golint)
    • Line 160: warning: exported function WithPayload should have comment or be unexported (golint)
    • Line 168: warning: exported function WithVPNmode should have comment or be unexported (golint)
    • Line 174: warning: exported function NewPacketFiller should have comment or be unexported (golint)
    • Line 192: warning: exported method PacketFiller.Fill should have comment or be unexported (golint)
    • sx/pkg/scan/docker/docker.go
    • Line 17: warning: exported const ScanType should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type ScanResult should have comment or be unexported (golint)
    • Line 35: warning: exported method ScanResult.ID should have comment or be unexported (golint)
    • Line 39: warning: exported method ScanResult.MarshalJSON should have comment or be unexported (golint)
    • Line 46: warning: exported type Scanner should have comment or be unexported (golint)
    • Line 55: warning: exported type ScannerOption should have comment or be unexported (golint)
    • Line 57: warning: exported function WithDataTimeout should have comment or be unexported (golint)
    • Line 63: warning: exported function NewScanner should have comment or be unexported (golint)
    • Line 84: warning: exported method Scanner.Scan should have comment or be unexported (golint)
    • sx/pkg/scan/arp/bpf.go
    • Line 9: warning: comment on exported const MaxPacketLength should be of the form "MaxPacketLength ..." (golint)
    • Line 14: warning: exported function BPFFilter should have comment or be unexported (golint)
    • sx/pkg/scan/arp/cache.go
    • Line 15: warning: exported type Cache should have comment or be unexported (golint)
    • Line 20: warning: exported function NewCache should have comment or be unexported (golint)
    • Line 24: warning: exported method Cache.Put should have comment or be unexported (golint)
    • Line 30: warning: exported method Cache.Get should have comment or be unexported (golint)
    • Line 36: warning: exported method Cache.Delete should have comment or be unexported (golint)
    • Line 42: warning: exported function FillCache should have comment or be unexported (golint)
    • Line 67: warning: exported function NewCacheRequestGenerator should have comment or be unexported (golint)
    • sx/pkg/scan/udp/udp.go
    • Line 13: warning: exported const ScanType should have comment or be unexported (golint)
    • Line 28: warning: exported function NewScanMethod should have comment or be unexported (golint)
    • Line 37: warning: exported type PacketFiller should have comment or be unexported (golint)
    • Line 49: warning: exported type PacketFillerOption should have comment or be unexported (golint)
    • Line 51: warning: exported function WithTTL should have comment or be unexported (golint)
    • Line 57: warning: exported function WithIPTotalLength should have comment or be unexported (golint)
    • Line 63: warning: exported function WithIPProtocol should have comment or be unexported (golint)
    • Line 69: warning: exported function WithIPFlags should have comment or be unexported (golint)
    • Line 75: warning: exported function WithPayload should have comment or be unexported (golint)
    • Line 83: warning: exported function WithVPNmode should have comment or be unexported (golint)
    • Line 89: warning: exported function NewPacketFiller should have comment or be unexported (golint)
    • Line 102: warning: exported method PacketFiller.Fill should have comment or be unexported (golint)
    • sx/pkg/scan/generator.go
    • Line 13: warning: exported type PacketFiller should have comment or be unexported (golint)
    • Line 17: warning: exported type PacketGenerator should have comment or be unexported (golint)
    • Line 21: warning: exported function NewPacketGenerator should have comment or be unexported (golint)
    • Line 65: warning: exported function NewPacketMultiGenerator should have comment or be unexported (golint)
    • Line 83: warning: comment on exported function MergeBufferDataChan should be of the form "MergeBufferDataChan ..." (golint)
    • sx/pkg/packet/afpacket/readwriter.go
    • Line 14: warning: exported type Source should have comment or be unexported (golint)
    • Line 22: warning: exported function NewPacketSource should have comment or be unexported (golint)
    • Line 34: warning: comment on exported method Source.SetBPFFilter should be of the form "SetBPFFilter ..." (golint)
    • Line 55: warning: exported method Source.Close should have comment or be unexported (golint)
    • Line 59: warning: exported method Source.ReadPacketData should have comment or be unexported (golint)
    • Line 64: warning: exported method Source.WritePacketData should have comment or be unexported (golint)
    • sx/command/log/unique_logger.go
    • Line 9: warning: exported type UniqueLogger should have comment or be unexported (golint)
    • Line 13: warning: exported function NewUniqueLogger should have comment or be unexported (golint)
    • Line 21: warning: exported method UniqueLogger.LogResults should have comment or be unexported (golint)
    • sx/pkg/scan/arp/arp.go
    • Line 15: warning: exported type ScanMethod should have comment or be unexported (golint)
    • Line 29: warning: comment on exported type ScanResult should be of the form "ScanResult ..." (with optional leading article) (golint)
    • Line 40: warning: exported method ScanResult.ID should have comment or be unexported (golint)
    • Line 44: warning: exported function NewScanMethod should have comment or be unexported (golint)
    • Line 55: warning: exported method ScanMethod.Results should have comment or be unexported (golint)
    • Line 59: warning: exported method ScanMethod.ProcessPacketData should have comment or be unexported (golint)
    • Line 78: warning: exported type PacketFiller should have comment or be unexported (golint)
    • Line 80: warning: exported function NewPacketFiller should have comment or be unexported (golint)
    • Line 84: warning: exported method PacketFiller.Fill should have comment or be unexported (golint)
    • sx/pkg/packet/memory.go
    • Line 15: warning: exported function NewSerializeBuffer should have comment or be unexported (golint)
    • Line 20: warning: exported function FreeSerializeBuffer should have comment or be unexported (golint)
    • sx/pkg/scan/elastic/elastic.go
    • Line 15: warning: exported const ScanType should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type ScanResult should have comment or be unexported (golint)
    • Line 32: warning: exported method ScanResult.ID should have comment or be unexported (golint)
    • Line 36: warning: exported method ScanResult.MarshalJSON should have comment or be unexported (golint)
    • Line 43: warning: exported type Scanner should have comment or be unexported (golint)
    • Line 51: warning: exported type ScannerOption should have comment or be unexported (golint)
    • Line 53: warning: exported function WithDataTimeout should have comment or be unexported (golint)
    • Line 59: warning: exported function NewScanner should have comment or be unexported (golint)
    • Line 81: warning: exported method Scanner.Scan should have comment or be unexported (golint)
    • sx/pkg/scan/tcp/tcp.go
    • Line 16: warning: exported const SYNScanType should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: comment on exported type ScanResult should be of the form "ScanResult ..." (with optional leading article) (golint)
    • Line 35: warning: exported method ScanResult.ID should have comment or be unexported (golint)
    • Line 39: warning: exported type PacketFilterFunc should have comment or be unexported (golint)
    • Line 40: warning: exported type PacketFlagsFunc should have comment or be unexported (golint)
    • Line 42: warning: exported function TrueFilter should have comment or be unexported (golint)
    • Line 46: warning: exported function EmptyFlags should have comment or be unexported (golint)
    • Line 50: warning: exported function AllFlags should have comment or be unexported (golint)
    • Line 84: warning: exported type ScanMethod should have comment or be unexported (golint)
    • Line 102: warning: exported type ScanMethodOption should have comment or be unexported (golint)
    • Line 104: warning: exported function WithPacketFilterFunc should have comment or be unexported (golint)
    • Line 110: warning: exported function WithPacketFlagsFunc should have comment or be unexported (golint)
    • Line 116: warning: exported function WithScanVPNmode should have comment or be unexported (golint)
    • Line 122: warning: exported function NewScanMethod should have comment or be unexported (golint)
    • Line 146: warning: exported method ScanMethod.Results should have comment or be unexported (golint)
    • Line 150: warning: exported method ScanMethod.ProcessPacketData should have comment or be unexported (golint)
    • Line 173: warning: exported type PacketFiller should have comment or be unexported (golint)
    • Line 190: warning: exported type PacketFillerOption should have comment or be unexported (golint)
    • Line 192: warning: exported function WithSYN should have comment or be unexported (golint)
    • Line 198: warning: exported function WithACK should have comment or be unexported (golint)
    • Line 204: warning: exported function WithFIN should have comment or be unexported (golint)
    • Line 210: warning: exported function WithRST should have comment or be unexported (golint)
    • Line 216: warning: exported function WithPSH should have comment or be unexported (golint)
    • Line 222: warning: exported function WithURG should have comment or be unexported (golint)
    • Line 228: warning: exported function WithECE should have comment or be unexported (golint)
    • Line 234: warning: exported function WithCWR should have comment or be unexported (golint)
    • Line 240: warning: exported function WithNS should have comment or be unexported (golint)
    • Line 246: warning: exported function WithFillerVPNmode should have comment or be unexported (golint)
    • Line 252: warning: exported function NewPacketFiller should have comment or be unexported (golint)
    • Line 260: warning: exported method PacketFiller.Fill should have comment or be unexported (golint)
    • sx/pkg/scan/engine.go
    • Line 14: warning: exported type PortRange should have comment or be unexported (golint)
    • Line 19: warning: exported type Range should have comment or be unexported (golint)
    • Line 27: warning: exported type Engine should have comment or be unexported (golint)
    • Line 31: warning: exported type Resulter should have comment or be unexported (golint)
    • Line 35: warning: exported type EngineResulter should have comment or be unexported (golint)
    • Line 45: warning: exported function NewEngineResulter should have comment or be unexported (golint)
    • Line 49: warning: exported type PacketSource should have comment or be unexported (golint)
    • Line 53: warning: exported function NewPacketSource should have comment or be unexported (golint)
    • Line 73: warning: exported type PacketEngine should have comment or be unexported (golint)
    • Line 79: warning: exported function NewPacketEngine should have comment or be unexported (golint)
    • Line 83: warning: exported method PacketEngine.Start should have comment or be unexported (golint)
    • Line 120: warning: exported type PacketMethod should have comment or be unexported (golint)
    • Line 126: warning: exported function SetupPacketEngine should have comment or be unexported (golint)
    • Line 133: warning: exported type Scanner should have comment or be unexported (golint)
    • Line 137: warning: exported type RateLimiter should have comment or be unexported (golint)
    • Line 147: warning: exported function NewRateLimitScanner should have comment or be unexported (golint)
    • Line 156: warning: exported type GenericEngine should have comment or be unexported (golint)
    • Line 166: warning: exported type GenericEngineOption should have comment or be unexported (golint)
    • Line 168: warning: exported function WithScanWorkerCount should have comment or be unexported (golint)
    • Line 174: warning: exported function NewScanEngine should have comment or be unexported (golint)
    • Line 188: warning: exported method GenericEngine.Results should have comment or be unexported (golint)
    • Line 192: warning: exported method GenericEngine.Start should have comment or be unexported (golint)
    • sx/pkg/scan/request.go
    • Line 17: warning: exported var ErrPortRange should have comment or be unexported (golint)
    • Line 24: warning: exported type Request should have comment or be unexported (golint)
    • Line 34: warning: exported type PortGetter should have comment or be unexported (golint)
    • Line 38: warning: exported type WrapPort should have comment or be unexported (golint)
    • Line 40: warning: exported method WrapPort.GetPort should have comment or be unexported (golint)
    • Line 52: warning: exported type PortGenerator should have comment or be unexported (golint)
    • Line 56: warning: exported function NewPortGenerator should have comment or be unexported (golint)
    • Line 107: warning: exported type IPGetter should have comment or be unexported (golint)
    • Line 111: warning: exported type WrapIP should have comment or be unexported (golint)
    • Line 113: warning: exported method WrapIP.GetIP should have comment or be unexported (golint)
    • Line 117: warning: exported type IPGenerator should have comment or be unexported (golint)
    • Line 121: warning: exported function NewIPGenerator should have comment or be unexported (golint)
    • Line 161: warning: exported type RequestGenerator should have comment or be unexported (golint)
    • Line 165: warning: exported function NewIPPortGenerator should have comment or be unexported (golint)
    • Line 215: warning: exported function NewIPRequestGenerator should have comment or be unexported (golint)
    • Line 242: warning: comment on exported type IPPort should be of the form "IPPort ..." (with optional leading article) (golint)
    • Line 252: warning: exported type OpenFileFunc should have comment or be unexported (golint)
    • Line 254: warning: exported function NewFileIPPortGenerator should have comment or be unexported (golint)
    • Line 311: warning: exported function NewFileIPGenerator should have comment or be unexported (golint)
    • Line 358: warning: exported function NewLiveRequestGenerator should have comment or be unexported (golint)
    • Line 396: warning: exported type IPContainer should have comment or be unexported (golint)
    • Line 405: warning: exported function NewFilterIPRequestGenerator should have comment or be unexported (golint)
    • sx/pkg/scan/result.go
    • Line 9: warning: exported type Result should have comment or be unexported (golint)
    • Line 15: warning: exported type ResultChan should have comment or be unexported (golint)
    • Line 26: warning: exported function NewResultChan should have comment or be unexported (golint)
    • sx/pkg/ip/ip.go
    • Line 9: warning: exported var ErrInvalidAddr should have comment or be unexported (golint)
    • Line 11: warning: exported function ParseIPNet should have comment or be unexported (golint)
    • Line 24: warning: exported function GetInterfaceIP should have comment or be unexported (golint)
    • Line 35: warning: exported function GetLocalSubnetInterface should have comment or be unexported (golint)
    • Line 52: warning: exported function GetLocalSubnetInterfaceIP should have comment or be unexported (golint)
    • sx/pkg/ip/ip_linux.go
    • Line 11: warning: exported function GetDefaultInterface should have comment or be unexported (golint)
    • Line 32: warning: exported function GetDefaultGatewayIP should have comment or be unexported (golint)
    • sx/pkg/packet/sender.go
    • Line 11: warning: exported type BufferData should have comment or be unexported (golint)
    • Line 16: warning: exported type Sender should have comment or be unexported (golint)
    • Line 20: warning: exported type Writer should have comment or be unexported (golint)
    • Line 24: warning: exported function NewSender should have comment or be unexported (golint)
    • sx/pkg/scan/socks5/message.go
    • Line 8: warning: exported const MethodNoAuth should have comment or be unexported (golint)
    • Line 24: warning: exported function NewMethodRequest should have comment or be unexported (golint)
    • Line 32: warning: exported method MethodRequest.Len should have comment or be unexported (golint)
    • Line 36: warning: exported method MethodRequest.WriteTo should have comment or be unexported (golint)
    • Line 57: warning: exported method MethodReply.Len should have comment or be unexported (golint)
    • Line 61: warning: exported method MethodReply.ReadFrom should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign75%

IneffAssign detects ineffectual assignments in Go code.

    • sx/pkg/packet/sender_test.go
    • Line 21: warning: undeclared name: NewMockWriter (ineffassign)
    • Line 46: warning: undeclared name: NewMockWriter (ineffassign)
    • Line 82: warning: undeclared name: NewMockWriter (ineffassign)
    • Line 104: warning: undeclared name: NewMockWriter (ineffassign)
    • Line 129: warning: undeclared name: NewMockWriter (ineffassign)
    • Line 147: warning: undeclared name: NewMockWriter (ineffassign)
    • sx/pkg/scan/engine_test.go
    • Line 86: warning: undeclared name: NewMockPacketSource (ineffassign)
    • Line 95: warning: undeclared name: NewMockSender (ineffassign)
    • Line 101: warning: undeclared name: NewMockReceiver (ineffassign)
    • Line 133: warning: undeclared name: NewMockRequestGenerator (ineffassign)
    • Line 134: warning: undeclared name: NewMockPacketGenerator (ineffassign)
    • Line 167: warning: undeclared name: NewMockRequestGenerator (ineffassign)
    • Line 168: warning: undeclared name: NewMockPacketGenerator (ineffassign)
    • Line 208: warning: undeclared name: NewMockScanner (ineffassign)
    • Line 244: warning: undeclared name: NewMockRequestGenerator (ineffassign)
    • Line 245: warning: undeclared name: NewMockScanner (ineffassign)
    • Line 267: warning: undeclared name: NewMockRequestGenerator (ineffassign)
    • Line 268: warning: undeclared name: NewMockScanner (ineffassign)
    • Line 293: warning: undeclared name: NewMockRequestGenerator (ineffassign)
    • Line 294: warning: undeclared name: NewMockScanner (ineffassign)
    • Line 321: warning: undeclared name: NewMockRequestGenerator (ineffassign)
    • Line 322: warning: undeclared name: NewMockScanner (ineffassign)
    • sx/pkg/scan/generator_test.go
    • Line 34: warning: undeclared name: NewMockPacketFiller (ineffassign)
    • Line 48: warning: undeclared name: NewMockPacketFiller (ineffassign)
    • Line 65: warning: undeclared name: NewMockPacketFiller (ineffassign)
    • Line 90: warning: undeclared name: NewMockPacketFiller (ineffassign)
    • Line 116: warning: undeclared name: NewMockPacketFiller (ineffassign)
    • Line 147: warning: undeclared name: NewMockPacketFiller (ineffassign)
    • Line 177: warning: undeclared name: NewMockPacketFiller (ineffassign)
    • Line 198: warning: undeclared name: NewMockPacketFiller (ineffassign)
    • Line 222: warning: undeclared name: NewMockPacketFiller (ineffassign)
    • Line 243: warning: undeclared name: NewMockPacketFiller (ineffassign)
    • Line 264: warning: undeclared name: NewMockPacketFiller (ineffassign)
    • Line 281: warning: undeclared name: NewMockPacketFiller (ineffassign)
    • sx/pkg/scan/tcp/tcp_test.go
    • Line 294: warning: result (variable of type scan.Result) cannot have dynamic type *ScanResult (missing method MarshalJSON) (ineffassign)
    • Line 360: warning: result (variable of type scan.Result) cannot have dynamic type *ScanResult (missing method MarshalJSON) (ineffassign)
    • sx/pkg/scan/udp/udp_test.go
    • Line 292: warning: result (variable of type scan.Result) cannot have dynamic type *icmp.ScanResult (missing method MarshalJSON) (ineffassign)
    • Line 355: warning: result (variable of type scan.Result) cannot have dynamic type *icmp.ScanResult (missing method MarshalJSON) (ineffassign)
    • sx/pkg/scan/arp/arp.go
    • Line 70: warning: cannot use &(ScanResult literal) (value of type *ScanResult) as scan.Result value in argument to s.results.Put: missing method MarshalJSON (ineffassign)
    • Line 70: warning: cannot use &(ScanResult literal) (value of type *ScanResult) as scan.Result value in argument to s.results.Put: missing method MarshalJSON (ineffassign)
    • sx/command/log/unique_logger_test.go
    • Line 33: warning: cannot use newScanResult(net.IPv4(192, 168, 0, 3).To4()) (value of type *arp.ScanResult) as scan.Result value in array or slice literal: missing method MarshalJSON (ineffassign)
    • Line 43: warning: cannot use newScanResult(net.IPv4(192, 168, 0, 3).To4()) (value of type *arp.ScanResult) as scan.Result value in array or slice literal: missing method MarshalJSON (ineffassign)
    • Line 44: warning: cannot use newScanResult(net.IPv4(192, 168, 0, 5).To4()) (value of type *arp.ScanResult) as scan.Result value in array or slice literal: missing method MarshalJSON (ineffassign)
    • Line 51: warning: cannot use newScanResult(net.IPv4(192, 168, 0, 3).To4()) (value of type *arp.ScanResult) as scan.Result value in array or slice literal: missing method MarshalJSON (ineffassign)
    • Line 52: warning: cannot use newScanResult(net.IPv4(192, 168, 0, 3).To4()) (value of type *arp.ScanResult) as scan.Result value in array or slice literal: missing method MarshalJSON (ineffassign)
    • Line 62: warning: cannot use newScanResult(net.IPv4(192, 168, 0, 3).To4()) (value of type *arp.ScanResult) as scan.Result value in array or slice literal: missing method MarshalJSON (ineffassign)
    • Line 63: warning: cannot use newScanResult(net.IPv4(192, 168, 0, 5).To4()) (value of type *arp.ScanResult) as scan.Result value in array or slice literal: missing method MarshalJSON (ineffassign)
    • Line 64: warning: cannot use newScanResult(net.IPv4(192, 168, 0, 3).To4()) (value of type *arp.ScanResult) as scan.Result value in array or slice literal: missing method MarshalJSON (ineffassign)
    • sx/pkg/scan/icmp/icmp.go
    • Line 92: warning: cannot use &(ScanResult literal) (value of type *ScanResult) as scan.Result value in argument to p.results.Put: missing method MarshalJSON (ineffassign)
    • Line 92: warning: cannot use &(ScanResult literal) (value of type *ScanResult) as scan.Result value in argument to p.results.Put: missing method MarshalJSON (ineffassign)
    • sx/pkg/packet/receiver_test.go
    • Line 61: warning: undeclared name: NewMockReader (ineffassign)
    • Line 63: warning: undeclared name: NewMockProcessor (ineffassign)
    • Line 81: warning: undeclared name: NewMockReader (ineffassign)
    • Line 87: warning: undeclared name: NewMockProcessor (ineffassign)
    • Line 103: warning: undeclared name: NewMockReader (ineffassign)
    • Line 109: warning: undeclared name: NewMockProcessor (ineffassign)
    • Line 147: warning: undeclared name: NewMockReader (ineffassign)
    • Line 154: warning: undeclared name: NewMockProcessor (ineffassign)
    • Line 174: warning: undeclared name: NewMockReader (ineffassign)
    • Line 181: warning: undeclared name: NewMockProcessor (ineffassign)
    • Line 200: warning: undeclared name: NewMockReader (ineffassign)
    • Line 203: warning: undeclared name: NewMockProcessor (ineffassign)
    • sx/pkg/scan/request.go
    • Line 272: warning: entry.UnmarshalJSON undefined (type IPPort has no field or method UnmarshalJSON) (ineffassign)
    • Line 327: warning: entry.UnmarshalJSON undefined (type IPPort has no field or method UnmarshalJSON) (ineffassign)
    • Line 272: warning: entry.UnmarshalJSON undefined (type IPPort has no field or method UnmarshalJSON) (ineffassign)
    • Line 327: warning: entry.UnmarshalJSON undefined (type IPPort has no field or method UnmarshalJSON) (ineffassign)
    • sx/pkg/scan/request_test.go
    • Line 470: warning: undeclared name: NewMockIPGenerator (ineffassign)
    • Line 490: warning: undeclared name: NewMockPortGenerator (ineffassign)
    • Line 532: warning: undeclared name: NewMockIPGenerator (ineffassign)
    • Line 538: warning: undeclared name: NewMockPortGenerator (ineffassign)
    • Line 972: warning: undeclared name: NewMockRequestGenerator (ineffassign)
    • Line 985: warning: undeclared name: NewMockIPContainer (ineffassign)
    • Line 1015: warning: undeclared name: NewMockRequestGenerator (ineffassign)
    • Line 1023: warning: undeclared name: NewMockIPContainer (ineffassign)
    • Line 1040: warning: undeclared name: NewMockRequestGenerator (ineffassign)
    • Line 1051: warning: undeclared name: NewMockIPContainer (ineffassign)
    • sx/pkg/scan/tcp/tcp.go
    • Line 159: warning: cannot use &(ScanResult literal) (value of type *ScanResult) as scan.Result value in argument to s.results.Put: missing method MarshalJSON (ineffassign)
    • Line 159: warning: cannot use &(ScanResult literal) (value of type *ScanResult) as scan.Result value in argument to s.results.Put: missing method MarshalJSON (ineffassign)
    • sx/pkg/scan/arp/cache.go
    • Line 46: warning: entry.UnmarshalJSON undefined (type ScanResult has no field or method UnmarshalJSON) (ineffassign)
    • Line 46: warning: entry.UnmarshalJSON undefined (type ScanResult has no field or method UnmarshalJSON) (ineffassign)
    • sx/command/log/logger_test.go
    • Line 39: warning: cannot use newScanResult(net.IPv4(192, 168, 0, 3).To4()) (value of type *arp.ScanResult) as scan.Result value in argument to scanResultToJSON: missing method MarshalJSON (ineffassign)
    • Line 47: warning: cannot use newScanResult(net.IPv4(192, 168, 0, 3).To4()) (value of type *arp.ScanResult) as scan.Result value in argument to scanResultToJSON: missing method MarshalJSON (ineffassign)
    • Line 48: warning: cannot use newScanResult(net.IPv4(192, 168, 0, 5).To4()) (value of type *arp.ScanResult) as scan.Result value in argument to scanResultToJSON: missing method MarshalJSON (ineffassign)
    • Line 66: warning: cannot use result (variable of type *arp.ScanResult) as scan.Result value in send: missing method MarshalJSON (ineffassign)
    • Line 126: warning: cannot use result (variable of type *arp.ScanResult) as scan.Result value in send: missing method MarshalJSON (ineffassign)
    • sx/pkg/scan/icmp/icmp_test.go
    • Line 265: warning: result (variable of type scan.Result) cannot have dynamic type *ScanResult (missing method MarshalJSON) (ineffassign)
    • Line 329: warning: result (variable of type scan.Result) cannot have dynamic type *ScanResult (missing method MarshalJSON) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!