Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to identify unused code & files in QML

Need to identify dead code and unused files in the codebase for QML & JS files. Are there any tools for Qt/C++?

like image 762
Ravisha Avatar asked Aug 31 '25 01:08

Ravisha


1 Answers

Good question. Will monitor it, because Qt/QML world lacks of such OpenSource tool. Somehow it is related to QML Code Coverage Analysis.

Still there is no straight answer. Here are few possible solutions I've found so far.

  • Since you are talking about JS, there is ESLint and here is WIP project eslint-plugin-qml, Lint JavaScript code in QML files.
  • There is proprietary paid tool froglogic Coco Code Coverage that looks like can parse QML too. Can't say something since never tried, but it looks promoting.
like image 69
tro Avatar answered Sep 02 '25 21:09

tro