【发布时间】:2021-06-25 02:39:03
【问题描述】:
我使用 brew 安装了 cloc。
我喜欢检查 Django 项目的代码行数。
我绝对不想计算迁移中的那些,并且只限于 python 文件。
我在项目根目录尝试了cloc --not-match-d=migrations --include-lang=python . 和cloc --not-match-d=migrations --include-lang=py . ,但它们被忽略了。
这是结果:
± cloc --not-match-d=migrations --include-lang=python .
18714 text files.
13100 unique files.
18771 files ignored.
【问题讨论】: