api/siri_handler.go
Method SIRIHandler.serve
has 108 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (handler *SIRIHandler) serve(response http.ResponseWriter, request *http.Request) {
response.Header().Set("Content-Type", "text/xml; charset=utf-8")
m := &audit.BigQueryMessage{
Protocol: "siri",
Method SIRIHandler.requestHandler
has 93 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (handler *SIRIHandler) requestHandler(envelope *remote.SIRIEnvelope) SIRIRequestHandler {
switch envelope.BodyType() {
case "CheckStatus":
return &SIRICheckStatusRequestHandler{
xmlRequest: sxml.NewXMLCheckStatusRequest(envelope.Body()),
Method SIRIHandler.serve
has 8 return statements (exceeds 4 allowed). Open
Open
func (handler *SIRIHandler) serve(response http.ResponseWriter, request *http.Request) {
response.Header().Set("Content-Type", "text/xml; charset=utf-8")
m := &audit.BigQueryMessage{
Protocol: "siri",