Preparing report...

Report for i2pgit.org/idk/terrarium

(v1.13.0)

A+    Excellent!    Found 5 issues across 19 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!


gocyclo73%

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.

    • /i2pgit.org/idk/terrarium/local_server.go
    • Line 387: warning: cyclomatic complexity 28 of function (*LocalServer).handleMessage() is high (> 15) (gocyclo)
    • Line 1003: warning: cyclomatic complexity 26 of function (*LocalServer).sjoinCommand() is high (> 15) (gocyclo)
    • Line 2345: warning: cyclomatic complexity 25 of function (*LocalServer).tmodeCommand() is high (> 15) (gocyclo)
    • Line 663: warning: cyclomatic complexity 25 of function (*LocalServer).uidCommand() is high (> 15) (gocyclo)
    • Line 1616: warning: cyclomatic complexity 17 of function (*LocalServer).modeCommand() is high (> 15) (gocyclo)
    • Line 817: warning: cyclomatic complexity 16 of function (*LocalServer).privmsgCommand() is high (> 15) (gocyclo)
    • Line 1194: warning: cyclomatic complexity 16 of function (*LocalServer).tbCommand() is high (> 15) (gocyclo)
    • Line 1836: warning: cyclomatic complexity 16 of function (*LocalServer).killCommand() is high (> 15) (gocyclo)
    • Line 175: warning: cyclomatic complexity 16 of function (*LocalServer).sendBurst() is high (> 15) (gocyclo)
    • /i2pgit.org/idk/terrarium/main.go
    • Line 747: warning: cyclomatic complexity 16 of function (*Catbox).checkAndPingClients() is high (> 15) (gocyclo)
    • Line 331: warning: cyclomatic complexity 16 of function (*Catbox).start() is high (> 15) (gocyclo)
    • Line 431: warning: cyclomatic complexity 16 of function (*Catbox).eventLoop() is high (> 15) (gocyclo)
    • /i2pgit.org/idk/terrarium/util.go
    • Line 139: warning: cyclomatic complexity 40 of function isValidUser() is high (> 15) (gocyclo)
    • Line 512: warning: cyclomatic complexity 27 of function parseAndResolveUmodeChanges() is high (> 15) (gocyclo)
    • Line 447: warning: cyclomatic complexity 24 of function cipherSuiteToString() is high (> 15) (gocyclo)
    • Line 82: warning: cyclomatic complexity 24 of function isValidNick() is high (> 15) (gocyclo)
    • /i2pgit.org/idk/terrarium/local_user.go
    • Line 485: warning: cyclomatic complexity 40 of function (*LocalUser).handleMessage() is high (> 15) (gocyclo)
    • Line 1332: warning: cyclomatic complexity 22 of function (*LocalUser).channelModeCommand() is high (> 15) (gocyclo)
    • Line 845: warning: cyclomatic complexity 16 of function (*LocalUser).privmsgCommand() is high (> 15) (gocyclo)
    • Line 118: warning: cyclomatic complexity 16 of function (*LocalUser).join() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


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!