I'm looking for a coding style checker for QML code. Something like Checkstyle or Artistic Style. What do people use to define coding style checks for their DSL of choice?
Clarification: I'm looking for something that can be used in build automation not a GUI tool.
As far as I know QtCreator works well enough with QML. You can specify a coding style you'd like the editor to adhere to. Then use Tools > Reformat File to format the style.
Since Qt 5.15, a new tool qmlformat
is shipped which automatically formats any QML file according to the QML Coding Conventions.
Source: Qt 5.15 release notes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With