Preparing report...

Report for github.com/donkeysharp/gocho

A    Great!    Found 11 issues across 14 files

Tweet

gofmt85%

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!


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!


golint35%

Golint is a linter for Go source code.

    • gocho/pkg/info/info.go
    • Line 4: warning: exported const APP_NAME should have comment (or a comment on this block) or be unexported (golint)
    • gocho/pkg/node/packet.go
    • Line 10: warning: exported function NewAnnouncePacket should have comment or be unexported (golint)
    • Line 21: warning: exported function ParseAnnouncePacket should have comment or be unexported (golint)
    • gocho/pkg/cmds/cmds.go
    • Line 11: warning: exported function ConfigureAction should have comment or be unexported (golint)
    • Line 19: warning: exported function StartAction should have comment or be unexported (golint)
    • Line 48: warning: exported function New should have comment or be unexported (golint)
    • gocho/pkg/config/config.go
    • Line 9: warning: exported type Config should have comment or be unexported (golint)
    • Line 26: warning: exported function ConfigureWizard should have comment or be unexported (golint)
    • Line 30: warning: exported function LoadConfig should have comment or be unexported (golint)
    • gocho/pkg/node/index.go
    • Line 12: warning: exported const HTML_BODY should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: exported type FileServerResponseInterceptor should have comment or be unexported (golint)
    • Line 64: warning: exported method FileServerResponseInterceptor.WriteHeader should have comment or be unexported (golint)
    • Line 68: warning: exported method FileServerResponseInterceptor.Header should have comment or be unexported (golint)
    • gocho/pkg/node/node.go
    • Line 9: warning: exported const MULTICAST_ADDRESS should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type NodeInfo should have comment or be unexported (golint)
    • Line 27: warning: exported type Announcer should have comment or be unexported (golint)
    • Line 31: warning: exported method Announcer.Start should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign57%

IneffAssign detects ineffectual assignments in Go code.

    • gocho/pkg/config/utils.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/Pallinder/go-randomdata (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/mitchellh/go-homedir (invalid package name: "") (ineffassign)
    • Line 45: warning: undeclared name: randomdata (ineffassign)
    • Line 5: warning: "github.com/Pallinder/go-randomdata" imported but not used (ineffassign)
    • gocho/pkg/node/dashboard.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/donkeysharp/gocho/assets (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/donkeysharp/gocho/pkg/config (invalid package name: "") (ineffassign)
    • gocho/assets/assets.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/elazarl/go-bindata-assetfs (invalid package name: "") (ineffassign)
    • Line 7: warning: undeclared name: assetfs (ineffassign)
    • Line 8: warning: undeclared name: assetfs (ineffassign)
    • Line 8: warning: undeclared name: Asset (ineffassign)
    • Line 8: warning: undeclared name: AssetDir (ineffassign)
    • Line 8: warning: undeclared name: AssetInfo (ineffassign)
    • Line 4: warning: "github.com/elazarl/go-bindata-assetfs" imported but not used (ineffassign)
    • gocho/pkg/cmds/cmds.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/donkeysharp/gocho/pkg/config (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/donkeysharp/gocho/pkg/info (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/donkeysharp/gocho/pkg/node (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/urfave/cli (invalid package name: "") (ineffassign)
    • gocho/cmd/gocho/gocho.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/donkeysharp/gocho/pkg/cmds (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!