Preparing report...

Report for github.com/etix/mirrorbits

(v0.5.1)

A+    Excellent!    Found 16 issues across 54 files

Tweet

gofmt96%

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

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

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!


gocyclo77%

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.

    • logs/logs.go
    • Line 152: warning: cyclomatic complexity 16 of function LogDownload() is high (> 15) (gocyclo)
    • daemon/monitor.go
    • Line 150: warning: cyclomatic complexity 35 of function (*monitor).MonitorLoop() is high (> 15) (gocyclo)
    • Line 388: warning: cyclomatic complexity 21 of function (*monitor).syncLoop() is high (> 15) (gocyclo)
    • Line 472: warning: cyclomatic complexity 19 of function (*monitor).healthCheck() is high (> 15) (gocyclo)
    • scan/rsync.go
    • Line 31: warning: cyclomatic complexity 30 of function (*RsyncScanner).Scan() is high (> 15) (gocyclo)
    • rpc/rpc.go
    • Line 436: warning: cyclomatic complexity 23 of function (*CLI).ScanMirror() is high (> 15) (gocyclo)
    • scan/scan.go
    • Line 242: warning: cyclomatic complexity 20 of function (*sourcescanner).walkSource() is high (> 15) (gocyclo)
    • Line 300: warning: cyclomatic complexity 17 of function ScanSource() is high (> 15) (gocyclo)
    • http/http.go
    • Line 212: warning: cyclomatic complexity 19 of function (*HTTP).mirrorHandler() is high (> 15) (gocyclo)
    • http/selection.go
    • Line 29: warning: cyclomatic complexity 52 of function (DefaultEngine).Selection() is high (> 15) (gocyclo)
    • cli/commands.go
    • Line 138: warning: cyclomatic complexity 27 of function (*cli).CmdList() is high (> 15) (gocyclo)
    • Line 548: warning: cyclomatic complexity 21 of function (*cli).CmdEdit() is high (> 15) (gocyclo)
    • Line 391: warning: cyclomatic complexity 19 of function (*cli).CmdScan() is high (> 15) (gocyclo)
    • Line 840: warning: cyclomatic complexity 17 of function (*cli).CmdStats() is high (> 15) (gocyclo)
    • main.go
    • Line 33: warning: cyclomatic complexity 24 of function main() is high (> 15) (gocyclo)
    • utils/utils.go
    • Line 170: warning: cyclomatic complexity 17 of function TimeKeyCoverage() is high (> 15) (gocyclo)
    • mirrors/mirrors_test.go
    • Line 87: warning: cyclomatic complexity 16 of function TestByRank_Less() is high (> 15) (gocyclo)
    • Line 474: warning: cyclomatic complexity 16 of function TestSetMirrorState() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words