mattwalshdev/emailee

View on GitHub
emailee/emailee_async.py

Summary

Maintainability
B
6 hrs
Test Coverage

File emailee_async.py has 305 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import multiprocessing
import threading
import time
from typing import Any, Dict, List, Union

Severity: Minor
Found in emailee/emailee_async.py - About 3 hrs to fix

    Function _sendMailFunc has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    def _sendMailFunc(
        mailItem: Dict,
        mailServer: Dict,
        processQueue: multiprocessing.Queue,
        outputFile: str,
    Severity: Minor
    Found in emailee/emailee_async.py - About 1 hr to fix

      Function __init__ has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def __init__(
      Severity: Minor
      Found in emailee/emailee_async.py - About 45 mins to fix

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

            def __init__(
        Severity: Minor
        Found in emailee/emailee_async.py - About 35 mins to fix

          Function _sendMailFunc has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def _sendMailFunc(
          Severity: Minor
          Found in emailee/emailee_async.py - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status