Leverage dtsfmt as the standard formatter for DTS and DTSI files #637
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
.dtsfmtrc.tomlwith formatting rules and apply dtsfmt in .ci/check-format.sh. The formatting rules are as follows:Update CONTRIBUTING.md with formatting rules and usage instructions. Contributors must ensure consistent DST and DTSI style before code submission.
The .ci/check-format.sh’s exit code includes dtsfmt's exit code, which should be 0 if all DTS and DTSI files are properly formatted.
The make format integrates the dtsfmt.
All existing DTS and DTSI are reformatted with the aforementioned formatting rules.
Remove non-used REPO_ROOT variable in .ci/check-format.sh.
Summary by cubic
Adopt dtsfmt as the standard formatter for DTS/DTSI files and enforce it in CI. This ensures consistent device tree formatting and makes misformatted files fail the build.
New Features
Refactors
Written for commit 1048c2d. Summary will update automatically on new commits.