~/go/bin/golangci-lint run cmd/redfishread/redfishread.go
cmd/redfishread/redfishread.go:229:24: Error return value of r.Redfish.GetLceSSE is not checked (errcheck)
go r.Redfish.GetLceSSE(eventsIn, "https://"+r.Redfish.Hostname+"/redfish/v1/SSE")
^
cmd/redfishread/redfishread.go:364:34: Error return value of dataBusService.ReceiveCommand is not checked (errcheck)
go dataBusService.ReceiveCommand(commands)
^
cmd/redfishread/redfishread.go:243:2: S1023: redundant return statement (gosimple)
return
^
cmd/redfishread/redfishread.go:136:2: printf: log.Printf format %s has arg eventData of wrong type github.com/dell/iDRAC-Telemetry-Reference-Tools/internal/redfish.RedfishPayload (govet)
log.Printf("RedFish LifeCycle Events Found for parsing: %s\n", eventData)
^
cmd/redfishread/redfishread.go:279:3: printf: log.Println arg list ends with redundant newline (govet)
log.Println("EventService not supported...\n")
^
cmd/redfishread/redfishread.go:230:2: ineffectual assignment to eventsOut (ineffassign)
eventsOut := new(redfish.RedfishEvent)
^
cmd/redfishread/redfishread.go:227:38: SA4009: argument eventService is overwritten before first use (staticcheck)
func getRedfishLce(r RedfishDevice, eventService redfish.RedfishPayload, dataBusService databus.DataBusService) {
^
cmd/redfishread/redfishread.go:232:2: SA4009(related information): assignment to eventService (staticcheck)
eventService = eventsOut.Payload
^
~/go/bin/golangci-lint run cmd/redfishread/redfishread.go cmd/redfishread/redfishread.go:229:24: Error return value of
r.Redfish.GetLceSSE
is not checked (errcheck) go r.Redfish.GetLceSSE(eventsIn, "https://"+r.Redfish.Hostname+"/redfish/v1/SSE") ^ cmd/redfishread/redfishread.go:364:34: Error return value ofdataBusService.ReceiveCommand
is not checked (errcheck) go dataBusService.ReceiveCommand(commands) ^ cmd/redfishread/redfishread.go:243:2: S1023: redundantreturn
statement (gosimple) return ^ cmd/redfishread/redfishread.go:136:2: printf: log.Printf format %s has arg eventData of wrong type github.com/dell/iDRAC-Telemetry-Reference-Tools/internal/redfish.RedfishPayload (govet) log.Printf("RedFish LifeCycle Events Found for parsing: %s\n", eventData) ^ cmd/redfishread/redfishread.go:279:3: printf:log.Println
arg list ends with redundant newline (govet) log.Println("EventService not supported...\n") ^ cmd/redfishread/redfishread.go:230:2: ineffectual assignment to eventsOut (ineffassign) eventsOut := new(redfish.RedfishEvent) ^ cmd/redfishread/redfishread.go:227:38: SA4009: argument eventService is overwritten before first use (staticcheck) func getRedfishLce(r RedfishDevice, eventService redfish.RedfishPayload, dataBusService databus.DataBusService) { ^ cmd/redfishread/redfishread.go:232:2: SA4009(related information): assignment to eventService (staticcheck) eventService = eventsOut.Payload ^