Preparing report...

Report for github.com/tnpitsecurity/ligolo-ng

A+    Excellent!    Found 13 issues across 22 files

Tweet

gofmt95%

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


go_vet100%

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

No problems detected. Good job!


gocyclo86%

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.


golint50%

Golint is a linter for Go source code.

    • ligolo-ng/pkg/protocol/packets.go
    • Line 15: warning: exported const MessageInfoRequest should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported const TransportTCP should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported const Networkv4 should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: comment on exported type ListenerSockResponsePacket should be of the form "ListenerSockResponsePacket ..." (with optional leading article) (golint)
    • ligolo-ng/cmd/proxy/app/app.go
    • Line 21: warning: exported var AgentList should have comment or be unexported (golint)
    • Line 22: warning: exported var AgentListMutex should have comment or be unexported (golint)
    • Line 23: warning: exported var ListenerList should have comment or be unexported (golint)
    • Line 24: warning: exported var ListenerListMutex should have comment or be unexported (golint)
    • Line 27: warning: exported var ErrInvalidAgent should have comment or be unexported (golint)
    • Line 33: warning: exported const MaxConnectionHandler should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported function RegisterAgent should have comment or be unexported (golint)
    • Line 43: warning: exported function Run should have comment or be unexported (golint)
    • ligolo-ng/pkg/proxy/agent.go
    • Line 10: warning: exported var AgentCounter should have comment or be unexported (golint)
    • Line 11: warning: exported var ListenerCounter should have comment or be unexported (golint)
    • Line 13: warning: exported type LigoloAgent should have comment or be unexported (golint)
    • Line 21: warning: exported type Listener should have comment or be unexported (golint)
    • Line 35: warning: exported function NewAgent should have comment or be unexported (golint)
    • ligolo-ng/pkg/proxy/controller.go
    • Line 19: warning: exported type Controller should have comment or be unexported (golint)
    • Line 28: warning: exported type ControllerConfig should have comment or be unexported (golint)
    • Line 37: warning: exported function New should have comment or be unexported (golint)
    • Line 41: warning: exported method Controller.WaitForReady should have comment or be unexported (golint)
    • Line 46: warning: exported method Controller.ListenAndServe should have comment or be unexported (golint)
    • ligolo-ng/pkg/proxy/netstack/pool.go
    • Line 8: warning: exported type ConnPool should have comment or be unexported (golint)
    • Line 14: warning: exported function NewConnPool should have comment or be unexported (golint)
    • Line 17: warning: exported method ConnPool.Add should have comment or be unexported (golint)
    • Line 30: warning: exported method ConnPool.Close should have comment or be unexported (golint)
    • Line 45: warning: exported method ConnPool.Closed should have comment or be unexported (golint)
    • Line 54: warning: exported method ConnPool.Get should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!