tulir/mautrix-telegram

View on GitHub
mautrix_telegram/portal.py

Summary

Maintainability
F
1 wk
Test Coverage

File portal.py has 3700 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# mautrix-telegram - A Matrix-Telegram puppeting bridge
# Copyright (C) 2023 Tulir Asokan
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Severity: Major
Found in mautrix_telegram/portal.py - About 1 wk to fix

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

        def __init__(
    Severity: Major
    Found in mautrix_telegram/portal.py - About 2 hrs to fix

      Avoid too many return statements within this function.
      Open

              return True
      Severity: Major
      Found in mautrix_telegram/portal.py - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status