Preparing report...

Report for github.com/havoc-io/mutagen

A+    Excellent!    Found 72 issues across 602 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!


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.

    • mutagen/pkg/synchronization/core/scan.go
    • Line 473: warning: cyclomatic complexity 46 of function Scan() is high (> 15) (gocyclo)
    • Line 293: warning: cyclomatic complexity 32 of function (*scanner).directory() is high (> 15) (gocyclo)
    • Line 136: warning: cyclomatic complexity 16 of function (*scanner).file() is high (> 15) (gocyclo)

golint93%

Golint is a linter for Go source code.

    • mutagen/pkg/filesystem/open.go
    • Line 98: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 112: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 149: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/scripts/build.go
    • Line 313: warning: exported type ArchiveBuilder should have comment or be unexported (golint)
    • Line 320: warning: exported function NewArchiveBuilder should have comment or be unexported (golint)
    • Line 343: warning: exported method ArchiveBuilder.Close should have comment or be unexported (golint)
    • Line 360: warning: exported method ArchiveBuilder.Add should have comment or be unexported (golint)
    • Line 461: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • mutagen/pkg/url/parse_local.go
    • Line 18: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 37: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/compose/project.go
    • Line 515: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 538: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/cmd/mutagen/compose/up.go
    • Line 230: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/filesystem/mode.go
    • Line 59: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/filesystem/normalize.go
    • Line 47: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 53: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/synchronization/core/scan.go
    • Line 325: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 496: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • mutagen/pkg/synchronization/core/transition.go
    • Line 173: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 218: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 803: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 875: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 882: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/synchronization/endpoint/local/endpoint.go
    • Line 1020: warning: error should be the last type when returning multiple items (golint)
    • Line 1052: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 1244: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/compose/paths.go
    • Line 58: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/filesystem/behavior/executability_fast_format.go
    • Line 16: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 27: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/filesystem/behavior/unicode_fast_format.go
    • Line 16: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 27: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/filesystem/permissions.go
    • Line 87: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/url/parse_ssh.go
    • Line 146: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/filesystem/behavior/executability.go
    • Line 70: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 134: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/cmd/mutagen/sync/create.go
    • Line 163: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 184: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/synchronization/controller.go
    • Line 965: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 975: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1197: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • mutagen/pkg/agent/bundle.go
    • Line 61: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 73: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!