Preparing report...

Report for github.com/google/go-cloud

(v0.32.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/oc_test.go
    • Line 31: warning: cyclomatic complexity 17 of function TestOpenCensus() is high (> 15) (gocyclo)
    • blob/blob.go
    • Line 1066: warning: cyclomatic complexity 16 of function (*Bucket).NewWriter() is high (> 15) (gocyclo)
    • pubsub/awssnssqs/awssnssqs.go
    • Line 658: warning: cyclomatic complexity 32 of function (*sqsTopic).SendBatch() is high (> 15) (gocyclo)
    • Line 458: warning: cyclomatic complexity 23 of function (*snsTopic).SendBatch() is high (> 15) (gocyclo)
    • Line 998: warning: cyclomatic complexity 21 of function (*subscription).ReceiveBatch() is high (> 15) (gocyclo)
    • runtimevar/runtimevar_test.go
    • Line 191: warning: cyclomatic complexity 28 of function TestVariable_Latest() is high (> 15) (gocyclo)
    • Line 85: warning: cyclomatic complexity 20 of function TestVariable_Watch() is high (> 15) (gocyclo)
    • runtimevar/drivertest/drivertest.go
    • Line 421: warning: cyclomatic complexity 21 of function testDelete() is high (> 15) (gocyclo)
    • Line 329: warning: cyclomatic complexity 20 of function testUpdate() is high (> 15) (gocyclo)
    • Line 514: warning: cyclomatic complexity 19 of function testUpdateWithErrors() is high (> 15) (gocyclo)
    • pubsub/pubsub.go
    • Line 532: warning: cyclomatic complexity 16 of function (*Subscription).Receive() is high (> 15) (gocyclo)
    • blob/s3blob/s3blob.go
    • Line 934: warning: cyclomatic complexity 30 of function (*bucket).NewTypedWriter() is high (> 15) (gocyclo)
    • Line 1148: warning: cyclomatic complexity 28 of function (*bucket).SignedURL() is high (> 15) (gocyclo)
    • Line 403: warning: cyclomatic complexity 27 of function (*bucket).ListPaged() is high (> 15) (gocyclo)
    • Line 774: warning: cyclomatic complexity 17 of function (*bucket).NewRangeReader() is high (> 15) (gocyclo)
    • blob/drivertest/drivertest.go
    • Line 2267: warning: cyclomatic complexity 47 of function testSignedURL() is high (> 15) (gocyclo)
    • Line 1220: warning: cyclomatic complexity 28 of function testAttributes() is high (> 15) (gocyclo)
    • Line 2498: warning: cyclomatic complexity 25 of function testAs() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 25 of function testList() is high (> 15) (gocyclo)
    • Line 1360: warning: cyclomatic complexity 23 of function testWrite() is high (> 15) (gocyclo)
    • Line 1867: warning: cyclomatic complexity 21 of function testCopy() is high (> 15) (gocyclo)
    • Line 660: warning: cyclomatic complexity 20 of function testListDelimiters() is high (> 15) (gocyclo)
    • Line 1791: warning: cyclomatic complexity 19 of function testMD5() is high (> 15) (gocyclo)
    • Line 2169: warning: cyclomatic complexity 19 of function testKeys() is high (> 15) (gocyclo)
    • Line 1075: warning: cyclomatic complexity 16 of function testRead() is high (> 15) (gocyclo)
    • Line 1997: warning: cyclomatic complexity 16 of function testDelete() is high (> 15) (gocyclo)
    • docstore/awsdynamodb/query.go
    • Line 161: warning: cyclomatic complexity 20 of function (*collection).bestQueryable() is high (> 15) (gocyclo)
    • Line 73: warning: cyclomatic complexity 16 of function (*collection).planQuery() 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)
    • blob/fileblob/fileblob.go
    • Line 357: warning: cyclomatic complexity 29 of function (*bucket).ListPaged() is high (> 15) (gocyclo)
    • Line 276: warning: cyclomatic complexity 22 of function escapeKey() is high (> 15) (gocyclo)

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!