Preparing report...

Report for github.com/peak/s5cmd/v2

(v2.2.2)

A+    Excellent!    Found 9 issues across 74 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!


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.

    • e2e/util_test.go
    • Line 640: warning: cyclomatic complexity 28 of function ensureS3Object() is high (> 15) (gocyclo)
    • Line 965: warning: cyclomatic complexity 17 of function assertLines() is high (> 15) (gocyclo)
    • Line 431: warning: cyclomatic complexity 17 of function createBucket() is high (> 15) (gocyclo)
    • command/cp.go
    • Line 403: warning: cyclomatic complexity 28 of function (Copy).Run() is high (> 15) (gocyclo)
    • storage/s3.go
    • Line 169: warning: cyclomatic complexity 19 of function (*S3).listObjectVersions() is high (> 15) (gocyclo)
    • Line 792: warning: cyclomatic complexity 17 of function (*S3).Put() is high (> 15) (gocyclo)
    • command/sync.go
    • Line 300: warning: cyclomatic complexity 17 of function (Sync).getSourceAndDestinationObjects() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.

    • command/sync.go
    • Line 208: warning: ineffectual assignment to sourceObjects (ineffassign)
    • Line 209: warning: ineffectual assignment to destObjects (ineffassign)
    • Line 208: warning: ineffectual assignment to sourceObjects (ineffassign)
    • Line 209: warning: ineffectual assignment to destObjects (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words