Preparing report...

Report for github.com/jackspirou/tfs

A    Great!    Found 3 issues across 12 files

Tweet

gofmt75%

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!


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.


golint75%

Golint is a linter for Go source code.

    • tfs/state/state.go
    • Line 257: warning: exported method State.GoString should have comment or be unexported (golint)
    • Line 314: warning: exported method RemoteState.Empty should have comment or be unexported (golint)
    • Line 318: warning: exported method RemoteState.Equals should have comment or be unexported (golint)
    • Line 333: warning: exported method RemoteState.GoString should have comment or be unexported (golint)
    • Line 431: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 493: warning: exported method ModuleState.GoString should have comment or be unexported (golint)
    • Line 505: warning: should omit 2nd value from range; this loop is equivalent to `for name := range ...` (golint)
    • Line 541: warning: should omit 2nd value from range; this loop is equivalent to `for ak := range ...` (golint)
    • Line 575: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 714: warning: receiver name r should be consistent with previous receiver name s for ResourceState (golint)
    • Line 725: warning: receiver name r should be consistent with previous receiver name s for ResourceState (golint)
    • Line 732: warning: receiver name r should be consistent with previous receiver name s for ResourceState (golint)
    • Line 765: warning: receiver name r should be consistent with previous receiver name s for ResourceState (golint)
    • Line 793: warning: receiver name r should be consistent with previous receiver name s for ResourceState (golint)
    • Line 797: warning: exported method ResourceState.GoString should have comment or be unexported (golint)
    • Line 863: warning: exported method InstanceState.Empty should have comment or be unexported (golint)
    • Line 863: warning: receiver name s should be consistent with previous receiver name i for InstanceState (golint)
    • Line 867: warning: exported method InstanceState.Equal should have comment or be unexported (golint)
    • Line 867: warning: receiver name s should be consistent with previous receiver name i for InstanceState (golint)
    • Line 911: warning: exported method InstanceState.GoString should have comment or be unexported (golint)
    • Line 925: warning: should omit 2nd value from range; this loop is equivalent to `for ak := range ...` (golint)
    • tfs/state/state_v1.go
    • Line 81: warning: should omit 2nd value from range; this loop is equivalent to `for name := range ...` (golint)
    • Line 103: warning: should omit 2nd value from range; this loop is equivalent to `for ak := range ...` (golint)
    • Line 129: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 143: warning: comment on exported type ResourceStateV1 should be of the form "ResourceStateV1 ..." (with optional leading article) (golint)
    • Line 198: warning: exported method ResourceStateV1.GoString 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!