Preparing report...

Report for github.com/opendexnetwork/opendex-docker

A    Great!    Found 43 issues across 61 files

Tweet

gofmt88%

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!


gocyclo96%

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.


golint29%

Golint is a linter for Go source code.

    • opendex-docker/launcher/service/base/service.go
    • Line 22: warning: exported type Service should have comment or be unexported (golint)
    • Line 40: warning: exported function New should have comment or be unexported (golint)
    • Line 63: warning: exported method Service.GetName should have comment or be unexported (golint)
    • Line 108: warning: exported method Service.GetStatus should have comment or be unexported (golint)
    • Line 116: warning: exported method Service.Start should have comment or be unexported (golint)
    • Line 121: warning: exported method Service.Stop should have comment or be unexported (golint)
    • Line 126: warning: exported method Service.Restart should have comment or be unexported (golint)
    • Line 131: warning: exported method Service.Create should have comment or be unexported (golint)
    • Line 136: warning: exported method Service.Up should have comment or be unexported (golint)
    • Line 150: warning: exported method Service.GetLogs should have comment or be unexported (golint)
    • Line 177: warning: exported method Service.FollowLogs should have comment or be unexported (golint)
    • Line 209: warning: exported method Service.Exec should have comment or be unexported (golint)
    • Line 238: warning: don't use underscores in Go names; var exec_ should be exec (golint)
    • Line 257: warning: exported method Service.Apply should have comment or be unexported (golint)
    • Line 273: warning: exported method Service.GetImage should have comment or be unexported (golint)
    • Line 277: warning: exported method Service.GetHostname should have comment or be unexported (golint)
    • Line 281: warning: exported method Service.GetCommand should have comment or be unexported (golint)
    • Line 285: warning: exported method Service.GetEnvironment should have comment or be unexported (golint)
    • Line 289: warning: exported method Service.GetPorts should have comment or be unexported (golint)
    • Line 293: warning: exported method Service.GetVolumes should have comment or be unexported (golint)
    • Line 297: warning: exported method Service.IsDisabled should have comment or be unexported (golint)
    • Line 301: warning: exported method Service.GetRpcParams should have comment or be unexported (golint)
    • Line 305: warning: exported method Service.GetDefaultConfig should have comment or be unexported (golint)
    • Line 317: warning: exported method Service.GetStartedAt should have comment or be unexported (golint)
    • Line 325: warning: exported method Service.GetDataDir should have comment or be unexported (golint)
    • Line 329: warning: exported method Service.GetMode should have comment or be unexported (golint)
    • Line 333: warning: exported method Service.Rescue should have comment or be unexported (golint)
    • Line 337: warning: exported method Service.Remove should have comment or be unexported (golint)
    • Line 342: warning: exported method Service.RemoveData should have comment or be unexported (golint)
    • Line 352: warning: exported method Service.IsRunning should have comment or be unexported (golint)
    • opendex-docker/launcher/service/boltz/service.go
    • Line 11: warning: exported type Base should have comment or be unexported (golint)
    • Line 13: warning: exported type Service should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 32: warning: exported type Info should have comment or be unexported (golint)
    • Line 37: warning: exported method Service.GetInfo should have comment or be unexported (golint)
    • Line 58: warning: exported method Service.GetStatus should have comment or be unexported (golint)
    • Line 79: warning: exported method Service.Apply should have comment or be unexported (golint)
    • Line 104: warning: exported method Service.GetRpcParams should have comment or be unexported (golint)
    • opendex-docker/launcher/service/geth/service.go
    • Line 9: warning: exported type Base should have comment or be unexported (golint)
    • Line 11: warning: exported type Mode should have comment or be unexported (golint)
    • Line 14: warning: exported const Native should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type RpcParams should have comment or be unexported (golint)
    • Line 28: warning: exported method RpcParams.ToUri should have comment or be unexported (golint)
    • Line 35: warning: exported type Service should have comment or be unexported (golint)
    • Line 42: warning: exported function New should have comment or be unexported (golint)
    • Line 53: warning: exported method Service.Apply should have comment or be unexported (golint)
    • Line 111: warning: exported method Service.GetRpcParams should have comment or be unexported (golint)
    • Line 115: warning: exported method Service.GetMode should have comment or be unexported (golint)
    • opendex-docker/launcher/core/cleanup.go
    • Line 53: warning: exported method Launcher.Create should have comment or be unexported (golint)
    • Line 57: warning: exported method Launcher.Start should have comment or be unexported (golint)
    • Line 61: warning: exported method Launcher.Restart should have comment or be unexported (golint)
    • Line 65: warning: exported method Launcher.Stop should have comment or be unexported (golint)
    • Line 97: warning: exported method Launcher.Down should have comment or be unexported (golint)
    • Line 185: warning: exported method Launcher.Cleanup should have comment or be unexported (golint)
    • opendex-docker/launcher/core/setup.go
    • Line 26: warning: exported const DefaultWalletPassword should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported method Launcher.Pull should have comment or be unexported (golint)
    • Line 41: warning: exported method Launcher.Setup should have comment or be unexported (golint)
    • Line 176: warning: exported type ApiError should have comment or be unexported (golint)
    • opendex-docker/launcher/service/webui/service.go
    • Line 8: warning: exported type Base should have comment or be unexported (golint)
    • Line 10: warning: exported type Service should have comment or be unexported (golint)
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 25: warning: exported method Service.Apply should have comment or be unexported (golint)
    • opendex-docker/launcher/service/opendexd/service.go
    • Line 16: warning: exported type Base should have comment or be unexported (golint)
    • Line 18: warning: exported type Service should have comment or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported type LndInfo should have comment or be unexported (golint)
    • Line 39: warning: exported type ConnextInfo should have comment or be unexported (golint)
    • Line 43: warning: exported type Info should have comment or be unexported (golint)
    • Line 49: warning: exported method Service.GetInfo should have comment or be unexported (golint)
    • Line 83: warning: exported method Service.GetStatus should have comment or be unexported (golint)
    • Line 142: warning: exported method Service.Apply should have comment or be unexported (golint)
    • Line 195: warning: exported type RpcParams should have comment or be unexported (golint)
    • Line 202: warning: exported method Service.GetRpcParams should have comment or be unexported (golint)
    • opendex-docker/launcher/utils/run.go
    • Line 15: warning: exported function Run should have comment or be unexported (golint)
    • Line 40: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 52: warning: exported function Output should have comment or be unexported (golint)
    • Line 76: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • opendex-docker/launcher/core/gen.go
    • Line 65: warning: exported method Launcher.GenDockerComposeYaml should have comment or be unexported (golint)
    • Line 91: warning: exported type ExportedConfig should have comment or be unexported (golint)
    • Line 97: warning: exported type ServiceConfig should have comment or be unexported (golint)
    • Line 134: warning: exported method Launcher.GenConfigJson should have comment or be unexported (golint)
    • Line 161: warning: exported method Launcher.Gen should have comment or be unexported (golint)
    • opendex-docker/launcher/core/launcher.go
    • Line 34: warning: exported type Launcher should have comment or be unexported (golint)
    • Line 151: warning: exported function NewLauncher should have comment or be unexported (golint)
    • Line 306: warning: exported method Launcher.AddServiceFlags should have comment or be unexported (golint)
    • Line 339: warning: don't use underscores in Go names; var proxy_ should be proxy (golint)
    • Line 354: warning: don't use underscores in Go names; var connext_ should be connext (golint)
    • Line 359: warning: don't use underscores in Go names; var opendexd_ should be opendexd (golint)
    • Line 364: warning: don't use underscores in Go names; var arby_ should be arby (golint)
    • Line 369: warning: don't use underscores in Go names; var webui_ should be webui (golint)
    • Line 395: warning: don't use underscores in Go names; var bitcoind_ should be bitcoind (golint)
    • Line 400: warning: don't use underscores in Go names; var litecoind_ should be litecoind (golint)
    • Line 405: warning: don't use underscores in Go names; var geth_ should be geth (golint)
    • Line 410: warning: don't use underscores in Go names; var boltz_ should be boltz (golint)
    • Line 442: warning: don't use underscores in Go names; var bitcoind_ should be bitcoind (golint)
    • Line 447: warning: don't use underscores in Go names; var litecoind_ should be litecoind (golint)
    • Line 452: warning: don't use underscores in Go names; var geth_ should be geth (golint)
    • Line 457: warning: don't use underscores in Go names; var boltz_ should be boltz (golint)
    • Line 498: warning: exported method Launcher.Run should have comment or be unexported (golint)
    • Line 506: warning: exported method Launcher.GetService should have comment or be unexported (golint)
    • Line 513: warning: comment on exported method Launcher.Apply should be of the form "Apply ..." (golint)
    • Line 525: warning: exported method Launcher.GetNetwork should have comment or be unexported (golint)
    • Line 529: warning: exported method Launcher.GetExternalIp should have comment or be unexported (golint)
    • Line 533: warning: exported method Launcher.GetNetworkDir should have comment or be unexported (golint)
    • Line 537: warning: exported method Launcher.GetBackupDir should have comment or be unexported (golint)
    • Line 541: warning: exported method Launcher.GetDataDir should have comment or be unexported (golint)
    • Line 545: warning: exported method Launcher.Close should have comment or be unexported (golint)
    • opendex-docker/launcher/service/arby/service.go
    • Line 12: warning: exported type Base should have comment or be unexported (golint)
    • Line 13: warning: exported type Opendexd should have comment or be unexported (golint)
    • Line 14: warning: exported type OpendexdRpcParams should have comment or be unexported (golint)
    • Line 16: warning: exported type Service should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 43: warning: exported method Service.Apply should have comment or be unexported (golint)
    • Line 86: warning: exported method Service.GetStatus should have comment or be unexported (golint)
    • opendex-docker/launcher/service/proxy/service.go
    • Line 13: warning: exported type Base should have comment or be unexported (golint)
    • Line 15: warning: exported type Service should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 57: warning: exported method Service.GetStatus should have comment or be unexported (golint)
    • Line 73: warning: exported method Service.Apply should have comment or be unexported (golint)
    • Line 101: warning: exported type RpcParams should have comment or be unexported (golint)
    • Line 107: warning: exported method RpcParams.ToUri should have comment or be unexported (golint)
    • Line 111: warning: exported method Service.GetRpcParams should have comment or be unexported (golint)
    • opendex-docker/launcher/service/bitcoind/config.go
    • Line 9: warning: exported type Mode should have comment or be unexported (golint)
    • Line 12: warning: exported const Native should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type BaseConfig should have comment or be unexported (golint)
    • Line 20: warning: exported type Config should have comment or be unexported (golint)
    • Line 32: warning: exported method Service.GetDefaultConfig should have comment or be unexported (golint)
    • opendex-docker/launcher/service/bitcoind/service.go
    • Line 10: warning: exported type Base should have comment or be unexported (golint)
    • Line 12: warning: exported type Service should have comment or be unexported (golint)
    • Line 19: warning: exported type RpcParams should have comment or be unexported (golint)
    • Line 29: warning: exported function New should have comment or be unexported (golint)
    • Line 46: warning: exported method Service.Apply should have comment or be unexported (golint)
    • Line 84: warning: exported method Service.GetRpcParams should have comment or be unexported (golint)
    • Line 88: warning: exported method Service.GetMode should have comment or be unexported (golint)
    • opendex-docker/launcher/service/lnd/config.go
    • Line 9: warning: exported type BaseConfig should have comment or be unexported (golint)
    • Line 11: warning: exported type Mode should have comment or be unexported (golint)
    • Line 14: warning: exported const Native should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type Config should have comment or be unexported (golint)
    • Line 26: warning: exported method Service.GetDefaultConfig should have comment or be unexported (golint)
    • opendex-docker/launcher/service/lnd/service.go
    • Line 17: warning: exported type Base should have comment or be unexported (golint)
    • Line 19: warning: exported type Chain should have comment or be unexported (golint)
    • Line 22: warning: exported const Bitcoin should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type Service should have comment or be unexported (golint)
    • Line 38: warning: exported function New should have comment or be unexported (golint)
    • Line 50: warning: exported type Info should have comment or be unexported (golint)
    • Line 55: warning: exported method Service.GetInfo should have comment or be unexported (golint)
    • Line 176: warning: exported method Service.UseNeutrino should have comment or be unexported (golint)
    • Line 201: warning: exported method Service.GetLndPid should have comment or be unexported (golint)
    • Line 214: warning: exported method Service.GetStatus should have comment or be unexported (golint)
    • Line 246: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 256: warning: exported method Service.Apply should have comment or be unexported (golint)
    • Line 359: warning: exported method Service.GetRpcParams should have comment or be unexported (golint)
    • Line 370: warning: exported method Service.Rescue should have comment or be unexported (golint)
    • opendex-docker/launcher/service/litecoind/service.go
    • Line 8: warning: exported type Base should have comment or be unexported (golint)
    • Line 10: warning: exported type Service should have comment or be unexported (golint)
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method Service.Apply should have comment or be unexported (golint)
    • opendex-docker/launcher/service/connext/service.go
    • Line 14: warning: exported type Base should have comment or be unexported (golint)
    • Line 22: warning: exported type Service should have comment or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported method Service.IsHealthy should have comment or be unexported (golint)
    • Line 52: warning: exported method Service.GetStatus should have comment or be unexported (golint)
    • Line 68: warning: exported method Service.UseVector should have comment or be unexported (golint)
    • Line 72: warning: exported method Service.Apply should have comment or be unexported (golint)
    • Line 144: warning: exported method Service.GetRpcParams should have comment or be unexported (golint)
    • opendex-docker/launcher/core/getinfo.go
    • Line 9: warning: exported type WalletsInfo should have comment or be unexported (golint)
    • Line 14: warning: exported type BackupInfo should have comment or be unexported (golint)
    • Line 19: warning: exported type Info should have comment or be unexported (golint)
    • Line 24: warning: exported method Launcher.UsingDefaultPassword should have comment or be unexported (golint)
    • Line 28: warning: exported method Launcher.GetInfo 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!