Preparing report...

Report for github.com/dremio/dremio-diagnostic-collector/v3

(v3.3.4)

A+    Excellent!    Found 25 issues across 117 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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo81%

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.

    • cmd/local/local.go
    • Line 117: warning: cyclomatic complexity 34 of function collect() is high (> 15) (gocyclo)
    • Line 500: warning: cyclomatic complexity 30 of function runCollectOSConfig() is high (> 15) (gocyclo)
    • Line 65: warning: cyclomatic complexity 17 of function createAllDirs() is high (> 15) (gocyclo)
    • Line 685: warning: cyclomatic complexity 17 of function Execute() is high (> 15) (gocyclo)
    • pkg/archive/archive.go
    • Line 186: warning: cyclomatic complexity 19 of function ExtractTarStream() is high (> 15) (gocyclo)
    • Line 79: warning: cyclomatic complexity 16 of function TarGzDirFilteredStream() is high (> 15) (gocyclo)
    • pkg/archive/archive_test.go
    • Line 143: warning: cyclomatic complexity 31 of function TestTarDDC() is high (> 15) (gocyclo)
    • Line 31: warning: cyclomatic complexity 30 of function TestTarGzDir() is high (> 15) (gocyclo)
    • cmd/root.go
    • Line 274: warning: cyclomatic complexity 66 of function Execute() is high (> 15) (gocyclo)
    • integrationtest/kube/collect_kube_test.go
    • Line 815: warning: cyclomatic complexity 54 of function TestRemoteCollectOnK8sWithPAT() is high (> 15) (gocyclo)
    • Line 147: warning: cyclomatic complexity 32 of function TestMain() is high (> 15) (gocyclo)
    • Line 608: warning: cyclomatic complexity 27 of function TestRemoteCollectOnK8sUsingTheK8sGoAPI() is high (> 15) (gocyclo)
    • Line 401: warning: cyclomatic complexity 27 of function TestRemoteCollectOnK8s() is high (> 15) (gocyclo)
    • integrationtest/ssh/collect_ssh_test.go
    • Line 334: warning: cyclomatic complexity 41 of function TestSSHBasedRemoteCollectWithPAT() is high (> 15) (gocyclo)
    • Line 214: warning: cyclomatic complexity 18 of function TestSSHBasedRemoteCollectPlusJstack() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words