Showing 147 of 149 total issues
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function with_cartesian_inertial_parameters
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def with_cartesian_inertial_parameters(
- Create a ticketCreate a ticket
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function with_cartesian_inertial_parameters
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def with_cartesian_inertial_parameters(
- Create a ticketCreate a ticket
Function add_all_joint_generalized_forces
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
Open
def add_all_joint_generalized_forces(
self, model: "BiomechanicalModel", joint_generalized_forces: np.ndarray, Q: NaturalCoordinates
):
"""
Add all the generalized forces to the object. It separates the generalized forces into sub generalized forces
- Read upRead up
- Create a ticketCreate a ticket
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 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function __init__
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function main
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
Open
def main(mode: str = "horizontal"):
nb_segments = 3
model = build_n_link_pendulum(nb_segments=nb_segments)
- Read upRead up
- Create a ticketCreate a ticket
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 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function __init__
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function create_knee_model
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def create_knee_model() -> BiomechanicalModel:
"""
This function creates a biomechanical model of a knee with a parallel mechanism.
Data from
- Create a ticketCreate a ticket
Function model_creation_from_measured_data
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def model_creation_from_measured_data(c3d_filename: str = "statref.c3d") -> BiomechanicalModel:
"""
Create a model from a data file and we build the biomechanical model as a template using the marker names
"""
- Create a ticketCreate a ticket
Function _inverse_dynamics_recursive_step
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _inverse_dynamics_recursive_step(
- Create a ticketCreate a ticket
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function _inverse_dynamics_recursive_step
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _inverse_dynamics_recursive_step(
- Create a ticketCreate a ticket