Preparing report...

Report for github.com/MottainaiCI/lxd-compose

(v0.36.0)

A+    Excellent!    Found 20 issues across 99 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!


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.

    • pkg/executor/file.go
    • Line 115: warning: cyclomatic complexity 49 of function (*LxdCExecutor).RecursivePushFile() is high (> 15) (gocyclo)
    • Line 389: warning: cyclomatic complexity 16 of function (*LxdCExecutor).RecursivePullFile() is high (> 15) (gocyclo)
    • cmd/fetch.go
    • Line 35: warning: cyclomatic complexity 18 of function newFetchCommand() is high (> 15) (gocyclo)
    • cmd/compile.go
    • Line 33: warning: cyclomatic complexity 17 of function newCompileCommand() is high (> 15) (gocyclo)
    • cmd/backup.go
    • Line 37: warning: cyclomatic complexity 29 of function newBackupCommand() is high (> 15) (gocyclo)
    • cmd/node/sync.go
    • Line 34: warning: cyclomatic complexity 17 of function NewSyncCommand() is high (> 15) (gocyclo)
    • cmd/node/push.go
    • Line 33: warning: cyclomatic complexity 16 of function NewPushCommand() is high (> 15) (gocyclo)
    • pkg/loader/loader.go
    • Line 442: warning: cyclomatic complexity 53 of function (*LxdCInstance).loadExtraFiles() is high (> 15) (gocyclo)
    • Line 193: warning: cyclomatic complexity 42 of function (*LxdCInstance).Validate() is high (> 15) (gocyclo)
    • pkg/loader/deploy.go
    • Line 117: warning: cyclomatic complexity 48 of function (*LxdCInstance).ProcessHooks() is high (> 15) (gocyclo)
    • Line 359: warning: cyclomatic complexity 35 of function (*LxdCInstance).ApplyGroup() is high (> 15) (gocyclo)
    • pkg/loader/pack.go
    • Line 170: warning: cyclomatic complexity 53 of function (*LxdCInstance).preparePackSpec4Project() is high (> 15) (gocyclo)
    • Line 61: warning: cyclomatic complexity 18 of function (*LxdCInstance).preparePackSpec4Group() is high (> 15) (gocyclo)
    • Line 432: warning: cyclomatic complexity 18 of function (*LxdCInstance).PackProjects() is high (> 15) (gocyclo)

ineffassign95%

IneffAssign detects ineffectual assignments in Go code.

    • pkg/loader/deploy.go
    • Line 139: warning: ineffectual assignment to grp (ineffassign)
    • Line 140: warning: ineffectual assignment to nodeEntity (ineffassign)
    • Line 412: warning: ineffectual assignment to syncSourceDir (ineffassign)

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!