RnDAO/tc-messageBrokerPython

View on GitHub
tc_messageBroker/rabbit_mq/saga/saga_base.py

Summary

Maintainability
A
2 hrs
Test Coverage
A
98%

Showing 2 of 3 total issues

File saga_base.py has 264 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import logging
import uuid
from datetime import datetime
from typing import Any, Callable, Optional
 
 
Severity: Minor
Found in tc_messageBroker/rabbit_mq/saga/saga_base.py - About 2 hrs to fix

    Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Wontfix

    def __init__(
    Severity: Minor
    Found in tc_messageBroker/rabbit_mq/saga/saga_base.py - About 35 mins to fix

      Function next has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      def next(
      self,
      publish_method: Callable,
      call_function: Callable,
      mongo_creds: dict[str, Any] | None = None,
      Severity: Minor
      Found in tc_messageBroker/rabbit_mq/saga/saga_base.py - About 25 mins to fix
      Category
      Status