Preparing report...

Report for github.com/stampzilla/stampzilla-go

A+    Excellent!    Found 107 issues across 159 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!


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.


golint35%

Golint is a linter for Go source code.

    • stampzilla-go/nodes/stampzilla-server/store/destinations.go
    • Line 10: warning: exported method Store.GetDestinations should have comment or be unexported (golint)
    • Line 16: warning: exported method Store.AddOrUpdateDestination should have comment or be unexported (golint)
    • Line 35: warning: exported method Store.TriggerDestination should have comment or be unexported (golint)
    • Line 49: warning: exported method Store.ReleaseDestination should have comment or be unexported (golint)
    • Line 63: warning: exported method Store.GetSenderDestinations should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-google-assistant/storage.go
    • Line 13: warning: exported type Access should have comment or be unexported (golint)
    • Line 18: warning: exported type JSONStorage should have comment or be unexported (golint)
    • Line 26: warning: exported function NewJSONStorage should have comment or be unexported (golint)
    • Line 37: warning: exported method JSONStorage.Clone should have comment or be unexported (golint)
    • Line 41: warning: exported method JSONStorage.Close should have comment or be unexported (golint)
    • Line 44: warning: exported method JSONStorage.LoadFromDisk should have comment or be unexported (golint)
    • Line 74: warning: exported method JSONStorage.Unlock should have comment or be unexported (golint)
    • Line 79: warning: exported method JSONStorage.GetClient should have comment or be unexported (golint)
    • Line 89: warning: exported method JSONStorage.SetClient should have comment or be unexported (golint)
    • Line 100: warning: exported method JSONStorage.SaveAuthorize should have comment or be unexported (golint)
    • Line 108: warning: exported method JSONStorage.LoadAuthorize should have comment or be unexported (golint)
    • Line 118: warning: exported method JSONStorage.RemoveAuthorize should have comment or be unexported (golint)
    • Line 126: warning: exported method JSONStorage.SaveAccess should have comment or be unexported (golint)
    • Line 137: warning: exported method JSONStorage.LoadAccess should have comment or be unexported (golint)
    • Line 148: warning: exported method JSONStorage.RemoveAccess should have comment or be unexported (golint)
    • Line 156: warning: exported method JSONStorage.LoadRefresh should have comment or be unexported (golint)
    • Line 166: warning: exported method JSONStorage.RemoveRefresh should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-deconz/config.go
    • Line 14: warning: exported type Config should have comment or be unexported (golint)
    • Line 23: warning: exported type LocalConfig should have comment or be unexported (golint)
    • Line 27: warning: exported method LocalConfig.Save should have comment or be unexported (golint)
    • Line 39: warning: exported method LocalConfig.Load should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-streamdeck/streamdeck/streamdeck.go
    • Line 12: warning: exported var NUM_KEYS should have comment or be unexported (golint)
    • Line 17: warning: exported var NUM_FIRST_PAGE_PIXELS should have comment or be unexported (golint)
    • Line 30: warning: exported type StreamDeck should have comment or be unexported (golint)
    • Line 37: warning: exported function FindDecks should have comment or be unexported (golint)
    • Line 53: warning: exported method StreamDeck.Open should have comment or be unexported (golint)
    • Line 64: warning: exported method StreamDeck.Close should have comment or be unexported (golint)
    • Line 68: warning: exported method StreamDeck.Reset should have comment or be unexported (golint)
    • Line 73: warning: exported method StreamDeck.SetBrightness should have comment or be unexported (golint)
    • Line 80: warning: exported method StreamDeck.WriteImageToKey should have comment or be unexported (golint)
    • Line 100: warning: exported method StreamDeck.OnKeyDown should have comment or be unexported (golint)
    • Line 104: warning: exported method StreamDeck.OnKeyUp should have comment or be unexported (golint)
    • Line 108: warning: exported method StreamDeck.OnKeyChange should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-nibe/nibe/nibe.go
    • Line 12: warning: exported type Nibe should have comment or be unexported (golint)
    • Line 32: warning: exported type Message should have comment or be unexported (golint)
    • Line 46: warning: exported function New should have comment or be unexported (golint)
    • Line 54: warning: exported method Nibe.Connect should have comment or be unexported (golint)
    • Line 66: warning: exported method Nibe.Stop should have comment or be unexported (golint)
    • Line 76: warning: exported method Nibe.OnUpdate should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/models/persons/list.go
    • Line 13: warning: exported type PersonMapWithPassword should have comment or be unexported (golint)
    • Line 14: warning: exported type PersonMap should have comment or be unexported (golint)
    • Line 17: warning: exported type List should have comment or be unexported (golint)
    • Line 22: warning: exported function NewList should have comment or be unexported (golint)
    • Line 75: warning: comment on exported method List.Delete should be of the form "Delete ..." (golint)
    • Line 84: warning: comment on exported method List.GetByUsernameWithPassowrd should be of the form "GetByUsernameWithPassowrd ..." (golint)
    • Line 97: warning: exported method List.Save should have comment or be unexported (golint)
    • Line 113: warning: exported method List.Load should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/models/notification/email/email.go
    • Line 9: warning: exported type EmailSender should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 25: warning: exported method EmailSender.Trigger should have comment or be unexported (golint)
    • Line 29: warning: exported method EmailSender.Release should have comment or be unexported (golint)
    • Line 48: warning: exported method EmailSender.Destinations should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/servermain/servermain.go
    • Line 43: warning: exported method Main.Run should have comment or be unexported (golint)
    • Line 69: warning: exported method Main.TLSConfig should have comment or be unexported (golint)
    • Line 69: warning: receiver name m should be consistent with previous receiver name c for Main (golint)
    • Line 88: warning: receiver name m should be consistent with previous receiver name c for Main (golint)
    • stampzilla-go/nodes/stampzilla-server/models/notification/wirepusher/wirepusher.go
    • Line 10: warning: exported type WirePusherSender should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 25: warning: exported method WirePusherSender.Trigger should have comment or be unexported (golint)
    • Line 37: warning: exported method WirePusherSender.Release should have comment or be unexported (golint)
    • Line 89: warning: exported method WirePusherSender.Destinations should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/store/store.go
    • Line 15: warning: exported type Nodes should have comment or be unexported (golint)
    • Line 16: warning: exported type Connections should have comment or be unexported (golint)
    • Line 17: warning: exported type UpdateCallback should have comment or be unexported (golint)
    • Line 18: warning: exported type UserDemoteCallback should have comment or be unexported (golint)
    • Line 21: warning: exported type Store should have comment or be unexported (golint)
    • Line 41: warning: exported function New should have comment or be unexported (golint)
    • Line 74: warning: exported method Store.OnUpdate should have comment or be unexported (golint)
    • Line 80: warning: exported method Store.OnUserDemote should have comment or be unexported (golint)
    • stampzilla-go/pkg/types/duration.go
    • Line 9: warning: exported type Duration should have comment or be unexported (golint)
    • Line 15: warning: exported method Duration.MarshalJSON should have comment or be unexported (golint)
    • Line 19: warning: exported method Duration.UnmarshalJSON should have comment or be unexported (golint)
    • stampzilla-go/pkg/installer/process.go
    • Line 11: warning: exported type Process should have comment or be unexported (golint)
    • Line 22: warning: exported type ProcessStatus should have comment or be unexported (golint)
    • Line 28: warning: exported function NewProcess should have comment or be unexported (golint)
    • Line 37: warning: exported method Process.Start should have comment or be unexported (golint)
    • Line 78: warning: exported method Process.Stop should have comment or be unexported (golint)
    • Line 98: warning: exported function Run should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-enocean/state.go
    • Line 11: warning: exported type State should have comment or be unexported (golint)
    • Line 17: warning: exported function NewState should have comment or be unexported (golint)
    • Line 21: warning: exported method State.Device should have comment or be unexported (golint)
    • Line 31: warning: exported method State.DeviceByString should have comment or be unexported (golint)
    • Line 40: warning: exported method State.AddDevice should have comment or be unexported (golint)
    • Line 48: warning: exported method State.RemoveDevice should have comment or be unexported (golint)
    • Line 55: warning: exported function NewDevice should have comment or be unexported (golint)
    • Line 61: warning: exported type Device should have comment or be unexported (golint)
    • Line 65: warning: don't use underscores in Go names; struct field On_ should be On (golint)
    • Line 77: warning: exported method Device.HasSingleRecvEEP should have comment or be unexported (golint)
    • Line 88: warning: exported method Device.AddEepForSending should have comment or be unexported (golint)
    • Line 94: warning: exported method Device.AddEepForReceiving should have comment or be unexported (golint)
    • Line 100: warning: exported method Device.Id should have comment or be unexported (golint)
    • Line 109: warning: exported method Device.IdString should have comment or be unexported (golint)
    • Line 115: warning: exported method Device.SetOn should have comment or be unexported (golint)
    • Line 121: warning: exported method Device.On should have comment or be unexported (golint)
    • Line 127: warning: exported method Device.SetId should have comment or be unexported (golint)
    • Line 133: warning: exported method Device.SetPowerW should have comment or be unexported (golint)
    • Line 139: warning: exported method Device.GetPowerW should have comment or be unexported (golint)
    • Line 145: warning: exported method Device.SetPowerkWh should have comment or be unexported (golint)
    • Line 151: warning: exported method Device.GetPowerkWh should have comment or be unexported (golint)
    • Line 164: warning: exported method Device.CmdOn should have comment or be unexported (golint)
    • Line 174: warning: exported method Device.CmdOff should have comment or be unexported (golint)
    • Line 183: warning: exported method Device.CmdToggle should have comment or be unexported (golint)
    • Line 192: warning: exported method Device.CmdDim should have comment or be unexported (golint)
    • Line 201: warning: exported method Device.CmdLearn should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/models/devices/device.go
    • Line 10: warning: exported type ID should have comment or be unexported (golint)
    • Line 18: warning: exported function NewIDFromString should have comment or be unexported (golint)
    • Line 30: warning: exported method ID.IsZero should have comment or be unexported (golint)
    • Line 34: warning: exported method ID.Bytes should have comment or be unexported (golint)
    • Line 38: warning: exported method ID.MarshalText should have comment or be unexported (golint)
    • Line 43: warning: exported method ID.UnmarshalText should have comment or be unexported (golint)
    • Line 53: warning: exported type Device should have comment or be unexported (golint)
    • Line 78: warning: exported method Device.MarshalJSON should have comment or be unexported (golint)
    • Line 155: warning: exported type DeviceMap should have comment or be unexported (golint)
    • Line 157: warning: exported type List should have comment or be unexported (golint)
    • Line 162: warning: exported function NewList should have comment or be unexported (golint)
    • Line 182: warning: comment on exported method List.SetState should be of the form "SetState ..." (golint)
    • Line 214: warning: exported method List.Remove should have comment or be unexported (golint)
    • Line 234: warning: exported method List.MarshalJSON should have comment or be unexported (golint)
    • Line 240: warning: exported method List.UnmarshalJSON should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/models/notification/file/file.go
    • Line 10: warning: exported type FileSender should have comment or be unexported (golint)
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • Line 23: warning: exported method FileSender.Trigger should have comment or be unexported (golint)
    • Line 35: warning: exported method FileSender.Release should have comment or be unexported (golint)
    • Line 75: warning: exported method FileSender.Destinations should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/models/notification/pushbullet/pushbullet.go
    • Line 11: warning: exported type PushbulletSender should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method PushbulletSender.Trigger should have comment or be unexported (golint)
    • Line 57: warning: exported method PushbulletSender.Release should have comment or be unexported (golint)
    • Line 61: warning: exported method PushbulletSender.Destinations should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/store/nodes.go
    • Line 14: warning: exported method Store.GetNodes should have comment or be unexported (golint)
    • Line 20: warning: exported method Store.GetNode should have comment or be unexported (golint)
    • Line 27: warning: exported method Store.AddOrUpdateNode should have comment or be unexported (golint)
    • Line 61: warning: exported method Store.SaveNode should have comment or be unexported (golint)
    • Line 85: warning: exported method Store.SaveNodes should have comment or be unexported (golint)
    • Line 98: warning: exported method Store.LoadNodes should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-deconz/models/sensor.go
    • Line 9: warning: comment on exported type Sensors should be of the form "Sensors ..." (with optional leading article) (golint)
    • Line 33: warning: exported function NewSensors should have comment or be unexported (golint)
    • Line 37: warning: exported type Sensor should have comment or be unexported (golint)
    • Line 49: warning: comment on exported method Sensor.GetID should be of the form "GetID ..." (golint)
    • Line 55: warning: exported method Sensor.GenerateDevice should have comment or be unexported (golint)
    • Line 76: warning: exported function SensorToDeviceState should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-tibber/model.go
    • Line 12: warning: exported type Response should have comment or be unexported (golint)
    • Line 22: warning: exported type CurrentSubscription should have comment or be unexported (golint)
    • Line 26: warning: exported type PriceInfo should have comment or be unexported (golint)
    • Line 32: warning: exported type Price should have comment or be unexported (golint)
    • Line 41: warning: exported type Prices should have comment or be unexported (golint)
    • Line 47: warning: exported function NewPrices should have comment or be unexported (golint)
    • Line 53: warning: exported method Prices.Add should have comment or be unexported (golint)
    • Line 59: warning: exported method Prices.SetCheapestChargeStart should have comment or be unexported (golint)
    • Line 65: warning: exported method Prices.CheapestChargeStart should have comment or be unexported (golint)
    • Line 71: warning: exported method Prices.Last should have comment or be unexported (golint)
    • Line 87: warning: exported method Prices.Current should have comment or be unexported (golint)
    • Line 99: warning: exported method Prices.HasTomorrowPricesYet should have comment or be unexported (golint)
    • Line 153: warning: exported method Prices.ClearOld should have comment or be unexported (golint)
    • Line 173: warning: exported method Prices.State should have comment or be unexported (golint)
    • stampzilla-go/pkg/installer/source/installer.go
    • Line 18: warning: exported type Installer should have comment or be unexported (golint)
    • Line 21: warning: exported function NewInstaller should have comment or be unexported (golint)
    • Line 25: warning: exported method Installer.Prepare should have comment or be unexported (golint)
    • Line 29: warning: exported method Installer.Install should have comment or be unexported (golint)
    • Line 33: warning: exported method Installer.Update should have comment or be unexported (golint)
    • Line 62: warning: exported function GoGet should have comment or be unexported (golint)
    • Line 116: warning: exported function Run should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-google-assistant/googleassistant/response.go
    • Line 3: warning: exported type DeviceName should have comment or be unexported (golint)
    • Line 9: warning: exported type DeviceAttributes should have comment or be unexported (golint)
    • Line 15: warning: exported type Device should have comment or be unexported (golint)
    • Line 35: warning: exported type ResponseStates should have comment or be unexported (golint)
    • Line 41: warning: exported function NewResponseCommand should have comment or be unexported (golint)
    • Line 48: warning: exported type ResponseCommand should have comment or be unexported (golint)
    • Line 55: warning: exported type Response should have comment or be unexported (golint)
    • Line 64: warning: exported type QueryResponse should have comment or be unexported (golint)
    • stampzilla-go/pkg/runner/bare.go
    • Line 15: warning: exported type Bare should have comment or be unexported (golint)
    • Line 18: warning: exported method Bare.Close should have comment or be unexported (golint)
    • Line 21: warning: exported method Bare.Restart should have comment or be unexported (golint)
    • Line 30: warning: exported method Bare.Start should have comment or be unexported (golint)
    • Line 48: warning: exported method Bare.Stop should have comment or be unexported (golint)
    • Line 65: warning: exported method Bare.Status should have comment or be unexported (golint)
    • Line 86: warning: receiver name b should be consistent with previous receiver name t for Bare (golint)
    • Line 160: warning: exported function GetProcessName should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/ca/ca.go
    • Line 33: warning: exported type CA should have comment or be unexported (golint)
    • Line 44: warning: exported function New should have comment or be unexported (golint)
    • Line 51: warning: exported function LoadOrCreate should have comment or be unexported (golint)
    • Line 60: warning: exported method CA.LoadOrCreate should have comment or be unexported (golint)
    • Line 72: warning: exported method CA.Load should have comment or be unexported (golint)
    • Line 101: warning: exported method CA.CreateCA should have comment or be unexported (golint)
    • Line 138: warning: exported method CA.SetStore should have comment or be unexported (golint)
    • Line 149: warning: exported method CA.CreateServerCertificate should have comment or be unexported (golint)
    • Line 185: warning: exported method CA.CreateCertificateFromRequest should have comment or be unexported (golint)
    • Line 243: warning: exported method CA.CreateClientCertificate should have comment or be unexported (golint)
    • Line 297: warning: exported method CA.ExportToDisk should have comment or be unexported (golint)
    • Line 333: warning: exported method CA.GetNextSerial should have comment or be unexported (golint)
    • Line 339: warning: exported method CA.GetCertificates should have comment or be unexported (golint)
    • Line 415: warning: exported method CA.WaitForApproval should have comment or be unexported (golint)
    • Line 442: warning: comment on exported method CA.GetServerCertificate should be of the form "GetServerCertificate ..." (golint)
    • Line 464: warning: exported method CA.GetUserCertificate should have comment or be unexported (golint)
    • stampzilla-go/pkg/hueemulator/handler.go
    • Line 27: warning: exported function SetLogger should have comment or be unexported (golint)
    • Line 31: warning: exported function SetDebug should have comment or be unexported (golint)
    • Line 35: warning: exported function ListenAndServe should have comment or be unexported (golint)
    • Line 65: warning: comment on exported type Handler should be of the form "Handler ..." (with optional leading article) (golint)
    • Line 70: warning: exported function Handle should have comment or be unexported (golint)
    • Line 90: warning: exported function GetPrimaryIp should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/websocket/websocket.go
    • Line 8: warning: exported type SessionKey should have comment or be unexported (golint)
    • Line 11: warning: exported const KeyProtocol should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type Sender should have comment or be unexported (golint)
    • Line 29: warning: exported function NewWebsocketSender should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/models/notification/destination.go
    • Line 13: warning: exported type Destination should have comment or be unexported (golint)
    • Line 22: warning: exported method Destination.Equal should have comment or be unexported (golint)
    • Line 46: warning: exported function EqualStringMap should have comment or be unexported (golint)
    • Line 58: warning: exported type Destinations should have comment or be unexported (golint)
    • Line 63: warning: exported function NewDestinations should have comment or be unexported (golint)
    • Line 69: warning: exported method Destinations.Add should have comment or be unexported (golint)
    • Line 75: warning: exported method Destinations.Get should have comment or be unexported (golint)
    • Line 81: warning: exported method Destinations.Trigger should have comment or be unexported (golint)
    • Line 88: warning: exported method Destinations.All should have comment or be unexported (golint)
    • Line 94: warning: exported method Destinations.Remove should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/logic/savedstate.go
    • Line 26: warning: exported type SavedStates should have comment or be unexported (golint)
    • Line 28: warning: exported type SavedState should have comment or be unexported (golint)
    • Line 34: warning: exported type SavedStateStore should have comment or be unexported (golint)
    • Line 39: warning: exported method SavedStateStore.Get should have comment or be unexported (golint)
    • Line 45: warning: exported method SavedStateStore.All should have comment or be unexported (golint)
    • Line 51: warning: exported function NewSavedStateStore should have comment or be unexported (golint)
    • Line 57: warning: exported method SavedStateStore.SetState should have comment or be unexported (golint)
    • Line 63: warning: exported method SavedStateStore.Save should have comment or be unexported (golint)
    • Line 79: warning: exported method SavedStateStore.Load should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/logic/scheduler.go
    • Line 29: warning: exported type Tasks should have comment or be unexported (golint)
    • Line 42: warning: exported function NewScheduler should have comment or be unexported (golint)
    • Line 52: warning: exported method Scheduler.Start should have comment or be unexported (golint)
    • Line 61: warning: exported method Scheduler.Stop should have comment or be unexported (golint)
    • Line 70: warning: exported method Scheduler.SetTasks should have comment or be unexported (golint)
    • Line 77: warning: exported method Scheduler.Tasks should have comment or be unexported (golint)
    • Line 83: warning: exported method Scheduler.AddTask should have comment or be unexported (golint)
    • Line 96: warning: exported method Scheduler.Task should have comment or be unexported (golint)
    • Line 102: warning: exported method Scheduler.RemoveTask should have comment or be unexported (golint)
    • Line 113: warning: exported method Scheduler.Save should have comment or be unexported (golint)
    • Line 129: warning: exported method Scheduler.Load should have comment or be unexported (golint)
    • Line 173: warning: exported method Scheduler.ScheduleTask should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/webserver/webserver.go
    • Line 33: warning: exported type Webserver should have comment or be unexported (golint)
    • Line 42: warning: exported function New should have comment or be unexported (golint)
    • Line 58: warning: exported method Webserver.Init should have comment or be unexported (golint)
    • Line 106: warning: exported method Webserver.Start should have comment or be unexported (golint)
    • Line 441: warning: exported method Webserver.Logout should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-google-assistant/googleassistant/request.go
    • Line 20: warning: exported const CommandBrightnessAbsolute should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported method Inputs.Intent should have comment or be unexported (golint)
    • Line 43: warning: exported method Inputs.Payload should have comment or be unexported (golint)
    • Line 58: warning: exported type Payload should have comment or be unexported (golint)
    • Line 86: warning: exported type Request should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/models/persons/person.go
    • Line 11: warning: exported type Person should have comment or be unexported (golint)
    • Line 24: warning: exported type PersonWithPassword should have comment or be unexported (golint)
    • Line 29: warning: exported type PersonWithPasswords should have comment or be unexported (golint)
    • Line 68: warning: exported method PersonWithPasswords.UpdatePassword should have comment or be unexported (golint)
    • Line 89: warning: exported method PersonWithPassword.CheckPassword should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-chromecast/chromecast.go
    • Line 16: warning: exported type Chromecast should have comment or be unexported (golint)
    • Line 44: warning: don't use underscores in Go names; type Chromecast_Media should be ChromecastMedia (golint)
    • Line 44: warning: exported type Chromecast_Media should have comment or be unexported (golint)
    • Line 52: warning: exported function NewChromecast should have comment or be unexported (golint)
    • Line 64: warning: exported method Chromecast.Play should have comment or be unexported (golint)
    • Line 68: warning: exported method Chromecast.Pause should have comment or be unexported (golint)
    • Line 72: warning: exported method Chromecast.Stop should have comment or be unexported (golint)
    • Line 76: warning: exported method Chromecast.PlayUrl should have comment or be unexported (golint)
    • Line 127: warning: exported method Chromecast.Event should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/logic/task.go
    • Line 39: warning: receiver name r should be consistent with previous receiver name t for Task (golint)
    • Line 45: warning: exported method Task.Name should have comment or be unexported (golint)
    • Line 45: warning: receiver name r should be consistent with previous receiver name t for Task (golint)
    • Line 51: warning: exported method Task.CronId should have comment or be unexported (golint)
    • Line 51: warning: receiver name r should be consistent with previous receiver name t for Task (golint)
    • Line 57: warning: exported method Task.Run should have comment or be unexported (golint)
    • Line 90: warning: exported method Task.AddAction should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/store/persons.go
    • Line 10: warning: exported method Store.GetPersons should have comment or be unexported (golint)
    • Line 16: warning: exported method Store.GetPerson should have comment or be unexported (golint)
    • Line 22: warning: exported method Store.CountAdmins should have comment or be unexported (golint)
    • Line 38: warning: exported method Store.AddOrUpdatePerson should have comment or be unexported (golint)
    • Line 72: warning: exported method Store.AddOrUpdatePersons should have comment or be unexported (golint)
    • Line 113: warning: exported method Store.ValidateLogin should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-deconz/api.go
    • Line 57: warning: exported type API should have comment or be unexported (golint)
    • Line 63: warning: exported function NewAPI should have comment or be unexported (golint)
    • Line 105: warning: exported method API.Get should have comment or be unexported (golint)
    • Line 109: warning: exported method API.Post should have comment or be unexported (golint)
    • Line 113: warning: exported method API.Put should have comment or be unexported (golint)
    • Line 117: warning: exported method API.PutData should have comment or be unexported (golint)
    • Line 128: warning: exported method API.Lights should have comment or be unexported (golint)
    • Line 134: warning: exported method API.Sensors should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/logic/rule.go
    • Line 22: warning: exported type Rule should have comment or be unexported (golint)
    • Line 23: warning: don't use underscores in Go names; struct field Name_ should be Name (golint)
    • Line 24: warning: don't use underscores in Go names; struct field Uuid_ should be UUID (golint)
    • Line 25: warning: don't use underscores in Go names; struct field Active_ should be Active (golint)
    • Line 26: warning: don't use underscores in Go names; struct field Pending_ should be Pending (golint)
    • Line 28: warning: don't use underscores in Go names; struct field Expression_ should be Expression (golint)
    • Line 29: warning: don't use underscores in Go names; struct field Conditions_ should be Conditions (golint)
    • Line 30: warning: don't use underscores in Go names; struct field Actions_ should be Actions (golint)
    • Line 31: warning: don't use underscores in Go names; struct field Labels_ should be Labels (golint)
    • Line 32: warning: don't use underscores in Go names; struct field For_ should be For (golint)
    • Line 33: warning: don't use underscores in Go names; struct field Type_ should be Type (golint)
    • Line 34: warning: don't use underscores in Go names; struct field Destinations_ should be Destinations (golint)
    • Line 41: warning: exported method Rule.Expression should have comment or be unexported (golint)
    • Line 47: warning: exported method Rule.Active should have comment or be unexported (golint)
    • Line 53: warning: exported method Rule.Pending should have comment or be unexported (golint)
    • Line 59: warning: exported method Rule.Uuid should have comment or be unexported (golint)
    • Line 65: warning: exported method Rule.Name should have comment or be unexported (golint)
    • Line 71: warning: exported method Rule.SetUuid should have comment or be unexported (golint)
    • Line 77: warning: exported method Rule.Conditions should have comment or be unexported (golint)
    • Line 83: warning: exported method Rule.SetActive should have comment or be unexported (golint)
    • Line 89: warning: exported method Rule.SetPending should have comment or be unexported (golint)
    • Line 95: warning: exported method Rule.For should have comment or be unexported (golint)
    • Line 101: warning: exported method Rule.Type should have comment or be unexported (golint)
    • Line 107: warning: exported method Rule.Stop should have comment or be unexported (golint)
    • Line 114: warning: exported method Rule.Cancel should have comment or be unexported (golint)
    • Line 123: warning: exported method Rule.Run should have comment or be unexported (golint)
    • Line 267: warning: exported var ErrExpressionNotBool should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/store/logic.go
    • Line 7: warning: exported method Store.GetRules should have comment or be unexported (golint)
    • Line 13: warning: exported method Store.AddOrUpdateRules should have comment or be unexported (golint)
    • Line 19: warning: exported method Store.GetSavedStates should have comment or be unexported (golint)
    • Line 23: warning: exported method Store.AddOrUpdateSavedStates should have comment or be unexported (golint)
    • Line 29: warning: exported method Store.GetScheduledTasks should have comment or be unexported (golint)
    • Line 33: warning: exported method Store.AddOrUpdateScheduledTasks should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/models/message.go
    • Line 11: warning: exported type Message should have comment or be unexported (golint)
    • Line 18: warning: exported function NewMessage should have comment or be unexported (golint)
    • Line 30: warning: exported function ParseMessage should have comment or be unexported (golint)
    • Line 36: warning: exported method Message.WriteTo should have comment or be unexported (golint)
    • Line 45: warning: exported method Message.WriteWithFilter should have comment or be unexported (golint)
    • Line 54: warning: exported method Message.Encode should have comment or be unexported (golint)
    • stampzilla-go/pkg/installer/config.go
    • Line 13: warning: exported type Daemon should have comment or be unexported (golint)
    • Line 18: warning: exported type Config should have comment or be unexported (golint)
    • Line 22: warning: exported method Config.GetConfigForNode should have comment or be unexported (golint)
    • Line 31: warning: exported method Config.GetAutostartingNodes should have comment or be unexported (golint)
    • Line 41: warning: exported method Config.GenerateDefault should have comment or be unexported (golint)
    • Line 61: warning: exported method Config.SaveToFile should have comment or be unexported (golint)
    • Line 77: warning: exported method Config.ReadConfigFromFile should have comment or be unexported (golint)
    • Line 93: warning: exported method Config.Start should have comment or be unexported (golint)
    • Line 99: warning: exported method Config.CreateConfig should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/store/connections.go
    • Line 5: warning: exported method Store.GetConnections should have comment or be unexported (golint)
    • Line 11: warning: exported method Store.Connection should have comment or be unexported (golint)
    • Line 20: warning: exported method Store.AddOrUpdateConnection should have comment or be unexported (golint)
    • Line 28: warning: exported method Store.ConnectionChanged should have comment or be unexported (golint)
    • Line 32: warning: exported method Store.RemoveConnection should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/store/server.go
    • Line 10: warning: exported method Store.AddOrUpdateServer should have comment or be unexported (golint)
    • Line 28: warning: exported method Store.GetServerStateAsJson should have comment or be unexported (golint)
    • Line 28: warning: receiver name store should be consistent with previous receiver name s for Store (golint)
    • stampzilla-go/nodes/stampzilla-server/models/node.go
    • Line 11: warning: exported type Node should have comment or be unexported (golint)
    • Line 13: warning: don't use underscores in Go names; struct field Connected_ should be Connected (golint)
    • Line 23: warning: exported method Node.SetConnected should have comment or be unexported (golint)
    • Line 29: warning: exported method Node.Connected should have comment or be unexported (golint)
    • Line 35: warning: exported method Node.SetAlias should have comment or be unexported (golint)
    • Line 44: warning: exported method Node.Alias should have comment or be unexported (golint)
    • stampzilla-go/pkg/installer/installer.go
    • Line 10: warning: exported type Installer should have comment or be unexported (golint)
    • Line 16: warning: exported type InstallSource should have comment or be unexported (golint)
    • Line 19: warning: exported const Binaries should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • stampzilla-go/pkg/installer/binary/installer.go
    • Line 19: warning: exported type Installer should have comment or be unexported (golint)
    • Line 22: warning: exported function NewInstaller should have comment or be unexported (golint)
    • Line 26: warning: exported method Installer.Prepare should have comment or be unexported (golint)
    • Line 30: warning: exported method Installer.Install should have comment or be unexported (golint)
    • Line 44: warning: exported method Installer.Update should have comment or be unexported (golint)
    • Line 204: warning: exported function GetBinPath should have comment or be unexported (golint)
    • stampzilla-go/pkg/hueemulator/upnp.go
    • Line 14: warning: don't use underscores in Go names; const upnp_multicast_address should be upnpMulticastAddress (golint)
    • Line 15: warning: don't use underscores in Go names; const upnp_uri should be upnpURI (golint)
    • stampzilla-go/nodes/stampzilla-modbus/config.go
    • Line 3: warning: exported type Config should have comment or be unexported (golint)
    • Line 8: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 14: warning: exported type Register should have comment or be unexported (golint)
    • Line 21: warning: exported type Registers should have comment or be unexported (golint)
    • stampzilla-go/pkg/runner/systemd.go
    • Line 18: warning: exported type Systemd should have comment or be unexported (golint)
    • Line 22: warning: exported method Systemd.Close should have comment or be unexported (golint)
    • Line 42: warning: exported method Systemd.Start should have comment or be unexported (golint)
    • Line 75: warning: exported method Systemd.Stop should have comment or be unexported (golint)
    • Line 154: warning: exported method Systemd.Status should have comment or be unexported (golint)
    • Line 201: warning: exported method Systemd.GenerateUnit should have comment or be unexported (golint)
    • Line 257: warning: exported method Systemd.Disable should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-modbus/modbus.go
    • Line 9: warning: exported type Modbus should have comment or be unexported (golint)
    • Line 14: warning: exported method Modbus.Connect should have comment or be unexported (golint)
    • Line 33: warning: exported method Modbus.Close should have comment or be unexported (golint)
    • Line 37: warning: exported method Modbus.ReadInputRegister should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/models/notification/nx/nx.go
    • Line 10: warning: exported type NxSender should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • Line 24: warning: exported method NxSender.Trigger should have comment or be unexported (golint)
    • Line 28: warning: exported method NxSender.Release should have comment or be unexported (golint)
    • Line 79: warning: exported method NxSender.Destinations should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/store/request.go
    • Line 3: warning: exported type Request should have comment or be unexported (golint)
    • Line 13: warning: exported type RequestSubject should have comment or be unexported (golint)
    • Line 27: warning: exported method Store.GetRequests should have comment or be unexported (golint)
    • Line 33: warning: exported method Store.AddRequest should have comment or be unexported (golint)
    • Line 41: warning: exported method Store.RemoveRequest should have comment or be unexported (golint)
    • Line 60: warning: exported method Store.AcceptRequest should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/models/notification/sender.go
    • Line 18: warning: exported type Sender should have comment or be unexported (golint)
    • Line 25: warning: exported type SenderInterface should have comment or be unexported (golint)
    • Line 31: warning: exported method Sender.Trigger should have comment or be unexported (golint)
    • Line 40: warning: exported method Sender.Release should have comment or be unexported (golint)
    • Line 49: warning: exported method Sender.Destinations should have comment or be unexported (golint)
    • Line 58: warning: exported function NewSender should have comment or be unexported (golint)
    • Line 77: warning: exported type Senders should have comment or be unexported (golint)
    • Line 82: warning: exported function NewSenders should have comment or be unexported (golint)
    • Line 127: warning: exported method Senders.Add should have comment or be unexported (golint)
    • Line 133: warning: exported method Senders.Get should have comment or be unexported (golint)
    • Line 140: warning: exported method Senders.All should have comment or be unexported (golint)
    • Line 146: warning: exported method Senders.Remove should have comment or be unexported (golint)
    • stampzilla-go/nodes/stampzilla-server/models/notification/webhook/webhook.go
    • Line 9: warning: exported type WebhookSender should have comment or be unexported (golint)
    • Line 13: warning: exported function New should have comment or be unexported (golint)
    • Line 21: warning: exported method WebhookSender.Trigger should have comment or be unexported (golint)
    • Line 33: warning: exported method WebhookSender.Release should have comment or be unexported (golint)
    • Line 65: warning: exported method WebhookSender.Destinations should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!