Preparing report...

Report for github.com/iDigitalFlame/xmt

(v0.4.2)

A+    Excellent!    Found 63 issues across 319 files

Tweet

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!


gofmt100%

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

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo80%

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.

    • c2/task/io.go
    • Line 364: warning: cyclomatic complexity 27 of function taskSystemIo() is high (> 15) (gocyclo)
    • Line 288: warning: cyclomatic complexity 16 of function taskPullExec() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 16 of function taskNetcat() is high (> 15) (gocyclo)
    • c2/proxy.go
    • Line 90: warning: cyclomatic complexity 21 of function (*Proxy).listen() is high (> 15) (gocyclo)
    • c2/mux.go
    • Line 224: warning: cyclomatic complexity 55 of function muxHandleInternal() is high (> 15) (gocyclo)
    • Line 463: warning: cyclomatic complexity 22 of function readCallable() is high (> 15) (gocyclo)
    • Line 134: warning: cyclomatic complexity 18 of function muxHandleScript() is high (> 15) (gocyclo)
    • c2/vars.go
    • Line 280: warning: cyclomatic complexity 40 of function receive() is high (> 15) (gocyclo)
    • Line 169: warning: cyclomatic complexity 34 of function receiveSingle() is high (> 15) (gocyclo)
    • Line 544: warning: cyclomatic complexity 24 of function nextPacket() is high (> 15) (gocyclo)
    • c2/session.go
    • Line 835: warning: cyclomatic complexity 33 of function (*Session).MigrateProfile() is high (> 15) (gocyclo)
    • Line 114: warning: cyclomatic complexity 27 of function (*Session).listen() is high (> 15) (gocyclo)
    • Line 484: warning: cyclomatic complexity 20 of function (*Session).session() is high (> 15) (gocyclo)
    • Line 749: warning: cyclomatic complexity 19 of function (*Session).SpawnProfile() is high (> 15) (gocyclo)
    • Line 651: warning: cyclomatic complexity 18 of function (*Session).write() is high (> 15) (gocyclo)
    • Line 61: warning: cyclomatic complexity 17 of function (*Session).wait() is high (> 15) (gocyclo)
    • man/link.go
    • Line 162: warning: cyclomatic complexity 27 of function LinkerFromName() is high (> 15) (gocyclo)
    • cmd/exec_nix.go
    • Line 174: warning: cyclomatic complexity 16 of function (*executable).start() is high (> 15) (gocyclo)
    • c2/transform/dns.go
    • Line 219: warning: cyclomatic complexity 23 of function encodePacket() is high (> 15) (gocyclo)
    • Line 111: warning: cyclomatic complexity 17 of function decodePacket() is high (> 15) (gocyclo)
    • c2/c2.go
    • Line 195: warning: cyclomatic complexity 58 of function LoadContext() is high (> 15) (gocyclo)
    • c2/zl_listener.go
    • Line 261: warning: cyclomatic complexity 28 of function (*Listener).talk() is high (> 15) (gocyclo)
    • Line 367: warning: cyclomatic complexity 26 of function (*Listener).talkSub() is high (> 15) (gocyclo)
    • Line 56: warning: cyclomatic complexity 22 of function (*Listener).listen() is high (> 15) (gocyclo)
    • com/packet.go
    • Line 208: warning: cyclomatic complexity 25 of function (*Packet).readHeader() is high (> 15) (gocyclo)
    • Line 114: warning: cyclomatic complexity 16 of function (*Packet).readBody() is high (> 15) (gocyclo)
    • device/os.go
    • Line 86: warning: cyclomatic complexity 43 of function Expand() is high (> 15) (gocyclo)
    • c2/types.go
    • Line 118: warning: cyclomatic complexity 29 of function (event).process() is high (> 15) (gocyclo)
    • com/udp.go
    • Line 352: warning: cyclomatic complexity 24 of function (*udpStream).Read() is high (> 15) (gocyclo)
    • Line 242: warning: cyclomatic complexity 18 of function (*udpConn).Read() is high (> 15) (gocyclo)
    • Line 120: warning: cyclomatic complexity 17 of function (*udpListener).listen() is high (> 15) (gocyclo)
    • cmd/list_nix.go
    • Line 26: warning: cyclomatic complexity 22 of function readProcStats() is high (> 15) (gocyclo)
    • cmd/thread_windows.go
    • Line 253: warning: cyclomatic complexity 19 of function (*thread).Start() is high (> 15) (gocyclo)
    • Line 125: warning: cyclomatic complexity 17 of function (*thread).wait() is high (> 15) (gocyclo)
    • com/v_no_impant.go
    • Line 90: warning: cyclomatic complexity 34 of function (*Packet).String() is high (> 15) (gocyclo)
    • Line 26: warning: cyclomatic complexity 16 of function (Flag).String() is high (> 15) (gocyclo)
    • data/crypto/cbk.go
    • Line 255: warning: cyclomatic complexity 33 of function (*CBK).blockIndex() is high (> 15) (gocyclo)
    • Line 360: warning: cyclomatic complexity 17 of function (*CBK).Read() is high (> 15) (gocyclo)
    • c2/channel.go
    • Line 420: warning: cyclomatic complexity 32 of function (*conn).processMultiple() is high (> 15) (gocyclo)
    • Line 331: warning: cyclomatic complexity 24 of function (*conn).process() is high (> 15) (gocyclo)
    • Line 528: warning: cyclomatic complexity 20 of function (*conn).resolve() is high (> 15) (gocyclo)
    • Line 237: warning: cyclomatic complexity 17 of function (*conn).channelRead() is high (> 15) (gocyclo)
    • Line 166: warning: cyclomatic complexity 17 of function handle() is high (> 15) (gocyclo)
    • data/util.go
    • Line 140: warning: cyclomatic complexity 17 of function WriteStringList() is high (> 15) (gocyclo)
    • cmd/exec_windows.go
    • Line 460: warning: cyclomatic complexity 33 of function (*executable).start() is high (> 15) (gocyclo)
    • Line 587: warning: cyclomatic complexity 20 of function (*executable).startInfo() is high (> 15) (gocyclo)
    • c2/cfg/convert.go
    • Line 383: warning: cyclomatic complexity 145 of function (Config).build() is high (> 15) (gocyclo)
    • Line 200: warning: cyclomatic complexity 120 of function (Config).validate() is high (> 15) (gocyclo)
    • Line 37: warning: cyclomatic complexity 30 of function (Config).next() is high (> 15) (gocyclo)
    • util/text/r_no_regexp.go
    • Line 146: warning: cyclomatic complexity 43 of function matchWithToken() is high (> 15) (gocyclo)
    • Line 254: warning: cyclomatic complexity 42 of function writeToken() is high (> 15) (gocyclo)
    • Line 73: warning: cyclomatic complexity 33 of function (Matcher).String() is high (> 15) (gocyclo)
    • Line 292: warning: cyclomatic complexity 20 of function checkToken() is high (> 15) (gocyclo)
    • c2/task/y_windows.go
    • Line 271: warning: cyclomatic complexity 33 of function taskRegistry() is high (> 15) (gocyclo)
    • Line 380: warning: cyclomatic complexity 22 of function taskInteract() is high (> 15) (gocyclo)
    • Line 48: warning: cyclomatic complexity 21 of function taskTroll() is high (> 15) (gocyclo)
    • Line 596: warning: cyclomatic complexity 17 of function ZombieUnmarshal() is high (> 15) (gocyclo)
    • data/chunk.go
    • Line 424: warning: cyclomatic complexity 21 of function (*Chunk).ReadDeadline() is high (> 15) (gocyclo)
    • Line 370: warning: cyclomatic complexity 17 of function (*Chunk).ReadFrom() is high (> 15) (gocyclo)
    • man/http.go
    • Line 145: warning: cyclomatic complexity 32 of function ParseDownloadHeader() is high (> 15) (gocyclo)
    • Line 232: warning: cyclomatic complexity 18 of function WebExec() is high (> 15) (gocyclo)
    • man/sentinel.go
    • Line 129: warning: cyclomatic complexity 26 of function (*sentinelPath).run() is high (> 15) (gocyclo)
    • c2/cfg/group.go
    • Line 155: warning: cyclomatic complexity 21 of function (*Group).Switch() is high (> 15) (gocyclo)
    • cmd/util.go
    • Line 69: warning: cyclomatic complexity 18 of function Split() is high (> 15) (gocyclo)
    • device/y_windows.go
    • Line 90: warning: cyclomatic complexity 27 of function proxyInit() is high (> 15) (gocyclo)
    • Line 162: warning: cyclomatic complexity 18 of function split() is high (> 15) (gocyclo)
    • c2/cfg/z_json.go
    • Line 213: warning: cyclomatic complexity 112 of function (Config).MarshalJSON() is high (> 15) (gocyclo)
    • Line 476: warning: cyclomatic complexity 71 of function (*Config).UnmarshalJSON() is high (> 15) (gocyclo)
    • Line 40: warning: cyclomatic complexity 33 of function (cBit).String() is high (> 15) (gocyclo)
    • Line 109: warning: cyclomatic complexity 32 of function bitFromName() is high (> 15) (gocyclo)
    • util/text/r_regexp.go
    • Line 33: warning: cyclomatic complexity 49 of function (Matcher).String() is high (> 15) (gocyclo)
    • Line 120: warning: cyclomatic complexity 44 of function (Matcher).MatchEx() is high (> 15) (gocyclo)
    • device/local/macos_crypt.go
    • Line 53: warning: cyclomatic complexity 33 of function version() is high (> 15) (gocyclo)
    • Line 28: warning: cyclomatic complexity 18 of function sysID() is high (> 15) (gocyclo)
    • com/wc2/rule.go
    • Line 43: warning: cyclomatic complexity 17 of function (Rule).match() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!