Preparing report...

Report for github.com/edouardparis/lntop

A    Great!    Found 45 issues across 50 files

Tweet

gofmt98%

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!


gocyclo92%

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.


golint12%

Golint is a linter for Go source code.

    • lntop/network/models/channel.go
    • Line 10: warning: exported const ChannelActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type ChannelsBalance should have comment or be unexported (golint)
    • Line 23: warning: exported method ChannelsBalance.MarshalLogObject should have comment or be unexported (golint)
    • Line 30: warning: exported type Channel should have comment or be unexported (golint)
    • Line 56: warning: exported method Channel.MarshalLogObject should have comment or be unexported (golint)
    • Line 75: warning: exported type ChannelUpdate should have comment or be unexported (golint)
    • Line 78: warning: exported type RoutingPolicy should have comment or be unexported (golint)
    • lntop/config/config.go
    • Line 14: warning: exported type Config should have comment or be unexported (golint)
    • Line 20: warning: exported type Logger should have comment or be unexported (golint)
    • Line 25: warning: exported type Network should have comment or be unexported (golint)
    • Line 38: warning: exported type Views should have comment or be unexported (golint)
    • Line 44: warning: exported type View should have comment or be unexported (golint)
    • Line 48: warning: exported function Load should have comment or be unexported (golint)
    • lntop/config/default.go
    • Line 9: warning: exported function DefaultFileContent should have comment or be unexported (golint)
    • Line 95: warning: exported function NewDefault should have comment or be unexported (golint)
    • lntop/ui/views/help.go
    • Line 13: warning: exported const HELP should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Help should have comment or be unexported (golint)
    • Line 20: warning: exported method Help.Name should have comment or be unexported (golint)
    • Line 24: warning: exported method Help.Wrap should have comment or be unexported (golint)
    • Line 29: warning: exported method Help.Delete should have comment or be unexported (golint)
    • Line 33: warning: exported method Help.Origin should have comment or be unexported (golint)
    • Line 37: warning: exported method Help.Cursor should have comment or be unexported (golint)
    • Line 41: warning: exported method Help.Speed should have comment or be unexported (golint)
    • Line 45: warning: exported method Help.Limits should have comment or be unexported (golint)
    • Line 51: warning: exported method Help.SetCursor should have comment or be unexported (golint)
    • Line 55: warning: exported method Help.SetOrigin should have comment or be unexported (golint)
    • Line 59: warning: exported method Help.Set should have comment or be unexported (golint)
    • Line 82: warning: exported function NewHelp should have comment or be unexported (golint)
    • lntop/ui/views/summary.go
    • Line 17: warning: exported const SUMMARY_LEFT should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type Summary should have comment or be unexported (golint)
    • Line 30: warning: exported method Summary.Set should have comment or be unexported (golint)
    • Line 111: warning: exported function NewSummary should have comment or be unexported (golint)
    • lntop/ui/views/transactions.go
    • Line 18: warning: exported const TRANSACTIONS should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported var DefaultTransactionsColumns should have comment or be unexported (golint)
    • Line 32: warning: exported type Transactions should have comment or be unexported (golint)
    • Line 52: warning: exported method Transactions.Index should have comment or be unexported (golint)
    • Line 58: warning: exported method Transactions.Name should have comment or be unexported (golint)
    • Line 62: warning: exported method Transactions.Wrap should have comment or be unexported (golint)
    • Line 81: warning: exported method Transactions.Origin should have comment or be unexported (golint)
    • Line 85: warning: exported method Transactions.Cursor should have comment or be unexported (golint)
    • Line 89: warning: exported method Transactions.SetCursor should have comment or be unexported (golint)
    • Line 104: warning: exported method Transactions.SetOrigin should have comment or be unexported (golint)
    • Line 118: warning: exported method Transactions.Speed should have comment or be unexported (golint)
    • Line 139: warning: exported method Transactions.Limits should have comment or be unexported (golint)
    • Line 145: warning: exported method Transactions.Sort should have comment or be unexported (golint)
    • Line 163: warning: exported method Transactions.Delete should have comment or be unexported (golint)
    • Line 177: warning: exported method Transactions.Set should have comment or be unexported (golint)
    • Line 273: warning: exported function NewTransactions should have comment or be unexported (golint)
    • lntop/network/backend/pool/pool.go
    • Line 26: warning: exported type Pool should have comment or be unexported (golint)
    • Line 40: warning: exported method Pool.Get should have comment or be unexported (golint)
    • Line 76: warning: exported method Pool.Close should have comment or be unexported (golint)
    • Line 96: warning: exported method Pool.Capacity should have comment or be unexported (golint)
    • Line 103: warning: exported method Pool.IsClosed should have comment or be unexported (golint)
    • Line 107: warning: exported function New should have comment or be unexported (golint)
    • lntop/network/models/payment.go
    • Line 5: warning: exported type Payment should have comment or be unexported (golint)
    • Line 12: warning: exported method Payment.MarshalLogObject should have comment or be unexported (golint)
    • lntop/network/models/wallet.go
    • Line 5: warning: exported type WalletBalance should have comment or be unexported (golint)
    • Line 11: warning: exported method WalletBalance.MarshalLogObject should have comment or be unexported (golint)
    • lntop/ui/models/transactions.go
    • Line 11: warning: exported type TransactionsSort should have comment or be unexported (golint)
    • Line 13: warning: exported type Transactions should have comment or be unexported (golint)
    • Line 20: warning: exported method Transactions.Current should have comment or be unexported (golint)
    • Line 24: warning: exported method Transactions.SetCurrent should have comment or be unexported (golint)
    • Line 28: warning: exported method Transactions.List should have comment or be unexported (golint)
    • Line 44: warning: exported method Transactions.Sort should have comment or be unexported (golint)
    • Line 52: warning: exported method Transactions.Get should have comment or be unexported (golint)
    • Line 60: warning: exported method Transactions.Contains should have comment or be unexported (golint)
    • Line 72: warning: exported method Transactions.Add should have comment or be unexported (golint)
    • Line 84: warning: exported method Transactions.Update should have comment or be unexported (golint)
    • Line 108: warning: exported method Models.RefreshTransactions should have comment or be unexported (golint)
    • lntop/ui/views/channel.go
    • Line 16: warning: exported const CHANNEL should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type Channel should have comment or be unexported (golint)
    • Line 26: warning: exported method Channel.Name should have comment or be unexported (golint)
    • Line 30: warning: exported method Channel.Empty should have comment or be unexported (golint)
    • Line 34: warning: exported method Channel.Wrap should have comment or be unexported (golint)
    • Line 39: warning: exported method Channel.Origin should have comment or be unexported (golint)
    • Line 43: warning: exported method Channel.Cursor should have comment or be unexported (golint)
    • Line 47: warning: exported method Channel.Speed should have comment or be unexported (golint)
    • Line 51: warning: exported method Channel.Limits should have comment or be unexported (golint)
    • Line 57: warning: exported method Channel.SetCursor should have comment or be unexported (golint)
    • Line 61: warning: exported method Channel.SetOrigin should have comment or be unexported (golint)
    • Line 65: warning: exported method Channel.Set should have comment or be unexported (golint)
    • Line 108: warning: exported method Channel.Delete should have comment or be unexported (golint)
    • Line 192: warning: exported function NewChannel should have comment or be unexported (golint)
    • lntop/ui/views/menu.go
    • Line 11: warning: exported const MENU should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type Menu should have comment or be unexported (golint)
    • Line 28: warning: exported method Menu.Name should have comment or be unexported (golint)
    • Line 32: warning: exported method Menu.Wrap should have comment or be unexported (golint)
    • Line 37: warning: exported method Menu.Origin should have comment or be unexported (golint)
    • Line 41: warning: exported method Menu.Cursor should have comment or be unexported (golint)
    • Line 45: warning: exported method Menu.Speed should have comment or be unexported (golint)
    • Line 53: warning: exported method Menu.Limits should have comment or be unexported (golint)
    • Line 59: warning: exported method Menu.SetCursor should have comment or be unexported (golint)
    • Line 68: warning: exported method Menu.SetOrigin should have comment or be unexported (golint)
    • Line 78: warning: exported method Menu.Current should have comment or be unexported (golint)
    • Line 93: warning: exported method Menu.Delete should have comment or be unexported (golint)
    • Line 93: warning: receiver name c should be consistent with previous receiver name h for Menu (golint)
    • Line 107: warning: exported method Menu.Set should have comment or be unexported (golint)
    • Line 175: warning: exported function NewMenu should have comment or be unexported (golint)
    • lntop/ui/views/views.go
    • Line 14: warning: exported type View should have comment or be unexported (golint)
    • Line 22: warning: exported type Views should have comment or be unexported (golint)
    • Line 36: warning: exported method Views.Get should have comment or be unexported (golint)
    • Line 60: warning: exported method Views.Layout should have comment or be unexported (golint)
    • Line 103: warning: exported function New should have comment or be unexported (golint)
    • Line 119: warning: exported function ToScid should have comment or be unexported (golint)
    • lntop/network/models/route.go
    • Line 5: warning: exported type Route should have comment or be unexported (golint)
    • Line 26: warning: exported method Route.MarshalLogObject should have comment or be unexported (golint)
    • Line 34: warning: exported type Hop should have comment or be unexported (golint)
    • lntop/ui/models/models.go
    • Line 13: warning: exported type Models should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported type Info should have comment or be unexported (golint)
    • Line 41: warning: exported method Models.RefreshInfo should have comment or be unexported (golint)
    • Line 50: warning: exported method Models.RefreshChannels should have comment or be unexported (golint)
    • Line 83: warning: exported type WalletBalance should have comment or be unexported (golint)
    • Line 87: warning: exported method Models.RefreshWalletBalance should have comment or be unexported (golint)
    • Line 96: warning: exported type ChannelsBalance should have comment or be unexported (golint)
    • Line 100: warning: exported method Models.RefreshChannelsBalance should have comment or be unexported (golint)
    • Line 109: warning: exported type RoutingLog should have comment or be unexported (golint)
    • Line 113: warning: exported const MaxRoutingEvents should have comment or be unexported (golint)
    • Line 115: warning: exported method Models.RefreshRouting should have comment or be unexported (golint)
    • lntop/logging/logging.go
    • Line 11: warning: exported type Field should have comment or be unexported (golint)
    • Line 12: warning: exported type ObjectEncoder should have comment or be unexported (golint)
    • Line 14: warning: exported type Logger should have comment or be unexported (golint)
    • Line 22: warning: exported function String should have comment or be unexported (golint)
    • Line 26: warning: exported function Duration should have comment or be unexported (golint)
    • Line 30: warning: exported function Int should have comment or be unexported (golint)
    • Line 34: warning: exported function Int64 should have comment or be unexported (golint)
    • Line 38: warning: exported function Error should have comment or be unexported (golint)
    • Line 42: warning: exported function Object should have comment or be unexported (golint)
    • Line 46: warning: exported function New should have comment or be unexported (golint)
    • Line 57: warning: exported function NewProductionLogger should have comment or be unexported (golint)
    • Line 63: warning: exported function NewDevelopmentLogger should have comment or be unexported (golint)
    • Line 69: warning: exported function NewNopLogger should have comment or be unexported (golint)
    • lntop/ui/cursor/cursor.go
    • Line 3: warning: exported type View should have comment or be unexported (golint)
    • Line 12: warning: exported function Down should have comment or be unexported (golint)
    • Line 33: warning: exported function Up should have comment or be unexported (golint)
    • Line 50: warning: exported function Right should have comment or be unexported (golint)
    • Line 67: warning: exported function Left should have comment or be unexported (golint)
    • Line 91: warning: exported function Home should have comment or be unexported (golint)
    • Line 102: warning: exported function End should have comment or be unexported (golint)
    • Line 120: warning: exported function PageDown should have comment or be unexported (golint)
    • Line 147: warning: exported function PageUp should have comment or be unexported (golint)
    • lntop/network/backend/lnd/lnd.go
    • Line 27: warning: exported type Client should have comment or be unexported (golint)
    • Line 32: warning: exported method Client.Close should have comment or be unexported (golint)
    • Line 36: warning: exported type RouterClient should have comment or be unexported (golint)
    • Line 41: warning: exported method RouterClient.Close should have comment or be unexported (golint)
    • Line 45: warning: exported type Backend should have comment or be unexported (golint)
    • Line 51: warning: exported method Backend.NodeName should have comment or be unexported (golint)
    • Line 55: warning: exported method Backend.Ping should have comment or be unexported (golint)
    • Line 64: warning: exported method Backend.Info should have comment or be unexported (golint)
    • Line 79: warning: exported method Backend.SubscribeInvoice should have comment or be unexported (golint)
    • Line 111: warning: exported method Backend.SubscribeTransactions should have comment or be unexported (golint)
    • Line 143: warning: exported method Backend.SubscribeChannels should have comment or be unexported (golint)
    • Line 164: warning: exported method Backend.SubscribeRoutingEvents should have comment or be unexported (golint)
    • Line 196: warning: exported method Backend.Client should have comment or be unexported (golint)
    • Line 208: warning: exported method Backend.RouterClient should have comment or be unexported (golint)
    • Line 220: warning: exported method Backend.NewClientConn should have comment or be unexported (golint)
    • Line 224: warning: exported method Backend.GetTransactions should have comment or be unexported (golint)
    • Line 241: warning: exported method Backend.GetWalletBalance should have comment or be unexported (golint)
    • Line 263: warning: exported method Backend.GetChannelsBalance should have comment or be unexported (golint)
    • Line 285: warning: exported method Backend.ListChannels should have comment or be unexported (golint)
    • Line 329: warning: exported method Backend.GetChannelInfo should have comment or be unexported (golint)
    • Line 368: warning: exported method Backend.GetNode should have comment or be unexported (golint)
    • Line 386: warning: exported method Backend.CreateInvoice should have comment or be unexported (golint)
    • Line 416: warning: exported method Backend.GetInvoice should have comment or be unexported (golint)
    • Line 441: warning: exported method Backend.SendPayment should have comment or be unexported (golint)
    • Line 467: warning: exported method Backend.DecodePayReq should have comment or be unexported (golint)
    • Line 483: warning: exported function New should have comment or be unexported (golint)
    • lntop/ui/views/channels.go
    • Line 18: warning: exported const CHANNELS should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported var DefaultChannelsColumns should have comment or be unexported (golint)
    • Line 39: warning: exported type Channels should have comment or be unexported (golint)
    • Line 60: warning: exported method Channels.Name should have comment or be unexported (golint)
    • Line 64: warning: exported method Channels.Wrap should have comment or be unexported (golint)
    • Line 83: warning: exported method Channels.Sort should have comment or be unexported (golint)
    • Line 101: warning: exported method Channels.Origin should have comment or be unexported (golint)
    • Line 105: warning: exported method Channels.Cursor should have comment or be unexported (golint)
    • Line 109: warning: exported method Channels.SetCursor should have comment or be unexported (golint)
    • Line 124: warning: exported method Channels.SetOrigin should have comment or be unexported (golint)
    • Line 138: warning: exported method Channels.Speed should have comment or be unexported (golint)
    • Line 159: warning: exported method Channels.Limits should have comment or be unexported (golint)
    • Line 165: warning: exported method Channels.Index should have comment or be unexported (golint)
    • Line 171: warning: exported method Channels.Delete should have comment or be unexported (golint)
    • Line 185: warning: exported method Channels.Set should have comment or be unexported (golint)
    • Line 281: warning: exported function NewChannels should have comment or be unexported (golint)
    • lntop/ui/views/transaction.go
    • Line 15: warning: exported const TRANSACTION should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 25: warning: exported method Transaction.Name should have comment or be unexported (golint)
    • Line 29: warning: exported method Transaction.Empty should have comment or be unexported (golint)
    • Line 33: warning: exported method Transaction.Wrap should have comment or be unexported (golint)
    • Line 38: warning: exported method Transaction.Origin should have comment or be unexported (golint)
    • Line 42: warning: exported method Transaction.Cursor should have comment or be unexported (golint)
    • Line 46: warning: exported method Transaction.Speed should have comment or be unexported (golint)
    • Line 50: warning: exported method Transaction.Limits should have comment or be unexported (golint)
    • Line 56: warning: exported method Transaction.SetCursor should have comment or be unexported (golint)
    • Line 60: warning: exported method Transaction.SetOrigin should have comment or be unexported (golint)
    • Line 64: warning: exported method Transaction.Set should have comment or be unexported (golint)
    • Line 107: warning: exported method Transaction.Delete should have comment or be unexported (golint)
    • Line 152: warning: exported function NewTransaction should have comment or be unexported (golint)
    • lntop/network/network.go
    • Line 11: warning: exported type Network should have comment or be unexported (golint)
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • lntop/network/options/channels.go
    • Line 3: warning: exported type Channel should have comment or be unexported (golint)
    • Line 5: warning: exported type ChannelOptions should have comment or be unexported (golint)
    • Line 13: warning: exported function WithChannelPending should have comment or be unexported (golint)
    • Line 15: warning: exported function WithChannelPublic should have comment or be unexported (golint)
    • Line 19: warning: exported function WithChannelPrivate should have comment or be unexported (golint)
    • Line 23: warning: exported function WithChannelActive should have comment or be unexported (golint)
    • Line 27: warning: exported function WithChannelInactive should have comment or be unexported (golint)
    • Line 31: warning: exported function NewChannelOptions should have comment or be unexported (golint)
    • lntop/doc.go
    • Line 1: warning: package comment should be of the form "Package lntop ..." (golint)
    • lntop/network/backend/mock/mock.go
    • Line 18: warning: exported type Backend should have comment or be unexported (golint)
    • Line 25: warning: exported method Backend.Ping should have comment or be unexported (golint)
    • Line 29: warning: exported method Backend.Info should have comment or be unexported (golint)
    • Line 33: warning: exported method Backend.SendPayment should have comment or be unexported (golint)
    • Line 33: warning: receiver name l should be consistent with previous receiver name b for Backend (golint)
    • Line 37: warning: exported method Backend.NodeName should have comment or be unexported (golint)
    • Line 41: warning: exported method Backend.SubscribeInvoice should have comment or be unexported (golint)
    • Line 45: warning: exported method Backend.SubscribeChannels should have comment or be unexported (golint)
    • Line 49: warning: exported method Backend.SubscribeTransactions should have comment or be unexported (golint)
    • Line 53: warning: exported method Backend.SubscribeRoutingEvents should have comment or be unexported (golint)
    • Line 57: warning: exported method Backend.GetNode should have comment or be unexported (golint)
    • Line 61: warning: exported method Backend.GetWalletBalance should have comment or be unexported (golint)
    • Line 65: warning: exported method Backend.GetTransactions should have comment or be unexported (golint)
    • Line 69: warning: exported method Backend.GetChannelsBalance should have comment or be unexported (golint)
    • Line 73: warning: exported method Backend.ListChannels should have comment or be unexported (golint)
    • Line 77: warning: exported method Backend.GetChannelInfo should have comment or be unexported (golint)
    • Line 81: warning: exported method Backend.DecodePayReq should have comment or be unexported (golint)
    • Line 85: warning: exported method Backend.CreateInvoice should have comment or be unexported (golint)
    • Line 111: warning: exported method Backend.GetInvoice should have comment or be unexported (golint)
    • Line 120: warning: exported function New should have comment or be unexported (golint)
    • lntop/network/models/info.go
    • Line 5: warning: exported type Info should have comment or be unexported (golint)
    • Line 20: warning: exported method Info.MarshalLogObject should have comment or be unexported (golint)
    • lntop/pubsub/pubsub.go
    • Line 13: warning: exported type PubSub should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 120: warning: exported method PubSub.Stop should have comment or be unexported (golint)
    • Line 126: warning: exported method PubSub.Run should have comment or be unexported (golint)
    • lntop/ui/models/sort.go
    • Line 8: warning: exported type Order should have comment or be unexported (golint)
    • Line 11: warning: exported const Asc should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported function IntSort should have comment or be unexported (golint)
    • Line 22: warning: exported function Int32Sort should have comment or be unexported (golint)
    • Line 29: warning: exported function Int64Sort should have comment or be unexported (golint)
    • Line 36: warning: exported function UInt64Sort should have comment or be unexported (golint)
    • Line 43: warning: exported function DateSort should have comment or be unexported (golint)
    • Line 59: warning: exported function StringSort should have comment or be unexported (golint)
    • Line 67: warning: exported function BoolSort should have comment or be unexported (golint)
    • lntop/ui/views/header.go
    • Line 13: warning: exported const HEADER should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type Header should have comment or be unexported (golint)
    • Line 22: warning: exported method Header.Set should have comment or be unexported (golint)
    • Line 65: warning: exported function NewHeader should have comment or be unexported (golint)
    • lntop/app/app.go
    • Line 10: warning: exported type App should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • lntop/network/models/routingevent.go
    • Line 8: warning: exported const RoutingSend should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported const RoutingStatusActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type RoutingEvent should have comment or be unexported (golint)
    • Line 36: warning: exported method RoutingEvent.Equals should have comment or be unexported (golint)
    • Line 40: warning: exported method RoutingEvent.Update should have comment or be unexported (golint)
    • lntop/ui/views/routing.go
    • Line 18: warning: exported const ROUTING should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported var DefaultRoutingColumns should have comment or be unexported (golint)
    • Line 36: warning: exported type Routing should have comment or be unexported (golint)
    • Line 55: warning: exported method Routing.Name should have comment or be unexported (golint)
    • Line 59: warning: exported method Routing.Wrap should have comment or be unexported (golint)
    • Line 78: warning: exported method Routing.Origin should have comment or be unexported (golint)
    • Line 82: warning: exported method Routing.Cursor should have comment or be unexported (golint)
    • Line 86: warning: exported method Routing.SetCursor should have comment or be unexported (golint)
    • Line 101: warning: exported method Routing.SetOrigin should have comment or be unexported (golint)
    • Line 115: warning: exported method Routing.Speed should have comment or be unexported (golint)
    • Line 137: warning: exported method Routing.Limits should have comment or be unexported (golint)
    • Line 146: warning: exported method Routing.Index should have comment or be unexported (golint)
    • Line 152: warning: exported method Routing.Delete should have comment or be unexported (golint)
    • Line 166: warning: exported method Routing.Set should have comment or be unexported (golint)
    • Line 266: warning: exported function NewRouting should have comment or be unexported (golint)
    • lntop/events/events.go
    • Line 4: warning: exported const BlockReceived should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Event should have comment or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • Line 27: warning: exported function NewWithData should have comment or be unexported (golint)
    • lntop/network/models/invoice.go
    • Line 9: warning: exported type Invoice should have comment or be unexported (golint)
    • Line 42: warning: exported method Invoice.GetRHash should have comment or be unexported (golint)
    • Line 46: warning: exported method Invoice.MarshalLogObject should have comment or be unexported (golint)
    • lntop/ui/models/channels.go
    • Line 10: warning: exported type ChannelsSort should have comment or be unexported (golint)
    • Line 12: warning: exported type Channels should have comment or be unexported (golint)
    • Line 20: warning: exported method Channels.List should have comment or be unexported (golint)
    • Line 36: warning: exported method Channels.Sort should have comment or be unexported (golint)
    • Line 44: warning: exported method Channels.Current should have comment or be unexported (golint)
    • Line 48: warning: exported method Channels.SetCurrent should have comment or be unexported (golint)
    • Line 52: warning: exported method Channels.Get should have comment or be unexported (golint)
    • Line 60: warning: exported method Channels.GetByChanPoint should have comment or be unexported (golint)
    • Line 64: warning: exported method Channels.Contains should have comment or be unexported (golint)
    • Line 69: warning: exported method Channels.Add should have comment or be unexported (golint)
    • Line 79: warning: exported method Channels.Update should have comment or be unexported (golint)
    • Line 120: warning: exported function NewChannels should have comment or be unexported (golint)
    • lntop/ui/color/color.go
    • Line 5: warning: exported type Color should have comment or be unexported (golint)
    • Line 25: warning: exported type Option should have comment or be unexported (golint)
    • Line 43: warning: exported function Bold should have comment or be unexported (golint)
    • Line 44: warning: exported function Background should have comment or be unexported (golint)
    • Line 46: warning: exported function Yellow should have comment or be unexported (golint)
    • Line 54: warning: exported function Green should have comment or be unexported (golint)
    • Line 67: warning: exported function Red should have comment or be unexported (golint)
    • Line 75: warning: exported function White should have comment or be unexported (golint)
    • Line 83: warning: exported function Cyan should have comment or be unexported (golint)
    • Line 94: warning: exported function Black should have comment or be unexported (golint)
    • Line 102: warning: exported function Magenta 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!