Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用 --exclude-lang = "xml" 和 --exclude-lang = "designer.cs" 从两个不同文件夹中的行数更改中排除设计器和 xml 文件,但它不起作用。
大写错误的简单案例。解决此问题的一种简单方法是运行cloc .
cloc .
在您的控制台中,您将看到如下打印的表格报告:
您发布了您使用的:--exclude-lang = "xml". 相反,您需要完全匹配语言描述。在控制台输出中,您可以看到xml全部大写。如果您也更新您的标志,--exclude-lang="XML"您将看到 XML 扫描被忽略。
--exclude-lang = "xml"
xml
--exclude-lang="XML"