Preparing report...

Report for github.com/lu4p/ToRat

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


gocyclo100%

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.

No problems detected. Good job!


golint72%

Golint is a linter for Go source code.

    • ToRat/shared/models.go
    • Line 22: warning: exported type Void should have comment or be unexported (golint)
    • Line 24: warning: exported type Cmd should have comment or be unexported (golint)
    • Line 29: warning: exported type Shred should have comment or be unexported (golint)
    • Line 36: warning: exported type File should have comment or be unexported (golint)
    • Line 43: warning: exported type Dir should have comment or be unexported (golint)
    • Line 48: warning: exported type EncAsym should have comment or be unexported (golint)
    • Line 53: warning: exported type Hardware should have comment or be unexported (golint)
    • Line 65: warning: exported type OSInfo should have comment or be unexported (golint)
    • Line 72: warning: exported type Speedtest should have comment or be unexported (golint)
    • Line 80: warning: exported type Gomap should have comment or be unexported (golint)
    • ToRat/torat_client/rpcapi.go
    • Line 55: warning: exported method API.RunCmd should have comment or be unexported (golint)
    • Line 69: warning: exported method API.SendFile should have comment or be unexported (golint)
    • Line 85: warning: exported method API.RecvFile should have comment or be unexported (golint)
    • Line 89: warning: exported method API.LS should have comment or be unexported (golint)
    • Line 98: warning: exported method API.Speedtest should have comment or be unexported (golint)
    • Line 129: warning: exported method API.Screen should have comment or be unexported (golint)
    • Line 145: warning: exported method API.Reconnect should have comment or be unexported (golint)
    • Line 150: warning: exported method API.Cat should have comment or be unexported (golint)
    • Line 159: warning: exported method API.Cd should have comment or be unexported (golint)
    • Line 225: warning: exported method API.Gomap should have comment or be unexported (golint)
    • Line 237: warning: exported method API.GomapLocal should have comment or be unexported (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!


misspell86%

Misspell Finds commonly misspelled English words