Preparing report...

Report for github.com/AliyunContainerService/velero-plugin

A    Great!    Found 3 issues across 7 files

Tweet

gofmt71%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo85%

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.


golint57%

Golint is a linter for Go source code.

    • velero-plugin/velero-plugin-for-alibabacloud/common.go
    • Line 78: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 89: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 102: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 116: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • velero-plugin/velero-plugin-for-alibabacloud/object_store.go
    • Line 39: warning: exported const OriginStr should have comment (or a comment on this block) or be unexported (golint)
    • Line 359: warning: comment on exported function CheckPathExistsAndCreate should be of the form "CheckPathExistsAndCreate ..." (golint)
    • Line 369: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 376: warning: comment on exported function CreateCaptcha should be of the form "CreateCaptcha ..." (golint)
    • Line 381: warning: comment on exported function DeCompress should be of the form "DeCompress ..." (golint)
    • Line 413: warning: comment on exported function CreateFile should be of the form "CreateFile ..." (golint)
    • Line 422: warning: comment on exported function ReplaceVolumeId should be of the form "ReplaceVolumeId ..." (golint)
    • Line 472: warning: comment on exported function Compress should be of the form "Compress ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign85%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!