Preparing report...

Report for github.com/sodafoundation/multi-cloud

A    Great!    Found 181 issues across 369 files

Tweet

gofmt90%

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!


gocyclo91%

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.

    • multi-cloud/s3/pkg/service/object.go
    • Line 160: warning: cyclomatic complexity 28 of function (*s3Service).PutObject() is high (> 15) (gocyclo)
    • Line 566: warning: cyclomatic complexity 26 of function (*s3Service).CopyObject() is high (> 15) (gocyclo)
    • Line 421: warning: cyclomatic complexity 20 of function (*s3Service).GetObject() is high (> 15) (gocyclo)
    • Line 765: warning: cyclomatic complexity 17 of function (*s3Service).MoveObject() is high (> 15) (gocyclo)
    • multi-cloud/s3/pkg/service/multipart.go
    • Line 327: warning: cyclomatic complexity 24 of function (*s3Service).CompleteMultipartUpload() is high (> 15) (gocyclo)
    • Line 641: warning: cyclomatic complexity 22 of function (*s3Service).CopyObjPart() is high (> 15) (gocyclo)
    • Line 193: warning: cyclomatic complexity 17 of function (*s3Service).UploadPart() is high (> 15) (gocyclo)
    • Line 89: warning: cyclomatic complexity 16 of function (*s3Service).InitMultipartUpload() is high (> 15) (gocyclo)

golint0%

Golint is a linter for Go source code.

An error occurred while running this test (exit status 2)


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.

    • multi-cloud/block/pkg/service/service_test.go
    • Line 181: warning: ineffectual assignment to err (ineffassign)
    • Line 189: warning: ineffectual assignment to err (ineffassign)
    • Line 194: warning: ineffectual assignment to err (ineffassign)
    • Line 264: warning: ineffectual assignment to err (ineffassign)
    • Line 272: warning: ineffectual assignment to err (ineffassign)
    • Line 277: warning: ineffectual assignment to err (ineffassign)
    • Line 349: warning: ineffectual assignment to err (ineffassign)
    • Line 357: warning: ineffectual assignment to err (ineffassign)
    • Line 362: warning: ineffectual assignment to err (ineffassign)

misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 3)