Preparing report...

Report for github.com/mutagen-io/mutagen

(v0.17.2)

A+    Excellent!    Found 50 issues across 688 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo92%

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.

    • pkg/synchronization/core/reconcile.go
    • Line 31: warning: cyclomatic complexity 20 of function (*reconciler).reconcile() is high (> 15) (gocyclo)
    • Line 168: warning: cyclomatic complexity 16 of function (*reconciler).handleDisagreementBidirectional() is high (> 15) (gocyclo)
    • cmd/mutagen/sync/monitor.go
    • Line 112: warning: cyclomatic complexity 17 of function monitorMain() is high (> 15) (gocyclo)
    • Line 33: warning: cyclomatic complexity 16 of function computeMonitorStatusLine() is high (> 15) (gocyclo)
    • pkg/url/url.go
    • Line 64: warning: cyclomatic complexity 30 of function (*URL).EnsureValid() is high (> 15) (gocyclo)
    • pkg/multiplexing/stream.go
    • Line 256: warning: cyclomatic complexity 27 of function (*Stream).Write() is high (> 15) (gocyclo)
    • Line 152: warning: cyclomatic complexity 22 of function (*Stream).Read() is high (> 15) (gocyclo)
    • pkg/synchronization/core/scan.go
    • Line 597: warning: cyclomatic complexity 44 of function Scan() is high (> 15) (gocyclo)
    • Line 315: warning: cyclomatic complexity 44 of function (*scanner).directory() is high (> 15) (gocyclo)
    • Line 146: warning: cyclomatic complexity 17 of function (*scanner).file() is high (> 15) (gocyclo)
    • pkg/synchronization/controller.go
    • Line 848: warning: cyclomatic complexity 85 of function (*controller).synchronize() is high (> 15) (gocyclo)
    • Line 676: warning: cyclomatic complexity 17 of function (*controller).run() is high (> 15) (gocyclo)
    • Line 326: warning: cyclomatic complexity 16 of function (*controller).flush() is high (> 15) (gocyclo)
    • pkg/synchronization/configuration.go
    • Line 17: warning: cyclomatic complexity 50 of function (*Configuration).EnsureValid() is high (> 15) (gocyclo)
    • Line 201: warning: cyclomatic complexity 21 of function (*Configuration).Equal() is high (> 15) (gocyclo)
    • Line 231: warning: cyclomatic complexity 18 of function MergeConfigurations() is high (> 15) (gocyclo)
    • pkg/multiplexing/multiplexer.go
    • Line 207: warning: cyclomatic complexity 59 of function (*Multiplexer).read() is high (> 15) (gocyclo)
    • Line 520: warning: cyclomatic complexity 16 of function (*Multiplexer).enqueue() is high (> 15) (gocyclo)
    • pkg/docker/flags.go
    • Line 35: warning: cyclomatic complexity 18 of function LoadDaemonConnectionFlagsFromURLParameters() is high (> 15) (gocyclo)
    • pkg/synchronization/endpoint/local/endpoint.go
    • Line 186: warning: cyclomatic complexity 40 of function NewEndpoint() is high (> 15) (gocyclo)
    • Line 540: warning: cyclomatic complexity 26 of function (*endpoint).watchPoll() is high (> 15) (gocyclo)
    • Line 750: warning: cyclomatic complexity 23 of function (*endpoint).watchRecursive() is high (> 15) (gocyclo)
    • Line 1219: warning: cyclomatic complexity 20 of function (*endpoint).Transition() is high (> 15) (gocyclo)
    • Line 1094: warning: cyclomatic complexity 19 of function (*endpoint).Stage() 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!