我已经在这里和这里阅读了相关的 SO 线程,以及 Github Linguist手动覆盖,但我似乎无法从语言统计中排除一些顶级目录。
在其当前的最新版本中,这个 repo显示了 HTML 代码的优势。单击 HTML 详细信息,将列出两个 HTML 文件:
packages/NUnit.2.5.7.10213/NUnitFitTests.html
最后索引于 2016 年 12 月 30 日。packages/NUnit.2.5.7.10213/Tools/NUnitFitTests.html
最后索引于 2016 年 12 月 30 日。
但那些应该是排除路径的一部分.gitattributes
:
.nuget/* linguist-vendored
libs/* linguist-vendored
NUnit.Runners.2.6.4/* linguist-vendored
packages/* linguist-vendored §§ <--- this one in particular
RubyInstallationFiles/* linguist-vendored
但在同一个详情页面中,左下角的排名清楚地显示 HTML 位于较低的位置,而 C# 位于顶部:
我究竟做错了什么?
附带问题:在许多更改中,我还从 .gitattribute 文件中删除了注释,因为我无法从任何参考中找到这些是否允许或什么。有谁知道你可以在那里发表评论吗?哪种格式?助教