Showing 36 of 36 total issues
LocalFilesystem
has 29 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class LocalFilesystem(VehicleComponents, ConfigurationSteps, ProgramSettings): # pylint: disable=too-many-public-methods
"""
A class to manage local filesystem operations for the ArduPilot methodic configurator.
This class provides methods for initializing and re-initializing the filesystem context,
ParameterEditorTable
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ParameterEditorTable(ScrollFrame): # pylint: disable=too-many-ancestors
"""
A class to manage and display the parameter editor table within the GUI.
This class inherits from ScrollFrame and is responsible for creating,
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, parent, parent_frame, initialdir: str, label_text: str, # pylint: disable=too-many-arguments
Function IMUfit
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def IMUfit(logfile, outfile, # pylint: disable=too-many-locals, too-many-branches, too-many-statements, too-many-arguments
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, seq, session, opcode, size, # pylint: disable=too-many-arguments
Function update_parameter_documentation_file
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_parameter_documentation_file(doc, sort_type, param_default_dict, param_file, lines, # pylint: disable=too-many-locals, too-many-arguments
Function validate_entry_limits
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def validate_entry_limits(self, event, entry, data_type, limits, name, path): # pylint: disable=too-many-arguments
Function validate_parameter
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def validate_parameter(param_file, parameter_dict, i, original_line, comment, parameter, value): # pylint: disable=too-many-arguments
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, parent, parent_frame, flight_controller: FlightController, # pylint: disable=too-many-arguments
Function generate_tempcal_accel_figures
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def generate_tempcal_accel_figures(log_parm, figpath, data, c, clog, num_imus): # pylint: disable=too-many-arguments
Avoid deeply nested control flow statements. Open
Open
if self.intermediate_parameter_file_exists(old_filename) and old_filename != new_filename:
new_filename_path = os_path.join(self.vehicle_dir, new_filename)
old_filename_path = os_path.join(self.vehicle_dir, old_filename)
os_rename(old_filename_path, new_filename_path)
logging_info("Renamed %s to %s", old_filename, new_filename)
Avoid deeply nested control flow statements. Open
Open
if imu in clog.atcal:
ofs = data.accel_at_temp(imu, axis, clog.atcal[imu])
else:
ofs = np.mean(data.accel[imu][axis])
c.set_accel_poly(imu, axis, np.polyfit(trel, data.accel[imu][axis] - ofs, POLY_ORDER))
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, parent: ttk, parent_frame: ttk.Frame, # pylint: disable=too-many-arguments
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, container, list_pair_tuple, selected_element, cb_name, *args, **kwargs):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, container, values, selected_element, tooltip, *args, **kwargs):
Avoid deeply nested control flow statements. Open
Open
if bitmasks:
result = 2**next(key for key, bitmask in bitmasks.items() if bitmask == result)
Function __create_new_value_entry
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __create_new_value_entry(self, param_name, param, # pylint: disable=too-many-arguments
Function generate_tempcal_gyro_figures
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def generate_tempcal_gyro_figures(log_parm, figpath, data, c, clog, num_imus): # pylint: disable=too-many-arguments
Function correction
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def correction(self, coeff, imu, temperature, axis, cal_temp): # pylint: disable=too-many-arguments
Function update_parameter_documentation
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_parameter_documentation(doc: Dict[str, Any], target: str = '.',