Furkanzmc / QML-Coding-Guide

A collection of good practices when writing QML code - https://doc.qt.io/qt/qtqml-index.html
The Unlicense
532 stars 79 forks source link

Linter / formatter rules #5

Closed ratijas closed 4 years ago

ratijas commented 4 years ago

Nice guide!

Any chances to make it into a linter / formatter rules, maybe for qmllint?

Enforcing some of options, especially imports ordering, would be extremely good to have ON by default.

Furkanzmc commented 4 years ago

qmllint doesn't support any of the rules from this guideline yet. I'm hoping that at some point in the future, they will be integrated into the linter but for that to happen these rules need to mature and be validated by others so there's merit to adding them to the linter.

I'm hoping that other QML developers will also join in, and pitch their ideas so we can discuss and come to a consensus together. At that point, I'm planning to submit patches to qmllint for these.

ratijas commented 4 years ago

Maybe an independent QML tooling should be developed, I think. That way it could evolve more quickly, and allow more freedom for experiments. Then, if proven handy, it might as well get cherry-picked into qmllist.

Furkanzmc commented 4 years ago

That's a good point. I'll fork the existing qmllint and start incorporating some of the guidelines from here. Thanks ratijas.