DogsTailFarmer/martin-binance

View on GitHub
martin_binance/lib.py

Summary

Maintainability
C
1 day
Test Coverage

File lib.py has 403 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"""
martin-binance classes and methods definitions
"""
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
Severity: Minor
Found in martin_binance/lib.py - About 5 hrs to fix

    Avoid too many return statements within this function.
    Open

            return '30m'
    Severity: Major
    Found in martin_binance/lib.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return '1d'
      Severity: Major
      Found in martin_binance/lib.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return '12h'
        Severity: Major
        Found in martin_binance/lib.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return '6h'
          Severity: Major
          Found in martin_binance/lib.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return '1h'
            Severity: Major
            Found in martin_binance/lib.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return '1w' if 10080 <= m < 44640 else '1m'
              Severity: Major
              Found in martin_binance/lib.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return '2h'
                Severity: Major
                Found in martin_binance/lib.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return '4h'
                  Severity: Major
                  Found in martin_binance/lib.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return '8h'
                    Severity: Major
                    Found in martin_binance/lib.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return '3d'
                      Severity: Major
                      Found in martin_binance/lib.py - About 30 mins to fix

                        There are no issues that match your filters.

                        Category
                        Status