mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-02 22:40:27 +08:00
build(style): fast newline check with --fix as part of make format
The end of file newline check spawned two processes per tracked file and took ~85s, so it only ran as a separate CI job. Rewrite it in Python reading only the last bytes of each file (~0.3s) and add --fix to append a missing or drop duplicate newlines. Run it in make format (--fix), make check_format and the pre-commit hook (staged text files only), and drop the separate check_newlines CI job.
This commit is contained in:
1 parent
1c15438ec5
commit
0430d0d816
5 files changed
+115
-25
No files matched your search
@@ -30,7 +30,6 @@ jobs:
|
||||
matrix:
|
||||
check: [
|
||||
"check_format",
|
||||
"check_newlines",
|
||||
"validate_module_configs",
|
||||
"shellcheck_all",
|
||||
"module_documentation",
|
||||
|
||||
Reference in new issue
Block a user