Re: [Interest] QML lint

2017-01-25 Thread Ronan Jouchet
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

Re: [Interest] QML lint

2017-01-25 Thread Jérôme Godbout
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 [image: bodycad]

Re: [Interest] QML lint

2017-01-25 Thread Sérgio Martins
On Wed, Jan 25, 2017 at 5:11 AM, Станислав Сальников wrote: > Thanks for the answer! > Is there any way to configure qmllint? We have some conventions in my team > and some of default qmllint`s warnings are okay for us. > And the main question is about codestyle. Is there any

Re: [Interest] QML lint

2017-01-24 Thread Станислав Сальников
Thanks for the answer! Is there any way to configure qmllint? We have some conventions in my team and some of default qmllint`s warnings are okay for us. And the main question is about codestyle. Is there any way to check indentations, spaces, semicolons, variable names etc? вт, 24 янв. 2017 г. в

Re: [Interest] QML lint

2017-01-24 Thread Jérôme Godbout
There's qmllint binary when you compile Qt into the bin folder. You can iterate on every .qml or .js file and pass them to the qmllint binary within your shell script. ex: /my/path/to/qt/bin/qmllint my/path/to/file/myFile.qml See

[Interest] QML lint

2017-01-24 Thread Станислав Сальников
Hey guys! I want to make a git prepush hook to check qml codestyle. How do you solve this problem? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest