core/siri_subscription_request_dispatcher.go

Summary

Maintainability
A
3 hrs
Test Coverage

Method SIRISubscriptionRequestDispatcher.CancelSubscription has 58 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (connector *SIRISubscriptionRequestDispatcher) CancelSubscription(r *sxml.XMLDeleteSubscriptionRequest, message *audit.BigQueryMessage) *siri.SIRIDeleteSubscriptionResponse {
    message.RequestIdentifier = r.MessageIdentifier()

    currentTime := connector.Clock().Now()
    resp := &siri.SIRIDeleteSubscriptionResponse{
Severity: Minor
Found in core/siri_subscription_request_dispatcher.go - About 1 hr to fix

    Method SIRISubscriptionRequestDispatcher.Dispatch has 57 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (connector *SIRISubscriptionRequestDispatcher) Dispatch(request *sxml.XMLSubscriptionRequest, message *audit.BigQueryMessage) (*siri.SIRISubscriptionResponse, error) {
        response := siri.SIRISubscriptionResponse{
            Address:            connector.Partner().Address(),
            ResponderRef:       connector.Partner().RequestorRef(),
            ResponseTimestamp:  connector.Clock().Now(),
    Severity: Minor
    Found in core/siri_subscription_request_dispatcher.go - About 1 hr to fix

      Method SIRISubscriptionRequestDispatcher.Dispatch has 13 return statements (exceeds 4 allowed).
      Open

      func (connector *SIRISubscriptionRequestDispatcher) Dispatch(request *sxml.XMLSubscriptionRequest, message *audit.BigQueryMessage) (*siri.SIRISubscriptionResponse, error) {
          response := siri.SIRISubscriptionResponse{
              Address:            connector.Partner().Address(),
              ResponderRef:       connector.Partner().RequestorRef(),
              ResponseTimestamp:  connector.Clock().Now(),
      Severity: Major
      Found in core/siri_subscription_request_dispatcher.go - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status