Preparing report...

Report for github.huihui.space/google/go-cloud

(v0.40.0)

A+    Excellent!    Found 29 issues across 228 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!


gocyclo87%

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.

    • blob/drivertest/drivertest.go
    • Line 2387: warning: cyclomatic complexity 47 of function testSignedURL() is high (> 15) (gocyclo)
    • Line 1248: warning: cyclomatic complexity 28 of function testAttributes() is high (> 15) (gocyclo)
    • Line 1394: warning: cyclomatic complexity 26 of function testWrite() is high (> 15) (gocyclo)
    • Line 339: warning: cyclomatic complexity 25 of function testList() is high (> 15) (gocyclo)
    • Line 2620: warning: cyclomatic complexity 25 of function testAs() is high (> 15) (gocyclo)
    • Line 2265: warning: cyclomatic complexity 24 of function testKeys() is high (> 15) (gocyclo)
    • Line 1932: warning: cyclomatic complexity 21 of function testCopy() is high (> 15) (gocyclo)
    • Line 676: warning: cyclomatic complexity 20 of function testListDelimiters() is high (> 15) (gocyclo)
    • Line 1854: warning: cyclomatic complexity 19 of function testMD5() is high (> 15) (gocyclo)
    • Line 1099: warning: cyclomatic complexity 16 of function testRead() is high (> 15) (gocyclo)
    • Line 2064: warning: cyclomatic complexity 16 of function testDelete() is high (> 15) (gocyclo)
    • runtimevar/drivertest/drivertest.go
    • Line 433: warning: cyclomatic complexity 21 of function testDelete() is high (> 15) (gocyclo)
    • Line 339: warning: cyclomatic complexity 20 of function testUpdate() is high (> 15) (gocyclo)
    • Line 528: warning: cyclomatic complexity 19 of function testUpdateWithErrors() is high (> 15) (gocyclo)
    • blob/blob.go
    • Line 1084: warning: cyclomatic complexity 18 of function (*Bucket).NewWriter() is high (> 15) (gocyclo)
    • docstore/awsdynamodb/query.go
    • Line 163: warning: cyclomatic complexity 20 of function (*collection).bestQueryable() is high (> 15) (gocyclo)
    • Line 75: warning: cyclomatic complexity 16 of function (*collection).planQuery() is high (> 15) (gocyclo)
    • blob/oc_test.go
    • Line 31: warning: cyclomatic complexity 17 of function TestOpenCensus() is high (> 15) (gocyclo)
    • docstore/driver/codec.go
    • Line 379: warning: cyclomatic complexity 39 of function decode() is high (> 15) (gocyclo)
    • Line 118: warning: cyclomatic complexity 27 of function encode() is high (> 15) (gocyclo)
    • pubsub/awssnssqs/awssnssqs.go
    • Line 506: warning: cyclomatic complexity 36 of function (*snsTopic).SendBatch() is high (> 15) (gocyclo)
    • Line 817: warning: cyclomatic complexity 32 of function (*sqsTopic).SendBatch() is high (> 15) (gocyclo)
    • Line 1161: warning: cyclomatic complexity 21 of function (*subscription).ReceiveBatch() is high (> 15) (gocyclo)
    • Line 1385: warning: cyclomatic complexity 16 of function (*subscription).SendNacks() is high (> 15) (gocyclo)
    • blob/s3blob/s3blob.go
    • Line 1030: warning: cyclomatic complexity 34 of function (*bucket).NewTypedWriter() is high (> 15) (gocyclo)
    • Line 1269: warning: cyclomatic complexity 28 of function (*bucket).SignedURL() is high (> 15) (gocyclo)
    • Line 499: warning: cyclomatic complexity 27 of function (*bucket).ListPaged() is high (> 15) (gocyclo)
    • Line 870: warning: cyclomatic complexity 17 of function (*bucket).NewRangeReader() is high (> 15) (gocyclo)
    • runtimevar/runtimevar_test.go
    • Line 191: warning: cyclomatic complexity 27 of function TestVariable_Latest() is high (> 15) (gocyclo)
    • Line 85: warning: cyclomatic complexity 20 of function TestVariable_Watch() is high (> 15) (gocyclo)
    • pubsub/pubsub.go
    • Line 527: warning: cyclomatic complexity 18 of function (*Subscription).Receive() is high (> 15) (gocyclo)
    • blob/fileblob/fileblob.go
    • Line 398: warning: cyclomatic complexity 29 of function (*bucket).ListPaged() is high (> 15) (gocyclo)
    • Line 317: warning: cyclomatic complexity 22 of function escapeKey() is high (> 15) (gocyclo)
    • aws/aws.go
    • Line 206: warning: cyclomatic complexity 18 of function V2ConfigFromURLParams() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words