mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-01 21:52:12 +08:00
Distros ship newer astyle versions (Ubuntu 26.04: 3.6) which are incompatible with our options and format differently, so make check_format failed out of the box and required manually installing an old .deb. astyle-py bundles astyle 3.1 as WebAssembly and installs via pip on any OS, giving byte-identical results to native 3.1. Native astyle 2.06-3.1 is still accepted as fallback, so existing setups and the current CI container keep working. Files are now formatted in batches on a temporary copy instead of one astyle call per file, which keeps make check_format fast despite the interpreter startup.
15 lines
232 B
Plaintext
15 lines
232 B
Plaintext
indent=force-tab=8
|
|
style=linux
|
|
indent-preprocessor
|
|
indent-cases
|
|
break-blocks=all
|
|
pad-oper
|
|
pad-header
|
|
unpad-paren
|
|
keep-one-line-blocks
|
|
keep-one-line-statements
|
|
align-pointer=name
|
|
align-reference=name
|
|
add-brackets
|
|
max-code-length=140
|