Preparing report...

Report for github.com/projectdiscovery/naabu

A+    Excellent!    Found 10 issues across 24 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!


gocyclo87%

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.

    • naabu/v2/pkg/runner/runner.go
    • Line 95: warning: cyclomatic complexity 18 of function (*Runner).RunEnumeration() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 17 of function (*Runner).handleOutput() is high (> 15) (gocyclo)

golint70%

Golint is a linter for Go source code.

    • naabu/v2/pkg/runner/runner.go
    • Line 217: warning: exported method Runner.PickSubnetIP should have comment or be unexported (golint)
    • Line 221: warning: exported method Runner.PickPort should have comment or be unexported (golint)
    • Line 225: warning: exported method Runner.ConnectVerification should have comment or be unexported (golint)
    • Line 243: warning: exported method Runner.BackgroundWorkers should have comment or be unexported (golint)
    • Line 247: warning: exported method Runner.RawSocketEnumeration should have comment or be unexported (golint)
    • Line 297: warning: exported method Runner.SetSourceIPAndInterface should have comment or be unexported (golint)
    • naabu/v2/pkg/runner/targets.go
    • Line 18: warning: exported method Runner.Load should have comment or be unexported (golint)
    • Line 85: warning: exported method Runner.PreProcessTargets should have comment or be unexported (golint)
    • Line 107: warning: exported method Runner.AddTarget should have comment or be unexported (golint)
    • naabu/v2/pkg/scan/scan.go
    • Line 35: warning: exported const Init should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported const SYN should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported type Scanner should have comment or be unexported (golint)
    • naabu/v2/pkg/scan/scan_unix.go
    • Line 26: warning: exported type Handlers should have comment or be unexported (golint)
    • Line 31: warning: exported function NewScannerUnix should have comment or be unexported (golint)
    • Line 52: warning: exported function SetupHandlerUnix should have comment or be unexported (golint)
    • Line 97: warning: exported function TCPReadWorkerPCAPUnix should have comment or be unexported (golint)
    • Line 160: warning: comment on exported function CleanupHandlersUnix should be of the form "CleanupHandlersUnix ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!