Showing 151 of 153 total issues

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

        def __init__(
Severity: Major
Found in bionc/bionc_numpy/joints_with_ground.py - About 50 mins to fix

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

    def add_natural_marker_from_segment_coordinates(
Severity: Major
Found in bionc/bionc_numpy/natural_segment.py - About 50 mins to fix

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

    def from_joint_generalized_forces(
Severity: Major
Found in bionc/bionc_numpy/generalized_force.py - About 50 mins to fix

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

        def __init__(
Severity: Major
Found in bionc/bionc_casadi/joints_with_ground.py - About 50 mins to fix

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

    def from_data(
Severity: Minor
Found in bionc/bionc_numpy/natural_marker.py - About 45 mins to fix

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

def drop_the_pendulum(
Severity: Minor
Found in examples/forward_dynamics/double_pendulum_with_force.py - About 45 mins to fix

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

    def from_data(
Severity: Minor
Found in bionc/bionc_casadi/natural_marker.py - About 45 mins to fix

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

    def add_natural_marker_from_segment_coordinates(
Severity: Minor
Found in bionc/bionc_casadi/natural_segment.py - About 45 mins to fix

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

def _solve_nlp(method: str, nlp: dict, Q_init: np.ndarray, lbg: np.ndarray, ubg: np.ndarray, options: dict):
Severity: Minor
Found in bionc/utils/casadi_utils.py - About 45 mins to fix

Function vector_projection_in_non_orthogonal_basis has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

def vector_projection_in_non_orthogonal_basis(
    vector: np.ndarray, e1: np.ndarray, e2: np.ndarray, e3: np.ndarray
) -> np.ndarray:
    """
    This function converts a vector expressed in the global coordinate system
Severity: Minor
Found in bionc/bionc_numpy/cartesian_vector.py - About 45 mins 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 a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

        def __init__(
            self,
            name: str,
            parent: NaturalSegment,
            child: NaturalSegment,
Severity: Minor
Found in bionc/bionc_casadi/joints.py - About 45 mins 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 drop_the_pendulum has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

def drop_the_pendulum(
Severity: Minor
Found in examples/forward_dynamics/actuated_3d_pendulum.py - About 45 mins to fix

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

    def __init__(
Severity: Minor
Found in bionc/model_creation/marker_template.py - About 45 mins to fix

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

        def __init__(
Severity: Minor
Found in bionc/bionc_casadi/joints_with_ground.py - About 45 mins to fix

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

        def __init__(
Severity: Minor
Found in bionc/bionc_numpy/joints_with_ground.py - About 45 mins to fix

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

def drop_the_pendulum(
Severity: Minor
Found in examples/forward_dynamics/pendulum_with_force.py - About 45 mins to fix

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

    def __init__(
Severity: Minor
Found in bionc/bionc_numpy/inverse_kinematics.py - About 45 mins to fix

Function from_components has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

    def from_components(cls, x: np.ndarray, y: np.ndarray, z: np.ndarray, t: np.ndarray):
        """
        Constructor of the class from the components of the homogenous transform

        Parameters
Severity: Minor
Found in bionc/bionc_numpy/homogenous_transform.py - About 45 mins 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 compute_transformation_matrix has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

def compute_transformation_matrix(
Severity: Minor
Found in bionc/bionc_casadi/transformation_matrix.py - About 35 mins to fix

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

    def solve(
Severity: Minor
Found in bionc/bionc_numpy/inverse_kinematics.py - About 35 mins to fix
Severity
Category
Status
Source
Language