hhatto / gocloc

A little fast cloc(Count Lines Of Code)
MIT License
799 stars 79 forks source link

Not covering most file types #52

Open seekincs opened 2 years ago

seekincs commented 2 years ago

Some files do not end with standard extensions and these files are not correctly recognized. Take the XML files as an example, only the files with the extension xml or XML are counted. In fact, many files that are not with these extensions may also be XML files, such as .fxml, .plist, .rss, .xproj and so on.

refer here: https://gist.github.com/ppisarczyk/43962d06686722d26d176fad46879d41#file-programming_languages_extensions-json-L3109 https://github.com/AlDanial/cloc/blob/4d244d29a4b0f3c994ded12f7a0c57b8fe2906ef/cloc#L7581

It is recommended to add these file extensions to improve accuracy.