[Interest] QML lint

Ronan Jouchet ronan.jouchet at cadensimaging.com
Wed Jan 25 15:50:29 CET 2017


On 2017-01-25 09:40, Jérôme Godbout wrote:
> Then you will need to do your own team convention lint executable
> to achieve that. Qmllint only check basic syntax.
>
> But you probably can try a javascript indent lint like this one:
> http://eslint.org/docs/rules/indent
>
> not sure it will work but could worth a try

No, out-of-the-box, ESLint will choke on QML, and even on Qt JS
specific syntax (e.g. `.pragma library` or `.import "foo.js" as Foo`)

Having ESLint would be awesome, it's a beast of a linter and its
extensibility provides room for custom Qt rules. Curious to see if
attempts were made to bake in support for QML / Qt-flavored JS.



More information about the Interest mailing list