Preparing report...

Report for github.com/rclone/gofakes3

(v0.0.2)

A+    Excellent!    Found 20 issues across 64 files

Tweet

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!


gofmt82%

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

    • log.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

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.

    • init_test.go
    • Line 517: warning: cyclomatic complexity 19 of function (*testServer).assertListMultipartUploads() is high (> 15) (gocyclo)
    • gofakes3.go
    • Line 566: warning: cyclomatic complexity 17 of function (*GoFakeS3).createObject() is high (> 15) (gocyclo)
    • xml/marshal.go
    • Line 809: warning: cyclomatic complexity 52 of function (*printer).marshalStruct() is high (> 15) (gocyclo)
    • Line 408: warning: cyclomatic complexity 50 of function (*printer).marshalValue() is high (> 15) (gocyclo)
    • Line 557: warning: cyclomatic complexity 26 of function (*printer).marshalAttr() is high (> 15) (gocyclo)
    • Line 259: warning: cyclomatic complexity 17 of function isValidDirective() is high (> 15) (gocyclo)
    • Line 202: warning: cyclomatic complexity 16 of function (*Encoder).EncodeToken() is high (> 15) (gocyclo)
    • xml/typeinfo.go
    • Line 113: warning: cyclomatic complexity 32 of function structFieldInfo() is high (> 15) (gocyclo)
    • Line 268: warning: cyclomatic complexity 19 of function addFieldInfo() is high (> 15) (gocyclo)
    • Line 53: warning: cyclomatic complexity 18 of function getTypeInfo() is high (> 15) (gocyclo)
    • s3mem/backend.go
    • Line 415: warning: cyclomatic complexity 19 of function (*Backend).ListBucketVersions() is high (> 15) (gocyclo)
    • uploader.go
    • Line 235: warning: cyclomatic complexity 17 of function (*uploader).List() is high (> 15) (gocyclo)
    • xml/read.go
    • Line 316: warning: cyclomatic complexity 92 of function (*Decoder).unmarshal() is high (> 15) (gocyclo)
    • Line 688: warning: cyclomatic complexity 20 of function (*Decoder).unmarshalPath() is high (> 15) (gocyclo)
    • Line 615: warning: cyclomatic complexity 19 of function copyValue() is high (> 15) (gocyclo)
    • Line 250: warning: cyclomatic complexity 17 of function (*Decoder).unmarshalAttr() is high (> 15) (gocyclo)
    • xml/xml.go
    • Line 549: warning: cyclomatic complexity 82 of function (*Decoder).rawToken() is high (> 15) (gocyclo)
    • Line 987: warning: cyclomatic complexity 50 of function (*Decoder).text() is high (> 15) (gocyclo)
    • Line 277: warning: cyclomatic complexity 19 of function (*Decoder).Token() is high (> 15) (gocyclo)
    • Line 1925: warning: cyclomatic complexity 17 of function escapeText() is high (> 15) (gocyclo)
    • Line 851: warning: cyclomatic complexity 16 of function (*Decoder).attrval() is high (> 15) (gocyclo)

ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words