AI Slop Code RIsk Monitor

ArduPilot/ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source

5.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for ArduPilot/ardupilot, a C++ project with 16,027 GitHub stars. SynthScan examined 1,203,484 lines of code across 5006 source files, recording 5927 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 5.2 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

5.2
Adjusted Signal
5.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
16.0K
Stars
C++
Language
1.2M
Lines of Code
5.0K
Files
5.9K
Pattern Hits
2026-10-12
Scan Date
0.03
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 19.7/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 5478 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.7/100 · LOW

Are imports declared and package/API names verified? 106 finding(s).

Agent Over-Engineering Ratio 5.8/100 · LOW

Are wrappers, guards, and repeated structures necessary? 1046 finding(s).

PR Review Velocity Impact 25.0/100 · MEDIUM

Which changes need focused human review? 5927 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 152MEDIUM 125LOW 5650

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 5927 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block4362 hits · 4136 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml121# # Use to check python typing to show errors.COMMENT
LOWBlimp/Parameters.cpp21 */COMMENT
LOWBlimp/Parameters.cpp41 // @Range: 0 10COMMENT
LOWBlimp/Parameters.cpp61 // @Param: FS_GCS_ENABLECOMMENT
LOWBlimp/Parameters.cpp81COMMENT
LOWBlimp/Parameters.cpp101 // @DisplayName: Flight Mode 1COMMENT
LOWBlimp/Parameters.cpp121 // @DisplayName: Flight Mode 4COMMENT
LOWBlimp/Parameters.cpp141 // @User: AdvancedCOMMENT
LOWBlimp/Parameters.cpp161COMMENT
LOWBlimp/Parameters.cpp181 // @Range: 0.6 1.0COMMENT
LOWBlimp/Parameters.cpp201 // @Description: Sets the maximum acceleration for waypoint navigationCOMMENT
LOWBlimp/Parameters.cpp221 GSCALAR(wp_radius, "WP_RADIUS", 1.0),COMMENT
LOWBlimp/Parameters.cpp241 // @Description: Simple mode for Position control - "forward" moves blimp in +ve X direction world-frameCOMMENT
LOWBlimp/Parameters.cpp261COMMENT
LOWBlimp/Parameters.cpp281 // @Path: ../libraries/AP_Baro/AP_Baro.cppCOMMENT
LOWBlimp/Parameters.cpp301#endifCOMMENT
LOWBlimp/Parameters.cpp361 // @Param: FRAME_CLASSCOMMENT
LOWBlimp/Parameters.cpp381 // @Range: 50 500COMMENT
LOWBlimp/Log.cpp241 LOG_COMMON_STRUCTURES,COMMENT
LOWBlimp/Log.cpp261 // @Field: F2A: Fin 2 AmplitudeCOMMENT
LOWBlimp/Log.cpp321 },COMMENT
LOWBlimp/Log.cpp341 // @Field: TimeUS: Time since system startupCOMMENT
LOWBlimp/version.h1#pragma onceCOMMENT
LOWBlimp/config.h1//COMMENT
LOWBlimp/config.h21#ifndef ARMING_DELAY_SECCOMMENT
LOWBlimp/config.h41COMMENT
LOWBlimp/config.h61//////////////////////////////////////////////////////////////////////////////COMMENT
LOWBlimp/config.h81#endifCOMMENT
LOWBlimp/config.h121# define CH_MODE_DEFAULT 5COMMENT
LOWBlimp/Loiter.cpp1#include "Blimp.h"COMMENT
LOWBlimp/Loiter.cpp21 // @Description: X axis velocity controller I gain maximum. Constrains the maximum that the I term will outputCOMMENT
LOWBlimp/Loiter.cpp41 // @DisplayName: X axis velocity controller target frequency in HzCOMMENT
LOWBlimp/Loiter.cpp61 // @Units: HzCOMMENT
LOWBlimp/Loiter.cpp81 // @Range: 0 0.02COMMENT
LOWBlimp/Loiter.cpp101 // @Range: 0.01 0.5COMMENT
LOWBlimp/Loiter.cpp121 // @Description: Y axis velocity controller D gain. Compensates for short-term change in desired Y velocity vs actuCOMMENT
LOWBlimp/Loiter.cpp141 // @Param: VELY_FLTECOMMENT
LOWBlimp/Loiter.cpp161 // @Increment: 0.5COMMENT
LOWBlimp/Loiter.cpp181 // @Range: 0 8COMMENT
LOWBlimp/Loiter.cpp201 // @Range: 0.01 2.0COMMENT
LOWBlimp/Loiter.cpp221 // @Description: Z axis velocity controller feed forwardCOMMENT
LOWBlimp/Loiter.cpp241COMMENT
LOWBlimp/Loiter.cpp261 // @Increment: 0.01COMMENT
LOWBlimp/Loiter.cpp281 // @User: AdvancedCOMMENT
LOWBlimp/Loiter.cpp301 // @Range: 0 1COMMENT
LOWBlimp/Loiter.cpp321 // @Description: Yaw axis velocity controller target frequency in HzCOMMENT
LOWBlimp/Loiter.cpp341 // @User: StandardCOMMENT
LOWBlimp/Loiter.cpp361 // @Increment: 0.0001COMMENT
LOWBlimp/Loiter.cpp381 // @Increment: 0.005COMMENT
LOWBlimp/Loiter.cpp401 // @Range: 0.0 0.05COMMENT
LOWBlimp/Loiter.cpp421 // @DisplayName: X axis position controller error frequency in HzCOMMENT
LOWBlimp/Loiter.cpp441 // @User: AdvancedCOMMENT
LOWBlimp/Loiter.cpp461 // @User: AdvancedCOMMENT
LOWBlimp/Loiter.cpp481 // @Increment: 0.01COMMENT
LOWBlimp/Loiter.cpp501 // @Range: 0 0.5COMMENT
LOWBlimp/Loiter.cpp521 // @Param: POSY_FLTDCOMMENT
LOWBlimp/Loiter.cpp541 // @User: AdvancedCOMMENT
LOWBlimp/Loiter.cpp561 AP_SUBGROUPINFO(pid_pos_y, "POSY_", 5, Loiter, AC_PID),COMMENT
LOWBlimp/Loiter.cpp581 // @Increment: 0.01COMMENT
LOWBlimp/Loiter.cpp601 // @Range: 5 100COMMENT
4302 more matches not shown…
Empty Error Handlers120 hits · 555 pts
SeverityFileLineSnippetContext
HIGHTools/autotest/helicopter.py621except AutoTestTimeoutException:CODE
HIGHTools/autotest/fakepos.py40except socket.error:CODE
HIGHTools/autotest/vehicle_test_suite.py105except ImportError:CODE
HIGHTools/autotest/vehicle_test_suite.py1285except KeyError:CODE
HIGHTools/autotest/vehicle_test_suite.py1478except KeyError:CODE
HIGHTools/autotest/vehicle_test_suite.py2015except KeyError:CODE
HIGHTools/autotest/vehicle_test_suite.py2808except OSError:CODE
HIGHTools/autotest/vehicle_test_suite.py3218except OSError:CODE
HIGHTools/autotest/vehicle_test_suite.py3519except AttributeError:CODE
HIGHTools/autotest/vehicle_test_suite.py9784except IOError:CODE
HIGHTools/autotest/vehicle_test_suite.py9786except OSError:CODE
HIGHTools/autotest/vehicle_test_suite.py9797except IOError:CODE
HIGHTools/autotest/vehicle_test_suite.py9799except OSError:CODE
HIGHTools/autotest/vehicle_test_suite.py10011except IndexError:CODE
HIGHTools/autotest/vehicle_test_suite.py14543except ValueError:CODE
HIGHTools/autotest/vehicle_test_suite.py2665except NotAchievedException:CODE
HIGHTools/autotest/vehicle_test_suite.py2667except AutoTestTimeoutException:CODE
HIGHTools/autotest/vehicle_test_suite.py2669except ConnectionResetError:CODE
HIGHTools/autotest/vehicle_test_suite.py2671except socket.error:CODE
HIGHTools/autotest/vehicle_test_suite.py3373except IOError:CODE
HIGHTools/autotest/vehicle_test_suite.py6142except queue.Empty:CODE
HIGHTools/autotest/vehicle_test_suite.py6561except AutoTestTimeoutException:CODE
HIGHTools/autotest/vehicle_test_suite.py6993except pexpect.TIMEOUT:CODE
HIGHTools/autotest/vehicle_test_suite.py7322except pexpect.ExceptionPexpect:CODE
HIGHTools/autotest/vehicle_test_suite.py7338except FileNotFoundError:CODE
HIGHTools/autotest/vehicle_test_suite.py9191except (KeyError, AttributeError):CODE
HIGHTools/autotest/vehicle_test_suite.py12157except NotAchievedException:CODE
HIGHTools/autotest/vehicle_test_suite.py12166except NotAchievedException:CODE
HIGHTools/autotest/vehicle_test_suite.py12178except NotAchievedException:CODE
HIGHTools/autotest/vehicle_test_suite.py14222except KeyError:CODE
HIGHTools/autotest/vehicle_test_suite.py451except Exception: # noqa: BLE001CODE
HIGHTools/autotest/vehicle_test_suite.py6793except AutoTestTimeoutException:CODE
HIGHTools/autotest/vehicle_test_suite.py9394except Exception: # noqa: BLE001CODE
HIGHTools/autotest/vehicle_test_suite.py12134except ValueError:CODE
HIGHTools/autotest/vehicle_test_suite.py12138except NotAchievedException:CODE
HIGHTools/autotest/vehicle_test_suite.py12145except NotAchievedException:CODE
HIGHTools/autotest/vehicle_test_suite.py12192except NotAchievedException:CODE
HIGHTools/autotest/vehicle_test_suite.py12199except NotAchievedException:CODE
HIGHTools/autotest/vehicle_test_suite.py3299except KeyError:CODE
HIGHTools/autotest/autotest.py265except Exception: # noqa: BLE001CODE
HIGHTools/autotest/autotest.py496except (FileNotFoundError, ValueError):CODE
HIGHTools/autotest/quadplane.py1574except AutoTestTimeoutException:CODE
HIGHTools/autotest/quadplane.py168except NotAchievedException:CODE
HIGHTools/autotest/test_build_options.py613except FileNotFoundError:CODE
HIGHTools/autotest/arduplane.py5399except WaitModeTimeout:CODE
HIGHTools/autotest/arduplane.py215except AutoTestTimeoutException:CODE
HIGHTools/autotest/rover.py4166except NotAchievedException:CODE
HIGHTools/autotest/rover.py4220except NotAchievedException:CODE
HIGHTools/autotest/rover.py4254except NotAchievedException:CODE
HIGHTools/autotest/rover.py4288except NotAchievedException:CODE
HIGHTools/autotest/test_param_upgrade.py214except subprocess.CalledProcessError:CODE
HIGHTools/autotest/unittest/annotate_params_unittest.py90except FileNotFoundError:CODE
HIGHTools/autotest/unittest/annotate_params_unittest.py139except FileNotFoundError:CODE
HIGHTools/autotest/unittest/annotate_params_unittest.py167except FileNotFoundError:CODE
HIGHTools/autotest/unittest/annotate_params_unittest.py185except FileNotFoundError:CODE
HIGHTools/autotest/unittest/annotate_params_unittest.py124except FileNotFoundError:CODE
HIGHTools/autotest/pysim/util.py70except (OSError, FileNotFoundError):CODE
HIGHTools/autotest/pysim/util.py420except Exception: # noqa: BLE001CODE
HIGHTools/autotest/pysim/util.py424except Exception: # noqa: BLE001CODE
HIGHTools/autotest/pysim/util.py440except Exception: # noqa: BLE001CODE
60 more matches not shown…
Hyper-Verbose Identifiers672 hits · 549 pts
SeverityFileLineSnippetContext
LOWTools/mavproxy_modules/sitl_calibration.py458 def cmd_sitl_autonomous_magcal(self, args):CODE
LOWTools/mavproxy_modules/lib/magcal_graph_ui.py87 def update_status_from_mavlink(self, m):CODE
LOWTools/autotest/helicopter.py28 def max_distance_from_startup_location_at_end_of_test(self):CODE
LOWTools/autotest/helicopter.py55 def subgroupvarptr_activation_params(self):CODE
LOWTools/autotest/helicopter.py68 def get_position_armable_modes_list():CODE
LOWTools/autotest/helicopter.py1378 def autotune_land_and_save_gains(self):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py4879 def assert_message_field_values(self, m, fieldvalues, verbose=True, epsilon=None):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py4884 def assert_cached_message_field_values(self, message, fieldvalues, verbose=True, very_verbose=False, epsilon=None):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py4891 def assert_received_message_field_values(self,CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5388 def install_script_content_context(self, scriptname, content):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5395 def install_example_script_context(self, scriptname):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5401 def install_test_script_context(self, scriptnames):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5410 def install_test_scripts_context(self, *args, **kwargs):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5414 def install_test_modules_context(self):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5420 def install_script_module_context(self, source, modulename, install_name=None):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5428 def install_mavlink_module_context(self, modulename="mavlink"):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5434 def install_applet_script_context(self, scriptname, install_name=None):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5441 def install_driver_script_context(self, scriptname, install_name=None):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5762 def sitl_home_string_from_mission(self, filename):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5767 def sitl_home_string_from_mission_filepath(self, filepath):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5772 def get_home_tuple_from_mission(self, filename):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5781 def get_home_location_from_mission(self, filename):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5785 def get_home_tuple_from_mission_filepath(self, filepath):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5795 def load_mission_from_filepath(self,CODE
LOW⚡Tools/autotest/vehicle_test_suite.py5992 def check_fence_upload_download(self, items):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py6000 def check_mission_upload_download(self, items, strict=True):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py6009 def check_rally_upload_download(self, items):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py6018 def check_dflog_message_rates(self, log_filepath, message_rates):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py6288 def send_mavlink_disarm_command(self):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py6294 def send_mavlink_run_prearms_command(self):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py6297 def analog_rangefinder_parameters(self):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py6306 def set_analog_rangefinder_parameters(self):CODE
LOWTools/autotest/vehicle_test_suite.py7359 # def context_start_custom_binary(self, extra_defines={}):COMMENT
LOW⚡Tools/autotest/vehicle_test_suite.py7954 def do_set_mode_via_command_long(self, mode, timeout=30):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py7957 def do_set_mode_via_command_int(self, mode, timeout=30):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py7960 def mavproxy_do_set_mode_via_command_long(self, mavproxy, mode, timeout=30):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py7995 def assert_vehicle_location_is_at_startup_location(self, dist_max=1):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py8005 def max_distance_from_startup_location_at_end_of_test(self):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py8013 def assert_simstate_location_is_at_startup_location(self, dist_max=1):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py9084 def _rc_overrides_send_single(self, chan, pwm):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py9094 def _rc_overrides_release_single(self, chan):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py9104 def _check_rc_overrides_cleared_by_pilot_input(self,CODE
LOW⚡Tools/autotest/vehicle_test_suite.py9699 def script_example_source_path(self, scriptname):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py9705 def script_applet_source_path(self, scriptname):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py9708 def script_driver_source_path(self, scriptname):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py9711 def script_modules_source_path(self, scriptname):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py9802 def mavlink_connection_supports_reconnect_delay(self):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py9810 def announce_ourselves_to_ardupilot(self):CODE
LOW⚡Tools/autotest/vehicle_test_suite.py9819 def announce_ourselves_on_every_connection(self):CODE
LOWTools/autotest/vehicle_test_suite.py1791 def dump_dataid_counts_as_progress_messages(self):CODE
LOWTools/autotest/vehicle_test_suite.py1795 def dump_sensor_id_poll_counts_as_progress_messages(self):CODE
LOWTools/autotest/vehicle_test_suite.py1868 def send_mavlite_param_request_read(self, parameter_name):CODE
LOWTools/autotest/vehicle_test_suite.py1891 def send_mavlite_command_long(CODE
LOWTools/autotest/vehicle_test_suite.py2294 def mavproxy_ftp_module_has_command(self, command):CODE
LOWTools/autotest/vehicle_test_suite.py2353 def autotest_connection_string_to_ardupilot(self):CODE
LOWTools/autotest/vehicle_test_suite.py2383 def sitl_rcin_commandline_value(self, offset=0):CODE
LOWTools/autotest/vehicle_test_suite.py2406 def repeatedly_apply_parameter_filepath(self, filepath):CODE
LOWTools/autotest/vehicle_test_suite.py2418 def repeatedly_apply_parameter_filepath_mavproxy(self, filepath):CODE
LOWTools/autotest/vehicle_test_suite.py2432 def apply_defaultfile_parameters(self):CODE
LOWTools/autotest/vehicle_test_suite.py2444 def count_expected_fence_lines_in_filepath(self, filepath):CODE
612 more matches not shown…
Deep Nesting267 hits · 232 pts
SeverityFileLineSnippetContext
LOWTools/mavproxy_modules/lib/magcal_graph_ui.py208CODE
LOWTools/autotest/bisect-helper.py217CODE
LOWTools/autotest/vehicle_test_suite.py1431CODE
LOWTools/autotest/vehicle_test_suite.py1934CODE
LOWTools/autotest/vehicle_test_suite.py2418CODE
LOWTools/autotest/vehicle_test_suite.py2896CODE
LOWTools/autotest/vehicle_test_suite.py3212CODE
LOWTools/autotest/vehicle_test_suite.py4105CODE
LOWTools/autotest/vehicle_test_suite.py4152CODE
LOWTools/autotest/vehicle_test_suite.py4828CODE
LOWTools/autotest/vehicle_test_suite.py4915CODE
LOWTools/autotest/vehicle_test_suite.py5466CODE
LOWTools/autotest/vehicle_test_suite.py5636CODE
LOWTools/autotest/vehicle_test_suite.py6123CODE
LOWTools/autotest/vehicle_test_suite.py6735CODE
LOWTools/autotest/vehicle_test_suite.py6943CODE
LOWTools/autotest/vehicle_test_suite.py7837CODE
LOWTools/autotest/vehicle_test_suite.py8480CODE
LOWTools/autotest/vehicle_test_suite.py9422CODE
LOWTools/autotest/vehicle_test_suite.py9468CODE
LOWTools/autotest/vehicle_test_suite.py11038CODE
LOWTools/autotest/vehicle_test_suite.py11683CODE
LOWTools/autotest/vehicle_test_suite.py11779CODE
LOWTools/autotest/vehicle_test_suite.py11922CODE
LOWTools/autotest/vehicle_test_suite.py12063CODE
LOWTools/autotest/vehicle_test_suite.py12666CODE
LOWTools/autotest/vehicle_test_suite.py12981CODE
LOWTools/autotest/vehicle_test_suite.py13935CODE
LOWTools/autotest/vehicle_test_suite.py14229CODE
LOWTools/autotest/vehicle_test_suite.py14368CODE
LOWTools/autotest/vehicle_test_suite.py14630CODE
LOWTools/autotest/vehicle_test_suite.py15010CODE
LOWTools/autotest/vehicle_test_suite.py15230CODE
LOWTools/autotest/vehicle_test_suite.py16434CODE
LOWTools/autotest/vehicle_test_suite.py16731CODE
LOWTools/autotest/vehicle_test_suite.py17325CODE
LOWTools/autotest/vehicle_test_suite.py17412CODE
LOWTools/autotest/vehicle_test_suite.py18443CODE
LOWTools/autotest/vehicle_test_suite.py19554CODE
LOWTools/autotest/vehicle_test_suite.py4178CODE
LOWTools/autotest/vehicle_test_suite.py11130CODE
LOWTools/autotest/vehicle_test_suite.py12992CODE
LOWTools/autotest/autotest.py429CODE
LOWTools/autotest/autotest.py735CODE
LOWTools/autotest/quadplane.py2487CODE
LOWTools/autotest/quadplane.py3829CODE
LOWTools/autotest/ardusub.py1216CODE
LOWTools/autotest/ardusub.py1440CODE
LOWTools/autotest/antennatracker.py214CODE
LOWTools/autotest/test_mavlink_param_upgrade.py82CODE
LOWTools/autotest/test_build_options.py142CODE
LOWTools/autotest/test_build_options.py203CODE
LOWTools/autotest/arduplane.py356CODE
LOWTools/autotest/arduplane.py5939CODE
LOWTools/autotest/sim_vehicle.py260CODE
LOWTools/autotest/sim_vehicle.py337CODE
LOWTools/autotest/sim_vehicle.py662CODE
LOWTools/autotest/sim_vehicle.py735CODE
LOWTools/autotest/sim_vehicle.py1090CODE
LOWTools/autotest/rover.py1388CODE
207 more matches not shown…
Excessive Try-Catch Wrapping171 hits · 180 pts
SeverityFileLineSnippetContext
LOWTools/gittools/pre_commit_copyright.py89 except Exception as e: # noqa: BLE001 Path.read_text() can raise many exceptionsCODE
MEDIUMTools/gittools/pre_commit_copyright.py90 print(f"Error reading {file_path}: {e}")CODE
LOWTools/autotest/bisect-helper.py378except Exception as e: # noqa: BLE001CODE
MEDIUMTools/autotest/vehicle_test_suite.py444def connect(self):CODE
MEDIUMTools/autotest/vehicle_test_suite.py4178def verify_logs(test_log_num):CODE
LOWTools/autotest/vehicle_test_suite.py451 except Exception: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py2673 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py3788 except Exception:CODE
LOWTools/autotest/vehicle_test_suite.py3828 except Exception:CODE
LOWTools/autotest/vehicle_test_suite.py4092 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py7228 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py7281 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py9394 except Exception: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py9885 except Exception as msg:CODE
LOWTools/autotest/vehicle_test_suite.py10092 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py10118 except Exception: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py10128 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py10179 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py10213 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11410 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11771 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11822 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11912 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py11943 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py12537 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py12604 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py12828 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py14539 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py14700 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py16241 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py16609 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py16640 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py17587 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py17633 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py17681 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py17716 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py17758 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py18036 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py18083 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py18123 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py18183 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py18237 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/vehicle_test_suite.py18340 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/autotest.py103 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/autotest.py117 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/autotest.py265 except Exception: # noqa: BLE001CODE
LOWTools/autotest/autotest.py780 except Exception as msg: # noqa: BLE001CODE
LOWTools/autotest/autotest.py1332 except Exception:CODE
LOWTools/autotest/quadplane.py1803 except Exception:CODE
LOWTools/autotest/test_build_options.py483 except Exception:CODE
LOWTools/autotest/balancebot.py88 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/examples.py134 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/arduplane.py324 except Exception as e:CODE
LOWTools/autotest/arduplane.py436 except Exception as e:CODE
LOWTools/autotest/arduplane.py537 except Exception as e:CODE
LOWTools/autotest/arduplane.py555 except Exception as e:CODE
LOWTools/autotest/arduplane.py4633 except Exception:CODE
LOWTools/autotest/arduplane.py5401 except Exception as e:CODE
LOWTools/autotest/arduplane.py5856 except Exception as e: # noqa: BLE001CODE
LOWTools/autotest/sim_vehicle.py319 except Exception as e: # noqa: BLE001CODE
111 more matches not shown…
Self-Referential Comments38 hits · 118 pts
SeverityFileLineSnippetContext
MEDIUMTools/mavproxy_modules/magcal_graph.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/mavproxy_modules/magcal_graph.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/mavproxy_modules/sitl_calibration.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/mavproxy_modules/sitl_calibration.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/mavproxy_modules/lib/geodesic_grid.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/mavproxy_modules/lib/geodesic_grid.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/mavproxy_modules/lib/magcal_graph_ui.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/mavproxy_modules/lib/magcal_graph_ui.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/autotest/run_in_terminal_window.sh51 # Create a new pane to runCOMMENT
MEDIUM⚡…s/autotest/unittest/extract_param_defaults_unittest.py154 # Define a list of parameter namesCOMMENT
MEDIUM⚡…s/autotest/unittest/extract_param_defaults_unittest.py169 # Define a list of parameter namesCOMMENT
MEDIUM⚡Tools/autotest/unittest/annotate_params_unittest.py38 # Create a temporary directoryCOMMENT
MEDIUM⚡Tools/autotest/unittest/annotate_params_unittest.py41 # Create a temporary fileCOMMENT
MEDIUM⚡Tools/autotest/unittest/annotate_params_unittest.py44 # Create a dictionary of parameter documentationCOMMENT
MEDIUMTools/autotest/unittest/annotate_params_unittest.py277 # Define the inputSTRING
MEDIUMTools/autotest/unittest/annotate_params_unittest.py293 # Define the expected outputSTRING
MEDIUMTools/ros2/ardupilot_sitl/src/ardupilot_sitl/launch.py501 # Create an instance directory to store eeprom.bin.COMMENT
MEDIUMTools/ardupilotwaf/ap_library.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/ardupilotwaf/ap_library.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/ardupilotwaf/cmake.py5# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/ardupilotwaf/cmake.py10# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/ardupilotwaf/cxx_checks.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/ardupilotwaf/cxx_checks.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMTools/ardupilotwaf/build_summary.py5# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMTools/ardupilotwaf/build_summary.py10# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMlibraries/AP_Camera/examples/gst_rtsp_to_wx.py74 # Create a sink to get dataCOMMENT
MEDIUMlibraries/AP_Camera/examples/gst_udp_to_wx.py77 # Create a sink to get dataCOMMENT
MEDIUM…_Motors/examples/AP_Motors_test/run_heli_comparison.py211 # Create the new directoryCOMMENT
MEDIUMlibraries/AP_NavEKF3/derivation/generate_2.py439 # Define the state vectorsCOMMENT
MEDIUMlibraries/AP_NavEKF3/derivation/generate_1.py450 # Define the state vectorsCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/icosahedron.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/icosahedron.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/grid.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/grid.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/plot.py3# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/plot.py8# This file is distributed in the hope that it will be useful, butCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/geodesic_grid.py5# This file is free software: you can redistribute it and/or modify itCOMMENT
MEDIUMlibraries/AP_Math/tools/geodesic_grid/geodesic_grid.py10# This file is distributed in the hope that it will be useful, butCOMMENT
Unused Imports96 hits · 96 pts
SeverityFileLineSnippetContext
LOWTools/mavproxy_modules/magcal_graph.py63CODE
LOWTools/mavproxy_modules/lib/magcal_graph_ui.py20CODE
LOWTools/mavproxy_modules/lib/magcal_graph_ui.py24CODE
LOWTools/autotest/vehicle_test_suite.py8CODE
LOWTools/autotest/pysim/util.py5CODE
LOWTools/autotest/param_metadata/xmlemit.py7CODE
LOW…ests/test/ardupilot_dds_tests/test_joy_msg_received.py31CODE
LOW…ests/test/ardupilot_dds_tests/test_joy_msg_received.py38CODE
LOWTools/scripts/build_binaries.py12CODE
LOWTools/scripts/filter_size_compare_branches_csv.py7CODE
LOWTools/scripts/test_new_boards.py19CODE
LOWTools/scripts/make_intel_hex.py5CODE
LOWTools/scripts/convert_params_4_7.py29CODE
LOWTools/scripts/param_check.py32CODE
LOWTools/scripts/check_branch_conventions.py19CODE
LOWTools/scripts/convert_param_scale.py21CODE
LOWTools/scripts/param_check_all.py9CODE
LOWTools/scripts/size_compare_branches.py19CODE
LOWTools/scripts/param_check_unittests.py9CODE
LOWTools/scripts/tempcal_IMU.py26CODE
LOWTools/scripts/tempcal_IMU.py27CODE
LOWTools/scripts/tfminiplus.py8CODE
LOWTools/scripts/build_boards.py16CODE
LOWTools/scripts/build_script_base.py7CODE
LOWTools/scripts/build_examples.py3CODE
LOWTools/scripts/build_peripherals.py10CODE
LOWTools/scripts/build_peripherals.py12CODE
LOWTools/scripts/size_history.py18CODE
LOWTools/scripts/CAN/CAN_playback.py12CODE
LOWTools/scripts/CAN/CAN_playback.py13CODE
LOWTools/scripts/CAN/CAN_playback.py15CODE
LOWTools/scripts/CAN/fix2_gap.py9CODE
LOWTools/ardupilotwaf/esp32.py9CODE
LOWTools/ardupilotwaf/esp32.py9CODE
LOWTools/ardupilotwaf/esp32.py9CODE
LOWTools/ardupilotwaf/esp32.py9CODE
LOWTools/ardupilotwaf/esp32.py9CODE
LOWTools/ardupilotwaf/esp32.py10CODE
LOWTools/ardupilotwaf/esp32.py10CODE
LOWTools/ardupilotwaf/esp32.py11CODE
LOWTools/ardupilotwaf/esp32.py11CODE
LOWTools/ardupilotwaf/esp32.py12CODE
LOWTools/ardupilotwaf/esp32.py16CODE
LOWTools/ardupilotwaf/esp32.py19CODE
LOWTools/ardupilotwaf/esp32.py20CODE
LOWTools/ardupilotwaf/esp32.py21CODE
LOWTools/ardupilotwaf/gbenchmark.py9CODE
LOWTools/ardupilotwaf/gbenchmark.py9CODE
LOWTools/ardupilotwaf/gbenchmark.py9CODE
LOWTools/ardupilotwaf/gbenchmark.py12CODE
LOWTools/ardupilotwaf/embed.py12CODE
LOWTools/ardupilotwaf/chibios.py16CODE
LOWTools/ardupilotwaf/dronecangen.py9CODE
LOWTools/ardupilotwaf/dronecangen.py10CODE
LOWTools/ardupilotwaf/dronecangen.py13CODE
LOWTools/ardupilotwaf/mavgen.py10CODE
LOWTools/ardupilotwaf/mavgen.py10CODE
LOWTools/ardupilotwaf/mavgen.py11CODE
LOWTools/ardupilotwaf/toolchain.py17CODE
LOWTools/ardupilotwaf/toolchain.py20CODE
36 more matches not shown…
Cross-File Repetition17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHTools/gittools/pre_commit_copyright.py0ardupilot imu filter test class this program is free software: you can redistribute it and/or modify it under the terms STRING
HIGHTools/FilterTestTool/BiquadFilter.py0ardupilot imu filter test class this program is free software: you can redistribute it and/or modify it under the terms STRING
HIGHTools/FilterTestTool/run_filter_test.py0ardupilot imu filter test class this program is free software: you can redistribute it and/or modify it under the terms STRING
HIGHTools/FilterTestTool/FilterTest.py0ardupilot imu filter test class this program is free software: you can redistribute it and/or modify it under the terms STRING
HIGHTools/autotest/vehicle_test_suite.py0in lockup plane should copy rc inputs to rc outputsSTRING
HIGHTools/autotest/quadplane.py0in lockup plane should copy rc inputs to rc outputsSTRING
HIGHTools/autotest/arduplane.py0in lockup plane should copy rc inputs to rc outputsSTRING
HIGHTools/autotest/ardusub.py0compare logged ekf2 and ekf3 estimates against simulator truthSTRING
HIGHTools/autotest/blimp.py0compare logged ekf2 and ekf3 estimates against simulator truthSTRING
HIGHTools/autotest/arduplane.py0compare logged ekf2 and ekf3 estimates against simulator truthSTRING
HIGHTools/autotest/rover.py0compare logged ekf2 and ekf3 estimates against simulator truthSTRING
HIGH…ests/test/ardupilot_dds_tests/test_joy_msg_received.py0try to arm. returns true on success, or false if arming fails or times out.STRING
HIGH…upilot_dds_tests/ardupilot_dds_tests/copter_takeoff.py0try to arm. returns true on success, or false if arming fails or times out.STRING
HIGH…s_tests/ardupilot_dds_tests/plane_waypoint_follower.py0try to arm. returns true on success, or false if arming fails or times out.STRING
HIGH…ests/test/ardupilot_dds_tests/test_joy_msg_received.py0try to switch mode. returns true on success, or false if mode switch fails or times out.STRING
HIGH…upilot_dds_tests/ardupilot_dds_tests/copter_takeoff.py0try to switch mode. returns true on success, or false if mode switch fails or times out.STRING
HIGH…s_tests/ardupilot_dds_tests/plane_waypoint_follower.py0try to switch mode. returns true on success, or false if mode switch fails or times out.STRING
AI Slop Vocabulary23 hits · 62 pts
SeverityFileLineSnippetContext
MEDIUMTools/autotest/vehicle_test_suite.py10230 # the harness performs, because what matters is the state the nextCOMMENT
MEDIUMTools/autotest/arduplane.py3941 # in the future when the test is more robust.COMMENT
MEDIUMTools/autotest/arduplane.py5699 # a final reset so the harness sees a disarmed vehicle at the end:COMMENT
LOWTools/autotest/arduplane.py1258 # 26.6m/s, *above* the FLAP_1_SPEED we just set, so the flaps deploy on theCOMMENT
LOWTools/autotest/arduplane.py3153 # mcReady tests don't work ATM, so just return early:COMMENT
MEDIUMTools/scripts/unpack_mp.sh4# to facilitate upgrade of existing MissionPlanner installsCOMMENT
MEDIUMTools/AP_Periph/AP_Periph.cpp39// but it forms part of a series of measures to give a robust recoveryCOMMENT
LOWTools/ardupilotwaf/chibios.py104 # Solution: simply call "python.exe" instead of 'python' which magically calls it from the windowsCOMMENT
MEDIUMlibraries/AP_ADSB/AP_ADSB_MAVLink.cpp145 // utilize the upper unused 8bits of the icao with special flags.COMMENT
MEDIUMlibraries/AP_HAL_Linux/RCOutput_Bebop.cpp212 // sync our state from status. This makes us more robust to i2c errorsCOMMENT
MEDIUMlibraries/AP_Logger/LogStructure.h90// Essentially "format" simply tells you the C-type, and format-type hCOMMENT
MEDIUMlibraries/AP_L1_Control/AP_L1_Control.cpp451 // point where the commands cross over to achieve a seamless transferCOMMENT
MEDIUMlibraries/AP_NavEKF3/AP_NavEKF3_MagFusion.cpp177 // attempt to use EKF-GSF estimate if available as it is more robust to GPS glitchesCOMMENT
MEDIUMlibraries/AP_NavEKF3/AP_NavEKF3_MagFusion.cpp365 // use the EKF-GSF yaw estimator output as this is more robust than the EKF can achieve without a yaw measurCOMMENT
MEDIUMlibraries/AP_InertialSensor/AP_InertialSensor.cpp779 // assume this is the same sensor and save its ID to allow seamlessCOMMENT
MEDIUMlibraries/AP_InertialSensor/AP_InertialSensor.cpp851 // assume this is the same sensor and save its ID to allow seamlessCOMMENT
MEDIUMlibraries/SITL/SIM_SensAItion.cpp77 // However, the most robust way in ArduPilot SITL is to use theCOMMENT
MEDIUMlibraries/SITL/examples/Webots/tests/flight_test.py42# Arming checks and the auto-disarm timer are off because this harness talksCOMMENT
MEDIUMlibraries/AP_Param/AP_Param.cpp762 // this makes us more robust to power off while adding a variableCOMMENT
MEDIUMlibraries/AP_GPS/GPS_Backend.cpp367 // if the reported distance is less then the minimum separation it's not sufficiently robustCOMMENT
MEDIUMlibraries/AP_GPS/AP_GPS_NMEA.h33/// robust in the face of occasional corruption in the input stream. ItCOMMENT
MEDIUMlibraries/GCS_MAVLink/GCS_FTP.cpp619 // reset our scratch area so we don't leak data, and can leverage trimmingCOMMENT
MEDIUMlibraries/GCS_MAVLink/GCS_Common.cpp3197 // note that this is not quite right; we could be more nuancedCOMMENT
Cross-Language Confusion10 hits · 61 pts
SeverityFileLineSnippetContext
HIGHTools/autotest/vehicle_test_suite.py17960 # the size counts both names and the separating null, not theCOMMENT
HIGHTools/autotest/vehicle_test_suite.py16942 entry means the autopilot emitted a stray null, which makes a clientSTRING
HIGHTools/autotest/arduplane.py3721 # Before the fix WIND.speed was wind.length() (3D); after the fix itCOMMENT
HIGH⚡Tools/autotest/arduplane.py4301 if gyro.length() > gyro_threshold:CODE
HIGH⚡Tools/autotest/arduplane.py4304 if accel.length() > accel_threshold:CODE
HIGH⚡Tools/autotest/arduplane.py4308 if gyro.length() > gyro_threshold*2:CODE
HIGH⚡Tools/autotest/arduplane.py4311 if accel.length() > accel_threshold*2:CODE
HIGHlibraries/AP_InertialSensor/examples/coning.py39 theta = vec.length()CODE
HIGHlibraries/AP_Math/tools/geodesic_grid/icosahedron.py51 return (1.0 / self.length()) * selfCODE
HIGHlibraries/AP_Math/tools/geodesic_grid/grid.py22 alpha = a.length() / (2.0 * ico.g)CODE
Redundant / Tautological Comments48 hits · 61 pts
SeverityFileLineSnippetContext
LOWTools/autotest/vehicle_test_suite.py11628 # Check if we got the expected message or an unexpected oneCOMMENT
LOWTools/autotest/arduplane.py7886 # Check if all servos wiggleCOMMENT
LOWTools/autotest/arduplane.py4838 "FENCE_ACTION": 0, # Set action to reportCODE
LOWTools/autotest/arduplane.py4880 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py4921 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py4958 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py5010 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py5073 "FENCE_ACTION": 8, # Set action to AUTOLAND if possibleCODE
LOWTools/autotest/arduplane.py5139 "FENCE_ACTION": 1, # Set action to RTLCODE
LOWTools/autotest/arduplane.py5208 "FENCE_ACTION": 6, # Set action to GUIDEDCODE
LOWTools/autotest/rover.py6299 # Set FRAME_CLASS to start receiving WATER_DEPTH messages & logging DPTHCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py102 # Check if the defaults dictionary contains the correct parameters and valuesCOMMENT
LOW⚡…s/autotest/unittest/extract_param_defaults_unittest.py160 # Check if the parameters were sorted correctlyCOMMENT
LOW⚡…s/autotest/unittest/extract_param_defaults_unittest.py175 # Check if the parameters were sorted correctlyCOMMENT
LOW⚡…s/autotest/unittest/extract_param_defaults_unittest.py194 # Check if the print function was called with the correct parametersCOMMENT
LOW⚡…s/autotest/unittest/extract_param_defaults_unittest.py206 # Check if the print function was called with the correct parametersCOMMENT
LOW⚡…s/autotest/unittest/extract_param_defaults_unittest.py219 # Check if the print function was called with the correct parametersCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py233 # Check if the print function was called with the correct parametersCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py248 # Check if the print function was called with the correct parametersCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py263 # Check if the print function was called with the correct parametersCOMMENT
LOW…s/autotest/unittest/extract_param_defaults_unittest.py315 # Check if the print function was called with the correct parametersCOMMENT
LOW⚡Tools/autotest/unittest/annotate_params_unittest.py454 # Check if the SystemExit exception contains the expected messageSTRING
LOW⚡Tools/autotest/unittest/annotate_params_unittest.py487 # Check if the parameter name was loggedSTRING
LOW⚡Tools/autotest/unittest/annotate_params_unittest.py522 # Check if the warnings were loggedSTRING
LOW⚡Tools/autotest/unittest/annotate_params_unittest.py535 # Check if the file is still emptySTRING
LOWTools/autotest/unittest/annotate_params_unittest.py322 # Check if the file has been updated correctlySTRING
LOWTools/autotest/logger_metadata/parse.py216 # Loop through the listCOMMENT
LOWTools/autotest/logger_metadata/parse.py231 # Loop through the listCOMMENT
LOWTools/autotest/logger_metadata/parse.py251 # Check if the defined format for this field contains its own multiplierCOMMENT
LOWTools/autotest/logger_metadata/parse.py257 # Check if we have a defined prefix for this multiplierCOMMENT
LOWTools/scripts/build_binaries.py958 # Check if the compressed output file was createdCOMMENT
LOWTools/scripts/annotate_params.py94 # Check if the locally cached file existsCOMMENT
LOWTools/scripts/annotate_params.py318 # Check if the target is a file or a directoryCOMMENT
LOWTools/scripts/param_check.py219 # Check if the bit is set, and if so, if it's described in the metadataCOMMENT
LOWTools/scripts/param_check.py507 # Check if any files failed (i.e. have error messages)COMMENT
LOWTools/environment_install/install-prereqs-ubuntu.sh198# Check if we need to manually install libtool-binCOMMENT
LOWTools/environment_install/install-prereqs-ubuntu.sh411# Check if we need to manually install realpathCOMMENT
LOWTools/environment_install/install-prereqs-ubuntu.sh417# Check if we need to manually install libtool-binCOMMENT
LOWTools/environment_install/install-prereqs-ubuntu.sh464 # Check if venv already exists in ARDUPILOT_ROOT (check both venv-ardupilot and venv)COMMENT
LOWTools/environment_install/install-prereqs-arch.sh90 # Check if file exists and verify checksumCOMMENT
LOWTools/ardupilotwaf/esp32.py53 #Check if esp-idf env are loaded, or load itCOMMENT
LOWTools/debug/crash_debugger.py48 # Check if already in hardfaultCOMMENT
LOW…es/AP_Motors/examples/AP_Motors_test/MotorTestSweep.sh3# Output results to files for comparisonCOMMENT
LOW…M_Control/examples/AP_FW_Controller_test/TestMatrix.sh3# Output results to files for comparisonCOMMENT
LOWlibraries/SITL/examples/follow-copter.sh30# Check if SITL copter has been builtCOMMENT
LOWlibraries/SITL/examples/follow-copter.sh39# Check if Platform is Native Linux, WSL or CygwinCOMMENT
LOWlibraries/SITL/examples/Airsim/follow-copter.sh23# Check if Platform is Native Linux, WSL or CygwinCOMMENT
LOWlibraries/SITL/examples/JSON/pybullet/walking_robot.py212 # Check if the fame is in expected orderCOMMENT
Dead Code26 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMTools/autotest/vehicle_test_suite.py6688CODE
MEDIUMTools/autotest/vehicle_test_suite.py6690CODE
MEDIUMTools/autotest/vehicle_test_suite.py6699CODE
MEDIUMTools/autotest/arduplane.py3159CODE
MEDIUMTools/autotest/arduplane.py3161CODE
MEDIUMTools/autotest/arduplane.py3164CODE
MEDIUMTools/autotest/arduplane.py3167CODE
MEDIUMTools/autotest/arduplane.py3169CODE
MEDIUMTools/autotest/arduplane.py3170CODE
MEDIUMTools/autotest/arduplane.py3174CODE
MEDIUMTools/autotest/arduplane.py3175CODE
MEDIUMTools/autotest/arduplane.py3176CODE
MEDIUMTools/autotest/arduplane.py3177CODE
MEDIUMTools/autotest/arduplane.py3179CODE
MEDIUMTools/autotest/arduplane.py3180CODE
MEDIUMTools/autotest/arduplane.py3183CODE
MEDIUMTools/autotest/arduplane.py3184CODE
MEDIUMTools/autotest/arduplane.py3186CODE
MEDIUMTools/autotest/arduplane.py3187CODE
MEDIUMTools/autotest/arduplane.py3190CODE
MEDIUMTools/autotest/arduplane.py3191CODE
MEDIUMTools/autotest/arduplane.py3194CODE
MEDIUMTools/autotest/arduplane.py3195CODE
MEDIUMTools/autotest/rover.py2724CODE
MEDIUMTools/autotest/rover.py2727CODE
MEDIUMTools/scripts/decode_ICSR.py137CODE
Verbosity Indicators13 hits · 27 pts
SeverityFileLineSnippetContext
LOW⚡Tools/autotest/quadplane.py949 # Step 2: inject actual motor noise and use the standard length FFT to track itCOMMENT
LOW⚡Tools/autotest/quadplane.py959 # Step 3: add a FFT dynamic notch and check that the peak is squashedCOMMENT
LOWTools/autotest/quadplane.py936 # Step 1: inject a very precise noise peak at 250hz and make sure the in-flight fftCOMMENT
LOWTools/autotest/quadplane.py993 # Step 4: take off as a copter land as a plane, make sure we trackCOMMENT
LOW⚡Tools/autotest/sim_vehicle.py696 # Step 1: Attempt the lookupCOMMENT
LOW⚡Tools/autotest/sim_vehicle.py707 # Step 2: Validate the response object (Handles status_code 403 if no exception was raised)COMMENT
LOW⚡Tools/autotest/sim_vehicle.py716 # Step 3: Success logicCOMMENT
LOW⚡libraries/SITL/SIM_Tether.cpp266 // Step 1: Calculate the vector from the tether anchor to the vehicleCOMMENT
LOW⚡libraries/SITL/SIM_Tether.cpp270 // Step 2: Check if tether is taut (length exceeds maximum allowed length) or stuckCOMMENT
LOW⚡libraries/SITL/SIM_Tether.cpp308 // Step 3: Calculate the weight of the tether being liftedCOMMENT
LOW⚡libraries/SITL/SIM_Tether.cpp312 // Step 4: Calculate the tension forceCOMMENT
LOW⚡libraries/SITL/SIM_Tether.cpp315 // Step 5: Apply the total force to the vehicleCOMMENT
LOWlibraries/SITL/SIM_JSON.cpp421 // So we need to check if it changed and act accordinglyCOMMENT
Structural Annotation Overuse13 hits · 27 pts
SeverityFileLineSnippetContext
LOW⚡Tools/autotest/quadplane.py949 # Step 2: inject actual motor noise and use the standard length FFT to track itCOMMENT
LOW⚡Tools/autotest/quadplane.py959 # Step 3: add a FFT dynamic notch and check that the peak is squashedCOMMENT
LOWTools/autotest/quadplane.py936 # Step 1: inject a very precise noise peak at 250hz and make sure the in-flight fftCOMMENT
LOWTools/autotest/quadplane.py993 # Step 4: take off as a copter land as a plane, make sure we trackCOMMENT
LOW⚡Tools/autotest/sim_vehicle.py696 # Step 1: Attempt the lookupCOMMENT
LOW⚡Tools/autotest/sim_vehicle.py707 # Step 2: Validate the response object (Handles status_code 403 if no exception was raised)COMMENT
LOW⚡Tools/autotest/sim_vehicle.py716 # Step 3: Success logicCOMMENT
LOWlibraries/AP_ESC_Telem/AP_ESC_Telem.cpp823// NOTE: This function should only be used to check timeouts other thanCOMMENT
LOW⚡libraries/SITL/SIM_Tether.cpp266 // Step 1: Calculate the vector from the tether anchor to the vehicleCOMMENT
LOW⚡libraries/SITL/SIM_Tether.cpp270 // Step 2: Check if tether is taut (length exceeds maximum allowed length) or stuckCOMMENT
LOW⚡libraries/SITL/SIM_Tether.cpp308 // Step 3: Calculate the weight of the tether being liftedCOMMENT
LOW⚡libraries/SITL/SIM_Tether.cpp312 // Step 4: Calculate the tension forceCOMMENT
LOW⚡libraries/SITL/SIM_Tether.cpp315 // Step 5: Apply the total force to the vehicleCOMMENT
AI Structural Patterns31 hits · 25 pts
SeverityFileLineSnippetContext
LOWTools/autotest/helicopter.py72CODE
LOWTools/autotest/vehicle_test_suite.py2103CODE
LOWTools/autotest/vehicle_test_suite.py5566CODE
LOWTools/autotest/vehicle_test_suite.py7412CODE
LOWTools/autotest/vehicle_test_suite.py7448CODE
LOWTools/autotest/vehicle_test_suite.py7521CODE
LOWTools/autotest/vehicle_test_suite.py7572CODE
LOWTools/autotest/vehicle_test_suite.py13935CODE
LOWTools/autotest/vehicle_test_suite.py15450CODE
LOWTools/autotest/quadplane.py4492CODE
LOWTools/autotest/quadplane.py4545CODE
LOWTools/autotest/test_build_options.py45CODE
LOWTools/autotest/arduplane.py10609CODE
LOWTools/autotest/arduplane.py10905CODE
LOWTools/autotest/test_param_upgrade.py220CODE
LOWTools/autotest/test_param_upgrade.py225CODE
LOWTools/autotest/pysim/util.py83CODE
LOWTools/autotest/pysim/util.py183CODE
LOWTools/autotest/pysim/util.py282CODE
LOWTools/autotest/pysim/util.py328CODE
LOWTools/autotest/pysim/util.py596CODE
LOWTools/autotest/param_metadata/rstemit.py55CODE
LOWTools/scripts/size_compare_branches.py64CODE
LOWTools/scripts/uploader.py260CODE
LOWTools/scripts/build_boards.py31CODE
LOWTools/scripts/build_script_base.py362CODE
LOWTools/scripts/build_script_base.py367CODE
LOWTools/renode/gen_board.py2296CODE
LOWTools/renode/gen_board.py2578CODE
LOW…rollers/ardupilot_vehicle_controller/webots_vehicle.py54CODE
LOWlibraries/AP_Declination/generate/generate.py94CODE
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippetContext
HIGH…es/AP_ExternalAHRS/AP_ExternalAHRS_SensAItion_Parser.h68 // Accuracy Metrics (Vectors as requested)COMMENT
HIGHlibraries/AP_AccelCal/AccelCalibrator.cpp292 // time as requested by user/GCSCOMMENT
HIGHlibraries/AP_Winch/AP_Winch_PWM.cpp69 // update distance estimate assuming winch will move exactly as requestedCOMMENT
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHTools/scripts/annotate_params.py273 Extracts the parameter name from a line and validates it. Args: line (str): The line to extract the parSTRING
HIGHTools/scripts/param_check.py373Generates and returns metadata for a specific vehicle. Runs an external script to generate the metadata for the speSTRING
Decorative Section Separators3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…_Motors/examples/AP_Motors_test/run_heli_comparison.py12# ---------------COMMENT
MEDIUMlibraries/SITL/examples/Webots/tests/migrate_worlds.py507# ----------------------------------------------------------------------COMMENT
MEDIUMlibraries/SITL/examples/Webots/tests/migrate_worlds.py1061# ----------------------------------------------------------------------COMMENT
Slop Phrases5 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMTools/environment_install/install-ROS-ubuntu.sh157# If you experience issues connecting to the keyserver, you can try substituting hkp://pgp.mit.edu:80 or hkp://keyserverCOMMENT
LOW…P_HAL/examples/RCInputToRCOutput/RCInputToRCOutput.cpp6 don't forget to push it to enable the PWM output.CODE
LOWlibraries/AP_HAL/examples/RCOutput/RCOutput.cpp4 don't forget to push it to enable the PWM output.CODE
LOWlibraries/AP_HAL/examples/RCOutput2/RCOutput.cpp4 don't forget to push it to enable the PWM output.CODE
LOWlibraries/AP_CheckFirmware/monocypher.h238// Don't forget to add authentication.COMMENT
Modern Structural Boilerplate6 hits · 5 pts
SeverityFileLineSnippetContext
LOWTools/autotest/vehicle_test_suite.py277 def set_alt_m(self, alt_m: float, frame: AltFrame) -> None:CODE
LOWTools/autotest/vehicle_test_suite.py6701 def set_parameter_bit(self, name: str, bit_offset: int) -> None:CODE
LOWTools/autotest/pysim/fdpexpect.py13__all__ = ['fdspawn']CODE
LOWTools/scripts/annotate_params.py301def update_parameter_documentation(doc: Dict[str, Any], target: str = '.', sort_type: str = 'none') -> None:CODE
LOWTools/scripts/decode_devid.py41__all__ = [ # noqa: F822 (the *_TYPES tables are provided by __getattr__)CODE
LOWTools/scripts/run_coverage.py225 def update_stats(self) -> None:CODE
TODO Padding1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlibraries/AP_ADSB/AP_ADSB_MAVLink.cpp75 const uint8_t emStatus = 0; // TODO: implement this ENUM. no emergency = 0CODE