Preparing report...

Report for github.com/versity/versitygw

(v1.0.3)

A+    Excellent!    Found 12 issues across 109 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!


gofmt100%

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

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo88%

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.

    • s3api/controllers/base.go
    • Line 1482: warning: cyclomatic complexity 70 of function (S3ApiController).PutActions() is high (> 15) (gocyclo)
    • Line 956: warning: cyclomatic complexity 55 of function (S3ApiController).PutBucketActions() is high (> 15) (gocyclo)
    • Line 79: warning: cyclomatic complexity 33 of function (S3ApiController).GetActions() is high (> 15) (gocyclo)
    • Line 496: warning: cyclomatic complexity 33 of function (S3ApiController).ListActions() is high (> 15) (gocyclo)
    • Line 2696: warning: cyclomatic complexity 20 of function (S3ApiController).CreateActions() is high (> 15) (gocyclo)
    • Line 3019: warning: cyclomatic complexity 16 of function SendXMLResponse() is high (> 15) (gocyclo)
    • Line 2546: warning: cyclomatic complexity 16 of function (S3ApiController).HeadObject() is high (> 15) (gocyclo)
    • backend/scoutfs/scoutfs.go
    • Line 156: warning: cyclomatic complexity 48 of function (*ScoutFS).CompleteMultipartUpload() is high (> 15) (gocyclo)
    • Line 430: warning: cyclomatic complexity 27 of function (*ScoutFS).HeadObject() is high (> 15) (gocyclo)
    • Line 592: warning: cyclomatic complexity 18 of function (*ScoutFS).GetObject() is high (> 15) (gocyclo)
    • backend/posix/posix.go
    • Line 527: warning: cyclomatic complexity 47 of function (*Posix).CompleteMultipartUpload() is high (> 15) (gocyclo)
    • Line 1328: warning: cyclomatic complexity 38 of function (*Posix).PutObject() is high (> 15) (gocyclo)
    • Line 858: warning: cyclomatic complexity 33 of function (*Posix).ListMultipartUploads() is high (> 15) (gocyclo)
    • Line 1202: warning: cyclomatic complexity 25 of function (*Posix).UploadPartCopy() is high (> 15) (gocyclo)
    • Line 1596: warning: cyclomatic complexity 24 of function (*Posix).GetObject() is high (> 15) (gocyclo)
    • Line 366: warning: cyclomatic complexity 24 of function (*Posix).CreateMultipartUpload() is high (> 15) (gocyclo)
    • Line 1914: warning: cyclomatic complexity 21 of function (*Posix).CopyObject() is high (> 15) (gocyclo)
    • Line 1003: warning: cyclomatic complexity 21 of function (*Posix).ListParts() is high (> 15) (gocyclo)
    • Line 1731: warning: cyclomatic complexity 20 of function (*Posix).HeadObject() is high (> 15) (gocyclo)
    • Line 205: warning: cyclomatic complexity 17 of function (*Posix).CreateBucket() is high (> 15) (gocyclo)
    • Line 2535: warning: cyclomatic complexity 16 of function (*Posix).PutObjectRetention() is high (> 15) (gocyclo)
    • auth/acl.go
    • Line 88: warning: cyclomatic complexity 34 of function UpdateACL() is high (> 15) (gocyclo)
    • s3log/file.go
    • Line 125: warning: cyclomatic complexity 17 of function (*FileLogger).writeLog() 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!