project-callisto/callisto-core

View on GitHub
callisto_core/notification/api.py

Summary

Maintainability
C
1 day
Test Coverage

File api.py has 361 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import copy
import logging
import os
import typing

Severity: Minor
Found in callisto_core/notification/api.py - About 4 hrs to fix

    CallistoCoreNotificationApi has 34 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class CallistoCoreNotificationApi(object):
    
        report_filename = "callisto_record_{0}.pdf.gpg"
        report_title = "Callisto Record"
        logo_path = "../../assets/callisto_logo.png"
    Severity: Minor
    Found in callisto_core/notification/api.py - About 4 hrs to fix

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

          def send_report_to_authority(
      Severity: Minor
      Found in callisto_core/notification/api.py - About 45 mins to fix

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

            def slack_notification(
        Severity: Minor
        Found in callisto_core/notification/api.py - About 45 mins to fix

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

              def send_user_review_nofication(
          Severity: Minor
          Found in callisto_core/notification/api.py - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status