Erdnaxela3/bioptim_gui

View on GitHub
api/bioptim_gui_api/acrobatics_ocp/code_generation/custom_penalty_fcn.py

Summary

Maintainability
A
2 hrs
Test Coverage

Function closest_distance_between_lines has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def closest_distance_between_lines():
    # adapté de https://stackoverflow.com/questions/2824478/shortest-distance-between-two-line-segments

    a0 = cas.SX.sym("a0", 3, 1)
    b0 = cas.SX.sym("b0", 3, 1)

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

    def custom_noncrossing_const(
    Severity: Major
    Found in api/bioptim_gui_api/acrobatics_ocp/code_generation/custom_penalty_fcn.py - About 50 mins to fix

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

      def custom_noncrossing_obj(
      Severity: Major
      Found in api/bioptim_gui_api/acrobatics_ocp/code_generation/custom_penalty_fcn.py - About 50 mins to fix

        There are no issues that match your filters.

        Category
        Status