Preparing report...

Report for github.com/Snowflake-Labs/sansshell

(v1.17.1)

A+    Excellent!    Found 27 issues across 108 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!


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.

    • services/localfile/client/client.go
    • Line 906: warning: cyclomatic complexity 40 of function (*cpCmd).Execute() is high (> 15) (gocyclo)
    • Line 386: warning: cyclomatic complexity 20 of function (*sumCmd).Execute() is high (> 15) (gocyclo)
    • Line 764: warning: cyclomatic complexity 19 of function (*lsCmd).Execute() is high (> 15) (gocyclo)
    • Line 235: warning: cyclomatic complexity 19 of function (*statCmd).Execute() is high (> 15) (gocyclo)
    • proxy/proxy/proxy.go
    • Line 530: warning: cyclomatic complexity 22 of function (*Conn).InvokeOneMany() is high (> 15) (gocyclo)
    • Line 265: warning: cyclomatic complexity 22 of function (*proxyStream).RecvMsg() is high (> 15) (gocyclo)
    • Line 382: warning: cyclomatic complexity 20 of function (*Conn).createStreams() is high (> 15) (gocyclo)
    • services/fdb/client/client.go
    • Line 2582: warning: cyclomatic complexity 33 of function (*fdbCLIThrottleCmd).Execute() is high (> 15) (gocyclo)
    • Line 896: warning: cyclomatic complexity 32 of function (*fdbCLIConfigureCmd).Execute() is high (> 15) (gocyclo)
    • Line 648: warning: cyclomatic complexity 29 of function (*fdbCLIChangefeedCmd).Execute() is high (> 15) (gocyclo)
    • Line 2189: warning: cyclomatic complexity 22 of function (*fdbCLIProfileCmd).Execute() is high (> 15) (gocyclo)
    • Line 370: warning: cyclomatic complexity 19 of function (*fdbCLICmd).runFDBCLI() is high (> 15) (gocyclo)
    • services/process/server/process.go
    • Line 370: warning: cyclomatic complexity 25 of function (*server).GetMemoryDump() is high (> 15) (gocyclo)
    • Line 234: warning: cyclomatic complexity 23 of function (*server).GetJavaStacks() is high (> 15) (gocyclo)
    • Line 163: warning: cyclomatic complexity 17 of function (*server).GetStacks() is high (> 15) (gocyclo)
    • services/fdb/server/fdbcli.go
    • Line 373: warning: cyclomatic complexity 49 of function parseFDBCommand() is high (> 15) (gocyclo)
    • Line 548: warning: cyclomatic complexity 19 of function parseFDBCLIChangefeed() is high (> 15) (gocyclo)
    • Line 961: warning: cyclomatic complexity 18 of function parseFDBCLIProfile() is high (> 15) (gocyclo)
    • Line 215: warning: cyclomatic complexity 18 of function (*server).FDBCLI() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell85%

Misspell Finds commonly misspelled English words

    • services/packages/server/packages_test.go
    • Line 188: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 194: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 421: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 558: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 560: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 566: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 665: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 667: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 673: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 760: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 762: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 769: warning: "existant" is a misspelling of "existent" (misspell)
    • services/process/server/process_test.go
    • Line 190: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 222: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 224: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 383: warning: "existant" is a misspelling of "existent" (misspell)
    • Line 542: warning: "existant" is a misspelling of "existent" (misspell)