Search code examples
qtcoding-styleqmldsl

QML Coding Style Checker


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.


Solution

  • 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