project-callisto/callisto-core

View on GitHub
callisto_core/reporting/report_delivery.py

Summary

Maintainability
C
7 hrs
Test Coverage

File report_delivery.py has 402 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import json
import logging
import os
from collections import OrderedDict
from io import BytesIO
Severity: Minor
Found in callisto_core/reporting/report_delivery.py - About 5 hrs to fix

    Function set_up_styles has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def set_up_styles(self, *args, **kwargs):
            """
            Helper formatting methods assume the following styles have been defined:
                * Normal: format_question, get_metadata_page
                * Notes: get_metadata_page
    Severity: Minor
    Found in callisto_core/reporting/report_delivery.py - About 1 hr to fix

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

          def __init__(
      Severity: Major
      Found in callisto_core/reporting/report_delivery.py - About 50 mins to fix

        There are no issues that match your filters.

        Category
        Status