GalOrrery/interpolated-coordinates

View on GitHub

Showing 7 of 7 total issues

Function _data_repr has a Cognitive Complexity of 28 (exceeds 10 allowed). Consider refactoring.
Open

    def _data_repr(self) -> str:  # noqa: C901
        """Returns a string representation of the coordinate data.

        This method is modified from the original to include the affine
        parameter.
Severity: Minor
Found in src/interpolated_coordinates/frame.py - About 3 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function __init__ has 13 arguments (exceeds 6 allowed). Consider refactoring.
Open

    def __init__(
Severity: Major
Found in src/interpolated_coordinates/utils/spline.py - About 1 hr to fix

    Function __init__ has 13 arguments (exceeds 6 allowed). Consider refactoring.
    Open

        def __init__(
    Severity: Major
    Found in src/interpolated_coordinates/utils/spline.py - About 1 hr to fix

      Function __init__ has 12 arguments (exceeds 6 allowed). Consider refactoring.
      Open

          def __init__(
      Severity: Major
      Found in src/interpolated_coordinates/utils/spline.py - About 1 hr to fix

        Function validate_input has 8 arguments (exceeds 6 allowed). Consider refactoring.
        Open

            def validate_input(
        Severity: Major
        Found in src/interpolated_coordinates/utils/spline.py - About 45 mins to fix

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

              def __init__(
          Severity: Major
          Found in src/interpolated_coordinates/representation.py - About 35 mins to fix

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

                def __init__(
            Severity: Major
            Found in src/interpolated_coordinates/representation.py - About 35 mins to fix
              Severity
              Category
              Status
              Source
              Language