Preparing report...

Report for github.com/ncw/rclone

A+    Excellent!    Found 99 issues across 709 files

Tweet

gofmt99%

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


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!


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.

    • rclone/backend/swift/swift.go
    • Line 1422: warning: cyclomatic complexity 16 of function (*Object).Update() is high (> 15) (gocyclo)
    • Line 355: warning: cyclomatic complexity 16 of function swiftConnection() is high (> 15) (gocyclo)
    • rclone/lib/encoder/encoder.go
    • Line 636: warning: cyclomatic complexity 138 of function (MultiEncoder).Decode() is high (> 15) (gocyclo)
    • Line 214: warning: cyclomatic complexity 132 of function (MultiEncoder).Encode() is high (> 15) (gocyclo)
    • rclone/fs/operations/operations.go
    • Line 365: warning: cyclomatic complexity 38 of function Copy() is high (> 15) (gocyclo)
    • Line 1716: warning: cyclomatic complexity 30 of function moveOrCopyFile() is high (> 15) (gocyclo)
    • Line 167: warning: cyclomatic complexity 22 of function equal() is high (> 15) (gocyclo)
    • Line 1993: warning: cyclomatic complexity 18 of function DirMove() is high (> 15) (gocyclo)
    • Line 1314: warning: cyclomatic complexity 17 of function Rmdirs() is high (> 15) (gocyclo)
    • Line 577: warning: cyclomatic complexity 16 of function Move() is high (> 15) (gocyclo)
    • rclone/backend/b2/b2.go
    • Line 655: warning: cyclomatic complexity 23 of function (*Fs).list() is high (> 15) (gocyclo)
    • Line 402: warning: cyclomatic complexity 17 of function NewFs() is high (> 15) (gocyclo)
    • Line 1156: warning: cyclomatic complexity 16 of function (*Fs).purge() is high (> 15) (gocyclo)
    • rclone/backend/chunker/chunker.go
    • Line 1118: warning: cyclomatic complexity 47 of function (*Fs).put() is high (> 15) (gocyclo)
    • Line 737: warning: cyclomatic complexity 32 of function (*Fs).processEntries() is high (> 15) (gocyclo)
    • Line 868: warning: cyclomatic complexity 31 of function (*Fs).scanObject() is high (> 15) (gocyclo)
    • Line 2440: warning: cyclomatic complexity 24 of function unmarshalSimpleJSON() is high (> 15) (gocyclo)
    • Line 1736: warning: cyclomatic complexity 20 of function (*Fs).okForServerSide() is high (> 15) (gocyclo)
    • Line 1651: warning: cyclomatic complexity 18 of function (*Fs).copyOrMove() is high (> 15) (gocyclo)
    • Line 1003: warning: cyclomatic complexity 17 of function (*Object).readMetadata() is high (> 15) (gocyclo)
    • rclone/lib/rest/rest.go
    • Line 189: warning: cyclomatic complexity 32 of function (*Client).Call() is high (> 15) (gocyclo)
    • Line 311: warning: cyclomatic complexity 17 of function MultipartUpload() is high (> 15) (gocyclo)
    • rclone/backend/mailru/mailru.go
    • Line 1597: warning: cyclomatic complexity 38 of function (*Object).Update() is high (> 15) (gocyclo)
    • Line 868: warning: cyclomatic complexity 27 of function (*treeState).NextRecord() is high (> 15) (gocyclo)
    • rclone/fs/operations/dedupe.go
    • Line 396: warning: cyclomatic complexity 28 of function Deduplicate() is high (> 15) (gocyclo)
    • Line 77: warning: cyclomatic complexity 19 of function dedupeDeleteIdentical() is high (> 15) (gocyclo)
    • rclone/fs/sync/sync.go
    • Line 98: warning: cyclomatic complexity 34 of function newSyncCopyMove() is high (> 15) (gocyclo)
    • Line 819: warning: cyclomatic complexity 19 of function (*syncCopyMove).run() is high (> 15) (gocyclo)
    • Line 308: warning: cyclomatic complexity 16 of function (*syncCopyMove).pairChecker() is high (> 15) (gocyclo)
    • rclone/backend/drive/drive.go
    • Line 757: warning: cyclomatic complexity 44 of function (*Fs).list() is high (> 15) (gocyclo)
    • Line 1659: warning: cyclomatic complexity 30 of function (*Fs).listRRunner() is high (> 15) (gocyclo)
    • Line 3211: warning: cyclomatic complexity 22 of function (*Fs).Command() is high (> 15) (gocyclo)
    • Line 1804: warning: cyclomatic complexity 21 of function (*Fs).ListR() is high (> 15) (gocyclo)
    • Line 2721: warning: cyclomatic complexity 20 of function (*Fs).changeNotifyRunner() is high (> 15) (gocyclo)
    • Line 179: warning: cyclomatic complexity 17 of function init() is high (> 15) (gocyclo)
    • Line 2294: warning: cyclomatic complexity 16 of function (*Fs).Copy() is high (> 15) (gocyclo)
    • Line 675: warning: cyclomatic complexity 16 of function (*Fs).shouldRetry() is high (> 15) (gocyclo)
    • rclone/fs/march/march.go
    • Line 304: warning: cyclomatic complexity 29 of function matchListings() is high (> 15) (gocyclo)
    • Line 379: warning: cyclomatic complexity 27 of function (*March).processJob() is high (> 15) (gocyclo)
    • Line 128: warning: cyclomatic complexity 16 of function (*March).Run() is high (> 15) (gocyclo)
    • rclone/fs/config/config.go
    • Line 432: warning: cyclomatic complexity 24 of function updateRemote() is high (> 15) (gocyclo)
    • Line 203: warning: cyclomatic complexity 22 of function makeConfigPath() is high (> 15) (gocyclo)
    • rclone/backend/s3/s3.go
    • Line 1802: warning: cyclomatic complexity 47 of function (*Fs).list() is high (> 15) (gocyclo)
    • Line 3194: warning: cyclomatic complexity 45 of function (*Object).Update() is high (> 15) (gocyclo)
    • Line 1473: warning: cyclomatic complexity 25 of function s3Connection() is high (> 15) (gocyclo)
    • Line 3006: warning: cyclomatic complexity 20 of function (*Object).uploadMultipart() is high (> 15) (gocyclo)
    • Line 2933: warning: cyclomatic complexity 17 of function (*Object).Open() is high (> 15) (gocyclo)
    • Line 1626: warning: cyclomatic complexity 16 of function NewFs() is high (> 15) (gocyclo)
    • rclone/fs/fs.go
    • Line 853: warning: cyclomatic complexity 30 of function (*Features).Mask() is high (> 15) (gocyclo)
    • Line 782: warning: cyclomatic complexity 21 of function (*Features).Fill() is high (> 15) (gocyclo)
    • rclone/fs/config/ui.go
    • Line 319: warning: cyclomatic complexity 22 of function ChooseOption() is high (> 15) (gocyclo)
    • Line 247: warning: cyclomatic complexity 17 of function backendConfig() is high (> 15) (gocyclo)
    • Line 94: warning: cyclomatic complexity 17 of function Choose() is high (> 15) (gocyclo)
    • rclone/backend/cache/cache.go
    • Line 343: warning: cyclomatic complexity 39 of function NewFs() is high (> 15) (gocyclo)
    • Line 669: warning: cyclomatic complexity 32 of function (*Fs).rcFetch() is high (> 15) (gocyclo)
    • Line 962: warning: cyclomatic complexity 24 of function (*Fs).List() is high (> 15) (gocyclo)
    • Line 1240: warning: cyclomatic complexity 21 of function (*Fs).DirMove() is high (> 15) (gocyclo)
    • rclone/cmd/ncdu/ncdu.go
    • Line 738: warning: cyclomatic complexity 36 of function (*UI).Show() is high (> 15) (gocyclo)
    • Line 307: warning: cyclomatic complexity 29 of function (*UI).Draw() is high (> 15) (gocyclo)
    • Line 558: warning: cyclomatic complexity 17 of function (*ncduSort).Less() is high (> 15) (gocyclo)
    • rclone/vfs/file.go
    • Line 658: warning: cyclomatic complexity 21 of function (*File).Open() is high (> 15) (gocyclo)
    • Line 162: warning: cyclomatic complexity 17 of function (*File).rename() is high (> 15) (gocyclo)
    • rclone/backend/seafile/seafile.go
    • Line 150: warning: cyclomatic complexity 28 of function NewFs() is high (> 15) (gocyclo)
    • Line 299: warning: cyclomatic complexity 19 of function Config() is high (> 15) (gocyclo)
    • Line 816: warning: cyclomatic complexity 17 of function (*Fs).DirMove() is high (> 15) (gocyclo)
    • rclone/backend/crypt/cipher.go
    • Line 352: warning: cyclomatic complexity 25 of function (*Cipher).deobfuscateSegment() is high (> 15) (gocyclo)
    • Line 265: warning: cyclomatic complexity 20 of function (*Cipher).obfuscateSegment() is high (> 15) (gocyclo)
    • rclone/fs/walk/walk.go
    • Line 453: warning: cyclomatic complexity 22 of function walkRDirTree() is high (> 15) (gocyclo)
    • Line 358: warning: cyclomatic complexity 16 of function walk() is high (> 15) (gocyclo)
    • rclone/fs/backend_config.go
    • Line 305: warning: cyclomatic complexity 20 of function configAll() is high (> 15) (gocyclo)
    • Line 399: warning: cyclomatic complexity 19 of function backendConfigStep() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words