Widen check_markdown_rst_hyperlinks to also flag RST cross-references
(:[a-z]+:`...`) alongside the existing RST external hyperlink check.
Rename the pass message to "RST-style markup" to reflect the broader
scope.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix `text <url>`_ (single-underscore RST named hyperlinks) missed by
the earlier pass, which only converted the double-underscore anonymous
form `text <url>`__. Affected files fell into two groups:
- Files already on this branch (BROTHERHOBBYF405v3, ZeroOneX6,
ZeroOneX6_Air, SDMODELH7V2, TBS_LUCID_H7_WING, TBS_LUCID_H7_WING_AIO,
PixSurveyA2-IND): the conversion script regex only matched `__`.
- Files not yet touched by this branch (PixPilot-C3, PixPilot-V3,
PixPilot-V6, PixPilot-V6PRO, PixSurveyA1-IND): never processed as
they were not in the branch diff at the time.
Also extend check_branch_conventions.py to catch both `_` and `__`
variants using `__\?` (making the second underscore optional).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
For each commit on the branch that modifies a submodule reference,
verify that the referenced SHA exists in the local submodule via
`git cat-file -e <sha>^{commit}`. Submodule directories that are
not initialised are skipped with a warning.
This catches cases where a branch points a submodule at a SHA that
lives only in a private fork and would therefore fail when GitHub
Actions tries to fetch it.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Any commit that updates a submodule pointer must contain no other
changed paths — no other files, no other submodules.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The debug flag, contrary to its documentation, enables a debug build,
increasing the size of the binary and changing its contents. Fix the
documentation to describe what it actually does.
Then add the same flag as waf to just add symbols without changing the
actual binary.
Adds check_good_commit_subsystem() which fails if any commit in the PR
uses a prefix from BLACKLISTED_PREFIXES (currently just "DEBUG").
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- One test in IMU mode and one in INS mode.
- Also add build option to enable SensAItion as External AHRS
- Also adapt to updated AHRS_OPTIONS definition
if the bootloader is not already preset in Tools/AP_Bootloaders then the configure step fails. If you are only building the bootloader this is annoying!
When the hwdef explicitly sets `env TOOLCHAIN native`, board_list.py
correctly converts the toolchain to None. But when SITL boards fall
through to the default toolchain assignment, the string 'native' was
used without conversion. This caused size_compare_branches.py to try
running 'native-strip' (which doesn't exist) instead of plain 'strip'
when comparing SITL ELFs, resulting in a silently-caught
FileNotFoundError and empty output.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
allows filtering playback to only send frames from specified DroneCAN
source nodes
also adds --messages, which filters playback to only send DroneCAN
message frames matching the specified 16 bit message IDs
global: fix MD007 unordered list indentation in markdown files
Normalize unordered list indentation to use 2-space multiples:
- Top-level list items start at column 0
- Nested list items use 2 additional spaces per level
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
global: fix MD009 trailing whitespace in markdown files
Remove trailing whitespace from all affected markdown files.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
global: fix MD010 hard tabs in markdown files
Replace hard tab characters with 4 spaces.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
global: fix MD012 multiple consecutive blank lines in markdown
Collapse multiple consecutive blank lines to single blank lines
across all markdown files (excluding vendored code).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
global: fix MD007 list indentation base level in markdown
Shift list indentation left by 2 spaces so top-level list items
start at column 0 instead of column 2.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD022 blank lines around headings in markdown
Ensure headings are surrounded by blank lines as required by
markdownlint MD022 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD032 blank lines around lists in markdown
Ensure lists are surrounded by blank lines as required by
markdownlint MD032 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD031 blank lines around code blocks in markdown
Ensure fenced code blocks are surrounded by blank lines as required
by markdownlint MD031 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD047 files should end with single newline
Ensure all markdown files end with exactly one newline character
as required by markdownlint MD047 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD023 headings must start at beginning of line
Remove leading whitespace from heading lines as required by
markdownlint MD023 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD007 remaining list indentation in markdown
Fix unordered list indentation to use correct spacing as required
by markdownlint MD007 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD030 spaces after list markers in markdown
Reduce multiple spaces after list markers to single space as
required by markdownlint MD030 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD022 blank lines around setext headings
Ensure setext-style headings (underlined with === or ---) are
surrounded by blank lines as required by markdownlint MD022 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD018 missing space after hash in headings
Add space after hash marks in atx-style headings as required by
markdownlint MD018 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD019 multiple spaces after hash in headings
Reduce multiple spaces after hash marks to single space in
atx-style headings as required by markdownlint MD019 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD012 multiple consecutive blank lines in markdown
Remove multiple consecutive blank lines and ensure files end with
exactly one newline as required by markdownlint MD012 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD023 headings with leading whitespace
Remove leading whitespace from setext-style heading text lines
as required by markdownlint MD023 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD022 blank line after heading in markdown
Add missing blank line after heading as required by markdownlint
MD022 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD009 trailing non-breaking space in markdown
Remove trailing non-breaking space (U+00A0) as required by
markdownlint MD009 rule.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tools/scripts: fix MD012 remaining multiple blank lines in markdown
Remove leading blank lines and whitespace-only lines that create
multiple consecutive blank lines.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>