I have used --exclude-lang = "xml" and --exclude-lang = "designer.cs" to exclude designer and xml files from count of lines changes in two different folders but it's not working.
Asked
Active
Viewed 993 times
2 Answers
5
Simple case of mis-capitalization. An easy way to troubleshoot this issue is to run cloc .
In your console, you'll see a table report printed like this:
You posted that you used: --exclude-lang = "xml"
. Instead you need to match the language description exactly. In the consoles output, you can see xml
is all caps. If you update your flag too --exclude-lang="XML"
you'll see that XML scanning is ignored.

petros
- 88
- 3
- 5
2
Several languages can be excluded for instance by:
--exclude-lang="SVG,CSV,XML,Markdown,TeX,reStrcuturedText"

Vertexwahn
- 7,709
- 6
- 64
- 90