AlDanial / cloc

cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
GNU General Public License v2.0
19.75k stars 1.02k forks source link

GTK xml files .ui #857

Closed keygenqt closed 1 month ago

keygenqt commented 1 month ago

Describe the bug Files with the *.ui extension for GTK are detected as Qt.

cloc; OS; OS version

To Reproduce Just execute the count command with the presence of GTK xml files .ui

Expected result Perhaps it is better to consider these as xml files.

Additional context You can check on the project https://github.com/keygenqt/aurora-toolbox, it contains such files https://github.com/keygenqt/aurora-toolbox/tree/main/data/ui

keygenqt commented 1 month ago

image

AlDanial commented 1 month ago

Identifying such .ui files as XML is certainly correct but that loses what I feel is valuable information in that they are XML files associated with the creation of a GUI. What do you think about labeling these as XML (Qt/GTK) ?

keygenqt commented 1 month ago

XML (Qt/GTK), or just Design (Qt/GTK), or just Design

I don't know where else .ui files could be used, but I'm sure they must be somewhere.