Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint hwdef include files #26736

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Conversation

peterbarker
Copy link
Contributor

remove a bunch of lines which are not needed

@amilcarlucas
Copy link
Contributor

Do you have a linter script for hwdef files?

@peterbarker
Copy link
Contributor Author

I've run this through `size_compare_branches.py, rebased on top of patches to fix compilation of a couple of boards (and hwdef.dat include patch).

Everything is no binary output-change.

@peterbarker
Copy link
Contributor Author

Do you have a linter script for hwdef files?

Sort of. There's code in chibios_hwdef.py (~line 3066) which does some of the linting. I've modified it slightly to (a) check for problems at any depth of include and (b) make it fatal rather than just a print.

There's a few additional patches past the ones in this PR which make things clean but they're a little more complicated than the ones included in this patch (and kind of show a hole up in the way we're trying to use includes in networking).

@peterbarker peterbarker force-pushed the pr/hwdef-include-linting branch from 7125d5a to 8be2ef0 Compare April 10, 2024 00:58
@tridge tridge merged commit 0e6bca9 into ArduPilot:master Apr 10, 2024
40 checks passed
@peterbarker peterbarker deleted the pr/hwdef-include-linting branch April 10, 2024 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants