Preparing report...

Report for github.com/openebs/velero-plugin

A+    Excellent!    Found 11 issues across 37 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!


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.


golint83%

Golint is a linter for Go source code.

    • velero-plugin/pkg/clouduploader/operation.go
    • Line 37: warning: comment on exported const ListKeyFile should be of the form "ListKeyFile ..." (golint)
    • Line 40: warning: comment on exported const ListKeyDir should be of the form "ListKeyDir ..." (golint)
    • Line 43: warning: comment on exported const ListKeyBoth should be of the form "ListKeyBoth ..." (golint)
    • Line 172: warning: exported method Conn.GetFileNameWithSchd should have comment or be unexported (golint)
    • velero-plugin/pkg/zfs/plugin/zfs.go
    • Line 44: warning: comment on exported const ZfsDriverName should be of the form "ZfsDriverName ..." (golint)
    • Line 49: warning: comment on exported const ZFSRestorePort should be of the form "ZFSRestorePort ..." (golint)
    • Line 52: warning: comment on exported const ZFSBackupPort should be of the form "ZFSBackupPort ..." (golint)
    • velero-plugin/pkg/zfs/utils/utils.go
    • Line 31: warning: comment on exported const RestorePrefix should be of the form "RestorePrefix ..." (golint)
    • Line 35: warning: exported function GetServerAddress should have comment or be unexported (golint)
    • Line 52: warning: exported function GenerateResourceName should have comment or be unexported (golint)
    • Line 56: warning: exported function GenerateSnapshotID should have comment or be unexported (golint)
    • velero-plugin/pkg/cstor/cstor.go
    • Line 76: warning: comment on exported const CstorRestorePort should be of the form "CstorRestorePort ..." (golint)
    • Line 79: warning: comment on exported const CstorBackupPort should be of the form "CstorBackupPort ..." (golint)

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!


misspell97%

Misspell Finds commonly misspelled English words