leandrotoledo/python-telegram-bot

View on GitHub
telegram/_replykeyboardmarkup.py

Summary

Maintainability
B
6 hrs
Test Coverage

File _replykeyboardmarkup.py has 276 lines of code (exceeds 250 allowed). Consider refactoring.
Open

#!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2024
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
Severity: Minor
Found in telegram/_replykeyboardmarkup.py - About 2 hrs to fix

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

        def __init__(
    Severity: Major
    Found in telegram/_replykeyboardmarkup.py - About 1 hr to fix

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

          def from_row(
      Severity: Major
      Found in telegram/_replykeyboardmarkup.py - About 50 mins to fix

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

            def from_button(
        Severity: Major
        Found in telegram/_replykeyboardmarkup.py - About 50 mins to fix

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

              def from_column(
          Severity: Major
          Found in telegram/_replykeyboardmarkup.py - About 50 mins to fix

            There are no issues that match your filters.

            Category
            Status