-
Notifications
You must be signed in to change notification settings - Fork 67
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
linting tool for dt files #18
Comments
I don't think any such thing exists for .dts files. Something like that should probably live within dtc, not this project, as it could re-use the parsing logic. We need something too now for DT schema files. There's tools/yaml-format in this repo that mainly just does a round trip thru ruamel, but it doesn't quite format how I'd like it to. There's also yamllint, but I haven't looked at it. |
That's a mirror. The "official" repo is: https://git.kernel.org/pub/scm/utils/dtc/dtc.git I didn't say dtc supported linting. It can output .dts files, but you loose a lot more than comments. I don't mind leaving the issue open here to track it. There's no issue tracking for dtc. You might want to raise the issue on [email protected] list. |
Thanks, I sent a mail asking the same question. I'll update this issue once something happens |
Hi, at OpenWrt there are sometimes badly styled DT files which waste human time to comment and fix, it would be nice to have some automatic checks for that. Is there a tool like astyle or clang-format for device tree files?
The text was updated successfully, but these errors were encountered: